Package org.geotools.coverage.io
Class SpatialRequestHelper
- Object
-
- 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.- Author:
- Daniele Romagnoli, GeoSolutions SAS
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpatialRequestHelper.CoverageProperties
-
Constructor Summary
Constructors Constructor Description SpatialRequestHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpatialRequestHelper.CoverageProperties
getCoverageProperties()
BoundingBox
getCropBBox()
Rectangle
getDestinationRasterArea()
BoundingBox
getRequestedBBox()
AffineTransform
getRequestedGridToWorld()
Rectangle
getRequestedRasterArea()
double[]
getRequestedResolution()
boolean
isEmpty()
boolean
isNeedsReprojection()
void
prepare()
Compute this specific request settings all the parameters needed by a visitingRasterLayerResponse
object.void
setCoverageProperties(SpatialRequestHelper.CoverageProperties coverageProperties)
void
setRequestedBBox(BoundingBox requestedBBox)
void
setRequestedGridGeometry(GridGeometry2D gridGeometry)
void
setRequestedGridToWorld(AffineTransform requestedGridToWorld)
void
setRequestedRasterArea(Rectangle requestedRasterArea)
String
toString()
-
-
-
Method Detail
-
setRequestedGridGeometry
public void setRequestedGridGeometry(GridGeometry2D gridGeometry)
-
setCoverageProperties
public void setCoverageProperties(SpatialRequestHelper.CoverageProperties coverageProperties)
-
prepare
public void prepare() throws DataSourceException
Compute this specific request settings all the parameters needed by a visitingRasterLayerResponse
object.- Throws:
DataSourceException
-
isEmpty
public boolean isEmpty()
-
isNeedsReprojection
public boolean isNeedsReprojection()
-
getRequestedBBox
public BoundingBox getRequestedBBox()
-
getRequestedRasterArea
public Rectangle getRequestedRasterArea()
-
getRequestedResolution
public double[] getRequestedResolution()
-
getDestinationRasterArea
public Rectangle getDestinationRasterArea()
-
getCropBBox
public BoundingBox getCropBBox()
-
getRequestedGridToWorld
public AffineTransform getRequestedGridToWorld()
-
setRequestedBBox
public void setRequestedBBox(BoundingBox requestedBBox)
-
setRequestedRasterArea
public void setRequestedRasterArea(Rectangle requestedRasterArea)
-
setRequestedGridToWorld
public void setRequestedGridToWorld(AffineTransform requestedGridToWorld)
-
getCoverageProperties
public SpatialRequestHelper.CoverageProperties getCoverageProperties()
-
-