Package org.geotools.gce.imagemosaic
Class SpatialRequestHelper
Object
SpatialRequestHelper
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 -
Constructor Summary
ConstructorsConstructorDescriptionSpatialRequestHelper
(SpatialRequestHelper.CoverageProperties coverageProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
compute()
Compute this specific request settings all the parameters needed by a visitingRasterLayerResponse
object.getComputedBBox
(boolean useAlternativeIfAvailable) double[]
getReferenceCRS
(boolean useAlternativeIfAvailable) boolean
boolean
isEmpty()
boolean
boolean
isNeedsReprojection
(boolean useAlternativeIfAvailable) boolean
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) toString()
-
Constructor Details
-
SpatialRequestHelper
-
-
Method Details
-
setAlternativeProperties
Set an alternative coverageProperties object when supporting output to alternative CRS.- Parameters:
alternativeProperties
-
-
setRequestedGridGeometry
-
compute
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
-
getComputedBBox
-
getComputedBBox
-
getCoverageBBox
-
getReferenceCRS
-
isSupportingAlternativeCRSOutput
public boolean isSupportingAlternativeCRSOutput() -
setSupportingAlternativeCRSOutput
public void setSupportingAlternativeCRSOutput(boolean isSupportingAlternativeCRS) -
toString
-
getComputedGridToWorld
-