Package org.geotools.grid
Interface GridElement
-
- All Known Subinterfaces:
Hexagon,LineElement,Oblong,Oval,PolygonElement
- All Known Implementing Classes:
HexagonImpl,OblongImpl,OrthoLine,OvalImpl
public interface GridElementThe base interface for vector grid elements.- Since:
- 8.0
- Author:
- mbedward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReferencedEnvelopegetBounds()Gets the bounds of this grid element.Coordinate[]getVertices()Gets the vertices of this grid element.GeometrytoDenseGeometry(double maxSpacing)Creates a new, densifiedGeometryfrom this grid element.GeometrytoGeometry()Creates a newGeometryfrom this grid element.
-
-
-
Method Detail
-
getBounds
ReferencedEnvelope getBounds()
Gets the bounds of this grid element.- Returns:
- the bounding rectangle
-
getVertices
Coordinate[] getVertices()
Gets the vertices of this grid element.- Returns:
- the vertices
-
toGeometry
Geometry toGeometry()
Creates a newGeometryfrom this grid element.- Returns:
- a new
Geometry
-
toDenseGeometry
Geometry toDenseGeometry(double maxSpacing)
Creates a new, densifiedGeometryfrom this grid element.- Parameters:
maxSpacing- the maximum distance between adjacent vertices- Returns:
- a new
Geometry - Throws:
IllegalArgumentException- if maxSpacing is<=0
-
-