!CRS.equalsIgnoreMetadata(boundsCRS, builderCRS)) {
throw new IllegalArgumentException("Different CRS set for bounds and the feature builder");
}
final ListFeatureCollection fc = new ListFeatureCollection(lineFeatureBuilder.getType());
OrthoLineBuilder lineBuilder = new OrthoLineBuilder(bounds);
lineBuilder.buildGrid(lineDefs, lineFeatureBuilder, vertexSpacing, fc);
return DataUtilities.source(fc);
}