public class OrthoLineBuilder extends Object
|Constructor and Description|
Creates a new builder for the specified envelope.
|Modifier and Type||Method and Description|
Creates line features according to the provided
public OrthoLineBuilder(ReferencedEnvelope gridBounds)
gridBounds- bounds of the area for which lines will be generated
public void buildGrid(Collection<OrthoLineDef> lineDefs, GridFeatureBuilder lineFeatureBuilder, double vertexSpacing, ListFeatureCollection fc)
OrthoLineDefobjects and places them into the provided
ListFeatureCollection. Densified lines (lines strings with additional vertices along their length) can be created by setting the value of
vertexSpacinggreater than zero; if so, any lines more than twice as long as this value will be densified.
lineDefs- line definitions specifying the orientation, spacing and level of lines
lineFeatureBuilder- the feature build to create
SimpleFeaturesfrom line elements
vertexSpacing- maximum distance between adjacent vertices along a line
fc- the feature collection into which generated line features are placed
Copyright © 1996–2021 Geotools. All rights reserved.