Class ImageGeometry

    • Constructor Detail

      • ImageGeometry

        public ImageGeometry​(Rectangle bounds,
                             AffineTransform gridToCRS)
        Creates a grid geometry from the specified bounds and grid to CRS affine transform.
        Parameters:
        bounds - The image bounds in pixel coordinates.
        gridToCRS - The affine transform from pixel coordinates to "real world" coordinates.
    • Method Detail

      • getGridRange

        public GridEnvelope2D getGridRange()
        Returns the image bounds in pixel coordinates.
        Specified by:
        getGridRange in interface GridGeometry
        Returns:
        The valid coordinate range of a grid coverage.
      • toString

        public String toString()
        Returns a string representation of this grid geometry. The returned string is implementation dependent. It is usually provided for debugging purposes.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Returns a hash code value for this grid geometry.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object object)
        Compares this grid geometry with the specified one for equality.
        Overrides:
        equals in class Object
        Parameters:
        object - The object to compare with.
        Returns:
        true if the given object is equals to this grid geometry.