Package nz.org.riskscape.engine.grid
Class FeatureGridCell
java.lang.Object
nz.org.riskscape.engine.grid.FeatureGridCell
Represents a particular cell within a FeatureGrid
-
Method Details
-
getCellCentre
public org.locationtech.jts.geom.Point getCellCentre()- Returns:
- a jts
Pointgeometry that locates the centre of this grid cell
-
getCellPolygon
public org.locationtech.jts.geom.Polygon getCellPolygon()- Returns:
- a jts
Polygongeometry that surrounds this grid cell
-
computeIntersection
public org.locationtech.jts.geom.Geometry computeIntersection()- Returns:
- the intersection of the
FeatureGrid's geometry and grid, returning all parts of the intersection.
-
getGridPosition
public org.geotools.coverage.grid.GridCoordinates2D getGridPosition()- Returns:
- the grid coordinates of this cell relative to the
FeatureGrid's overall grid. This can be used to sample aGridCoverage2Dthat is built on the same grid.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-