Package org.geotools.coverage.io
Class CoverageReadRequest
Object
CoverageRequest
CoverageReadRequest
Request information from a
CoverageSource.
Note that we are working with the assumption that the queried coverage has separable dimensions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReferencedEnvelopeThe requested area in geographic coordinates, which means the area in destination world space which we want to get data for.protected MathTransform2DThe requestMathTransform2Dwhich would map the pixel into the requested world area.protected RectangleThe requested area in the destination raster space. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]getBands()voidsetAdditionalDomainsSubset(Map<String, Set<?>> additionalDomainsSubset) voidsetBands(int[] bands) voidsetDomainSubset(Rectangle rasterArea, MathTransform2D gridToWorldTrasform, CoordinateReferenceSystem crs) voidsetDomainSubset(Rectangle rasterArea, ReferencedEnvelope worldArea) voidvoidsetRangeSubset(RangeType value) Set the range subset we are requesting.voidsetTemporalSubset(SortedSet<DateRange> temporalSubset) voidsetVerticalSubset(Set<NumberRange<Double>> verticalSubset) Methods inherited from class CoverageRequest
getAdditionalParameters, getHandle, getHints, getName, setAdditionalParameters, setHandle, setHints, setName
-
Field Details
-
rasterArea
The requested area in the destination raster space.This field shall basically contain the screen dimension of the requested area in pixels.
- UML property:
- name="rasterArea"
-
geographicArea
The requested area in geographic coordinates, which means the area in destination world space which we want to get data for.- UML property:
- name="geographicArea"
-
gridToWorldTransform
The requestMathTransform2Dwhich would map the pixel into the requested world area.Note that having a raster are and a world area is not enough, unless we have a simple scale-and-translate grid-to-workd transform.
- UML property:
- name="gridToWorldTransform"
-
-
Constructor Details
-
CoverageReadRequest
public CoverageReadRequest()
-
-
Method Details
-
getRangeSubset
- See Also:
-
setDomainSubset
public void setDomainSubset(Rectangle rasterArea, MathTransform2D gridToWorldTrasform, CoordinateReferenceSystem crs) throws MismatchedDimensionException, TransformException -
setDomainSubset
- See Also:
-
org.geotools.coverage.io.CoverageReadRequest#setDomainSubset(java.awt.Rectangle, org.geotools.api.geometry.BoundingBox, org.geotools.api.referencing.datum.PixelInCell)
-
setRangeSubset
Set the range subset we are requesting.Note that a null
RangeTypemeans get everything.- UML property:
- name="rangeSubset"
-
getVerticalSubset
- See Also:
-
setVerticalSubset
- See Also:
-
org.geotools.coverage.io.CoverageReadRequest#setVerticalSubset(java.util.SortedSet)
-
getTemporalSubset
- See Also:
-
setTemporalSubset
- See Also:
-
getAdditionalDomainsSubset
-
setAdditionalDomainsSubset
-
getRasterArea
- See Also:
-
getGeographicArea
- See Also:
-
getGridToWorldTransform
- See Also:
-
setFilter
-
getFilter
-
getBands
public int[] getBands() -
setBands
public void setBands(int[] bands)
-