Package org.geotools.gce.imagemosaic
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(SpatialRequestHelper.CoverageProperties coverageProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compute()
Compute this specific request settings all the parameters needed by a visitingRasterLayerResponse
object.BoundingBox
getComputedBBox()
BoundingBox
getComputedBBox(boolean useAlternativeIfAvailable)
AffineTransform
getComputedGridToWorld()
Rectangle
getComputedRasterArea()
double[]
getComputedResolution()
BoundingBox
getCoverageBBox()
CoordinateReferenceSystem
getReferenceCRS(boolean useAlternativeIfAvailable)
boolean
isAccurateResolution()
boolean
isEmpty()
boolean
isNeedsReprojection()
boolean
isNeedsReprojection(boolean useAlternativeIfAvailable)
boolean
isSupportingAlternativeCRSOutput()
void
setAccurateResolution(boolean accurateResolution)
void
setAlternativeProperties(SpatialRequestHelper.CoverageProperties alternativeProperties)
Set an alternative coverageProperties object when supporting output to alternative CRS.void
setRequestedGridGeometry(GridGeometry2D gridGeometry)
void
setSupportingAlternativeCRSOutput(boolean isSupportingAlternativeCRS)
String
toString()
-
-
-
Constructor Detail
-
SpatialRequestHelper
public SpatialRequestHelper(SpatialRequestHelper.CoverageProperties coverageProperties)
-
-
Method Detail
-
setAlternativeProperties
public void setAlternativeProperties(SpatialRequestHelper.CoverageProperties alternativeProperties)
Set an alternative coverageProperties object when supporting output to alternative CRS.- Parameters:
alternativeProperties
-
-
setRequestedGridGeometry
public void setRequestedGridGeometry(GridGeometry2D gridGeometry)
-
compute
public void compute() 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()
-
isNeedsReprojection
public boolean isNeedsReprojection(boolean useAlternativeIfAvailable)
-
isAccurateResolution
public boolean isAccurateResolution()
-
setAccurateResolution
public void setAccurateResolution(boolean accurateResolution)
-
getComputedResolution
public double[] getComputedResolution()
-
getComputedRasterArea
public Rectangle getComputedRasterArea()
-
getComputedBBox
public BoundingBox getComputedBBox()
-
getComputedBBox
public BoundingBox getComputedBBox(boolean useAlternativeIfAvailable)
-
getCoverageBBox
public BoundingBox getCoverageBBox()
-
getReferenceCRS
public CoordinateReferenceSystem getReferenceCRS(boolean useAlternativeIfAvailable)
-
isSupportingAlternativeCRSOutput
public boolean isSupportingAlternativeCRSOutput()
-
setSupportingAlternativeCRSOutput
public void setSupportingAlternativeCRSOutput(boolean isSupportingAlternativeCRS)
-
getComputedGridToWorld
public AffineTransform getComputedGridToWorld()
-
-