Package org.geotools.coverage.io
Class CoverageReadRequest
- Object
-
- CoverageRequest
-
- CoverageReadRequest
-
public class CoverageReadRequest extends CoverageRequest
Request information from aCoverageSource
.Note that we are working with the assumption that the queried coverage has separable dimensions.
-
-
Field Summary
Fields Modifier and Type Field Description protected ReferencedEnvelope
geographicArea
The requested area in geographic coordinates, which means the area in destination world space which we want to get data for.protected MathTransform2D
gridToWorldTransform
The requestMathTransform2D
which would map the pixel into the requested world area.protected Rectangle
rasterArea
The requested area in the destination raster space.
-
Constructor Summary
Constructors Constructor Description CoverageReadRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Set<?>>
getAdditionalDomainsSubset()
int[]
getBands()
Filter
getFilter()
BoundingBox
getGeographicArea()
MathTransform2D
getGridToWorldTransform()
RangeType
getRangeSubset()
Rectangle
getRasterArea()
SortedSet<DateRange>
getTemporalSubset()
Set<NumberRange<Double>>
getVerticalSubset()
void
setAdditionalDomainsSubset(Map<String,Set<?>> additionalDomainsSubset)
void
setBands(int[] bands)
void
setDomainSubset(Rectangle rasterArea, MathTransform2D gridToWorldTrasform, CoordinateReferenceSystem crs)
void
setDomainSubset(Rectangle rasterArea, ReferencedEnvelope worldArea)
void
setFilter(Filter filter)
void
setRangeSubset(RangeType value)
Set the range subset we are requesting.void
setTemporalSubset(SortedSet<DateRange> temporalSubset)
void
setVerticalSubset(Set<NumberRange<Double>> verticalSubset)
-
Methods inherited from class CoverageRequest
getAdditionalParameters, getHandle, getHints, getName, setAdditionalParameters, setHandle, setHints, setName
-
-
-
-
Field Detail
-
rasterArea
protected Rectangle 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
protected ReferencedEnvelope 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
protected MathTransform2D gridToWorldTransform
The requestMathTransform2D
which 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"
-
-
Method Detail
-
getRangeSubset
public RangeType getRangeSubset()
- See Also:
getRangeSubset()
-
setDomainSubset
public void setDomainSubset(Rectangle rasterArea, MathTransform2D gridToWorldTrasform, CoordinateReferenceSystem crs) throws MismatchedDimensionException, TransformException
-
setDomainSubset
public void setDomainSubset(Rectangle rasterArea, ReferencedEnvelope worldArea)
- See Also:
org.geotools.coverage.io.CoverageReadRequest#setDomainSubset(java.awt.Rectangle, org.geotools.api.geometry.BoundingBox, org.geotools.api.referencing.datum.PixelInCell)
-
setRangeSubset
public void setRangeSubset(RangeType value)
Set the range subset we are requesting.Note that a null
RangeType
means get everything.- UML property:
- name="rangeSubset"
-
getVerticalSubset
public Set<NumberRange<Double>> getVerticalSubset()
- See Also:
getVerticalSubset()
-
setVerticalSubset
public void setVerticalSubset(Set<NumberRange<Double>> verticalSubset)
- See Also:
org.geotools.coverage.io.CoverageReadRequest#setVerticalSubset(java.util.SortedSet)
-
getTemporalSubset
public SortedSet<DateRange> getTemporalSubset()
- See Also:
getTemporalSubset()
-
setTemporalSubset
public void setTemporalSubset(SortedSet<DateRange> temporalSubset)
- See Also:
setTemporalSubset(java.util.SortedSet)
-
setAdditionalDomainsSubset
public void setAdditionalDomainsSubset(Map<String,Set<?>> additionalDomainsSubset)
-
getRasterArea
public Rectangle getRasterArea()
- See Also:
getRasterArea()
-
getGeographicArea
public BoundingBox getGeographicArea()
- See Also:
getGeographicArea()
-
getGridToWorldTransform
public MathTransform2D getGridToWorldTransform()
- See Also:
getGridToWorldTransform()
-
setFilter
public void setFilter(Filter filter)
-
getFilter
public Filter getFilter()
-
getBands
public int[] getBands()
-
setBands
public void setBands(int[] bands)
-
-