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.
|
int |
getMaxOversamplingFactor() |
boolean |
isAccurateResolution() |
void |
setAccurateResolution(boolean accurateResolution) |
void |
setMaxOversamplingFactor(int maxOversamplingFactor)
Sets the max oversampling factor for resolution calculation.
|
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)
public int getMaxOversamplingFactor()
public void setMaxOversamplingFactor(int maxOversamplingFactor)
Copyright © 1996–2022 Geotools. All rights reserved.