Package org.geotools.coverage.grid.io
Class ReadResolutionCalculator
- Object
- 
- ReadResolutionCalculator
 
- 
 public class ReadResolutionCalculator extends Object Class that supports readers in computing the proper reading resolution for a given grid geometry
- 
- 
Constructor SummaryConstructors Constructor Description ReadResolutionCalculator(GridGeometry2D requestedGridGeometry, CoordinateReferenceSystem nativeCrs, double[] fullResolution)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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.intgetMaxOversamplingFactor()booleanisAccurateResolution()voidsetAccurateResolution(boolean accurateResolution)voidsetMaxOversamplingFactor(int maxOversamplingFactor)Sets the max oversampling factor for resolution calculation.
 
- 
- 
- 
Constructor Detail- 
ReadResolutionCalculatorpublic ReadResolutionCalculator(GridGeometry2D requestedGridGeometry, CoordinateReferenceSystem nativeCrs, double[] fullResolution) throws FactoryException - Throws:
- FactoryException
 
 
- 
 - 
Method Detail- 
computeRequestedResolutionpublic 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.In case the requested envelope is in the same CoordinateReferenceSystemof the coverage we compute the resolution using the requestedMathTransform. Notice that it must be aLinearTransformor else we fail.In case the requested envelope is not in the same CoordinateReferenceSystemof the coverage we- Throws:
- DataSourceException- in case something bad happens during reprojections and/or intersections.
 
 - 
isAccurateResolutionpublic boolean isAccurateResolution() 
 - 
setAccurateResolutionpublic void setAccurateResolution(boolean accurateResolution) 
 - 
getMaxOversamplingFactorpublic int getMaxOversamplingFactor() 
 - 
setMaxOversamplingFactorpublic void setMaxOversamplingFactor(int maxOversamplingFactor) Sets the max oversampling factor for resolution calculation. That is, in case of high deformation on reprojection, how much higher the read resolution can be, compared to the known maximum resolution. This affects raster readers that can do internal resampling operations like a heterogeneous CRS mosaic, in which there is a resampling step to go from native CRS to the declared one.
 
- 
 
-