Class SpatialRequestHelper

  • public class SpatialRequestHelper
    extends Object
    Helper class which takes coverage's spatial information input (CRS, bbox, resolution,...) and a set of request's parameters (requestedCRS, requestedBBox, requested resolution, ...) and takes care of computing all auxiliary spatial variables for future computations.
    Daniele Romagnoli, GeoSolutions SAS
    • Constructor Detail

      • SpatialRequestHelper

        public SpatialRequestHelper()
    • Method Detail

      • setRequestedGridGeometry

        public void setRequestedGridGeometry​(GridGeometry2D gridGeometry)
      • prepare

        public void prepare()
                     throws DataSourceException
        Compute this specific request settings all the parameters needed by a visiting RasterLayerResponse object.
      • isEmpty

        public boolean isEmpty()
      • isNeedsReprojection

        public boolean isNeedsReprojection()
      • getRequestedBBox

        public BoundingBox getRequestedBBox()
      • getRequestedRasterArea

        public Rectangle getRequestedRasterArea()
      • getRequestedResolution

        public double[] getRequestedResolution()
      • getDestinationRasterArea

        public Rectangle getDestinationRasterArea()
      • getRequestedGridToWorld

        public AffineTransform getRequestedGridToWorld()
      • setRequestedBBox

        public void setRequestedBBox​(BoundingBox requestedBBox)
      • setRequestedRasterArea

        public void setRequestedRasterArea​(Rectangle requestedRasterArea)
      • setRequestedGridToWorld

        public void setRequestedGridToWorld​(AffineTransform requestedGridToWorld)