Class FeatureGridCell

java.lang.Object
nz.org.riskscape.engine.grid.FeatureGridCell

public class FeatureGridCell extends Object

Represents a particular cell within a FeatureGrid

  • Method Details

    • getCellCentre

      public org.locationtech.jts.geom.Point getCellCentre()
      Returns:
      a jts Point geometry that locates the centre of this grid cell
    • getCellPolygon

      public org.locationtech.jts.geom.Polygon getCellPolygon()
      Returns:
      a jts Polygon geometry 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 a GridCoverage2D that is built on the same grid.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object