Package org.geotools.grid.ortholine
Class OrthoLineBuilder
- Object
-
- OrthoLineBuilder
-
public class OrthoLineBuilder extends Object
A builder to generate a grid of horizontal and/or vertical ortho-lines.- Since:
- 8.0
- Author:
- mbedward
-
-
Constructor Summary
Constructors Constructor Description OrthoLineBuilder(ReferencedEnvelope gridBounds)Creates a new builder for the specified envelope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildGrid(Collection<OrthoLineDef> lineDefs, GridFeatureBuilder lineFeatureBuilder, double vertexSpacing, ListFeatureCollection fc)Creates line features according to the providedOrthoLineDefobjects and places them into the providedListFeatureCollection.
-
-
-
Constructor Detail
-
OrthoLineBuilder
public OrthoLineBuilder(ReferencedEnvelope gridBounds)
Creates a new builder for the specified envelope.- Parameters:
gridBounds- bounds of the area for which lines will be generated
-
-
Method Detail
-
buildGrid
public void buildGrid(Collection<OrthoLineDef> lineDefs, GridFeatureBuilder lineFeatureBuilder, double vertexSpacing, ListFeatureCollection fc)
Creates line features according to the providedOrthoLineDefobjects and places them into the providedListFeatureCollection. Densified lines (lines strings with additional vertices along their length) can be created by setting the value ofvertexSpacinggreater than zero; if so, any lines more than twice as long as this value will be densified.- Parameters:
lineDefs- line definitions specifying the orientation, spacing and level of lineslineFeatureBuilder- the feature build to createSimpleFeaturesfrom line elementsvertexSpacing- maximum distance between adjacent vertices along a linefc- the feature collection into which generated line features are placed
-
-