public class ReadResolutionCalculator extends Object
Constructor and Description |
---|
ReadResolutionCalculator(GridGeometry2D requestedGridGeometry,
CoordinateReferenceSystem nativeCrs,
double[] fullResolution) |
Modifier and Type | Method and Description |
---|---|
double[] |
computeRequestedResolution(ReferencedEnvelope readBounds)
Computes the requested resolution which is going to be used for selecting overviews and or
deciding decimation factors on the target coverage.
|
boolean |
isAccurateResolution() |
void |
setAccurateResolution(boolean accurateResolution) |
public ReadResolutionCalculator(GridGeometry2D requestedGridGeometry, CoordinateReferenceSystem nativeCrs, double[] fullResolution) throws FactoryException
FactoryException
public double[] computeRequestedResolution(ReferencedEnvelope readBounds)
In case the requested envelope is in the same CoordinateReferenceSystem
of the
coverage we compute the resolution using the requested MathTransform
. Notice that it
must be a LinearTransform
or else we fail.
In case the requested envelope is not in the same CoordinateReferenceSystem
of the
coverage we
DataSourceException
- in case something bad happens during reprojections and/or
intersections.public boolean isAccurateResolution()
public void setAccurateResolution(boolean accurateResolution)
Copyright © 1996–2019 Geotools. All rights reserved.