Package org.geotools.grid
Class PolygonBuilder
- Object
-
- PolygonBuilder
-
- Direct Known Subclasses:
HexagonBuilder
,OblongBuilder
,OvalBuilder
public abstract class PolygonBuilder extends Object
The base class for builders that generate polygonal grid elements.- Since:
- 8.0
- Author:
- mbedward
- See Also:
org.geotools.grid.hexagon.HexagonGridBuilder
,org.geotools.grid.oblong.OblongGridBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected ReferencedEnvelope
gridBounds
-
Constructor Summary
Constructors Constructor Description PolygonBuilder(ReferencedEnvelope gridBounds)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
buildGrid(GridFeatureBuilder gridFeatureBuilder, double vertexSpacing, ListFeatureCollection fc)
abstract PolygonElement
createNeighbor(PolygonElement el, Neighbor neighbor)
abstract PolygonElement
getFirstElement()
abstract PolygonElement
getNextXElement(PolygonElement el)
abstract PolygonElement
getNextYElement(PolygonElement el)
abstract boolean
isValidDenseVertexSpacing(double v)
abstract boolean
isValidNeighbor(Neighbor neighbor)
-
-
-
Field Detail
-
gridBounds
protected final ReferencedEnvelope gridBounds
-
-
Constructor Detail
-
PolygonBuilder
public PolygonBuilder(ReferencedEnvelope gridBounds)
-
-
Method Detail
-
buildGrid
public boolean buildGrid(GridFeatureBuilder gridFeatureBuilder, double vertexSpacing, ListFeatureCollection fc)
-
isValidNeighbor
public abstract boolean isValidNeighbor(Neighbor neighbor)
-
createNeighbor
public abstract PolygonElement createNeighbor(PolygonElement el, Neighbor neighbor)
-
getFirstElement
public abstract PolygonElement getFirstElement()
-
getNextXElement
public abstract PolygonElement getNextXElement(PolygonElement el)
-
getNextYElement
public abstract PolygonElement getNextYElement(PolygonElement el)
-
isValidDenseVertexSpacing
public abstract boolean isValidDenseVertexSpacing(double v)
-
-