Class SimpleHorizontalDomain

    • Constructor Detail

      • SimpleHorizontalDomain

        public SimpleHorizontalDomain​(double minLon,
                                      double minLat,
                                      double maxLon,
                                      double maxLat)
        Create a HorizontalDomain based on a WGS84 bounding box
        Parameters:
        minLon - The minimum longitude
        minLat - The minimum latitude
        maxLon - The maximum longitude
        maxLat - The maximum latitude
      • SimpleHorizontalDomain

        public SimpleHorizontalDomain​(double minX,
                                      double minY,
                                      double maxX,
                                      double maxY,
                                      org.opengis.referencing.crs.CoordinateReferenceSystem crs)
        Parameters:
        minX - The minimum x value
        minY - The minimum y value
        maxX - The maximum x value
        maxY - The maximum y value
        crs - The CoordinateReferenceSystem of the domain
    • Method Detail

      • getBoundingBox

        public BoundingBox getBoundingBox()
        Description copied from interface: HorizontalDomain
        Returns the bounding box of the domain in the domain's own coordinate reference system. For domains which do not have a native co-ordinate reference system this may return a BoundingBox in a different CRS. Consequently this BoundingBox is not guaranteed to be a tight bound around the domain.
        Specified by:
        getBoundingBox in interface HorizontalDomain
      • getGeographicBoundingBox

        public org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox()
        Description copied from interface: HorizontalDomain
        Returns the bounding box of the domain in WGS84 latitude-longitude coordinates.
        Specified by:
        getGeographicBoundingBox in interface HorizontalDomain
      • getCoordinateReferenceSystem

        public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
        Description copied from interface: HorizontalDomain
        Returns the co-ordinate reference system of this domain
        Specified by:
        getCoordinateReferenceSystem in interface HorizontalDomain
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object