Package org.geotools.gce.imagemosaic
Class RasterLayerResponse
- Object
-
- RasterLayerResponse
-
public class RasterLayerResponse extends Object
A RasterLayerResponse. An instance of this class is produced everytime a requestCoverage is called to a reader.- Author:
- Simone Giannecchini, GeoSolutions, Daniele Romagnoli, GeoSolutions, Stefan Alfons Krueger (alfonx), Wikisquare.de : Support for jar:file:foo.jar/bar.properties URLs
-
-
Constructor Summary
Constructors Constructor Description RasterLayerResponse(RasterLayerRequest request, RasterManager rasterManager, SubmosaicProducerFactory collectorsFactory)
Construct aRasterLayerResponse
given a specificRasterLayerRequest
, aGridCoverageFactory
to produceGridCoverage
s and anImageReaderSpi
to be used for instantiating an Image Reader for a read operation,
-
Method Summary
-
-
-
Constructor Detail
-
RasterLayerResponse
public RasterLayerResponse(RasterLayerRequest request, RasterManager rasterManager, SubmosaicProducerFactory collectorsFactory)
Construct aRasterLayerResponse
given a specificRasterLayerRequest
, aGridCoverageFactory
to produceGridCoverage
s and anImageReaderSpi
to be used for instantiating an Image Reader for a read operation,- Parameters:
request
- aRasterLayerRequest
originating this response.rasterManager
- raster manager being used
-
-
Method Detail
-
createResponse
public GridCoverage2D createResponse() throws IOException
Compute the coverage request and produce a grid coverage which will be returned bycreateResponse()
. The produced grid coverage may benull
in case of empty request.- Returns:
- the
GridCoverage
produced as computation of this response using thecreateResponse()
method. - Throws:
IOException
- UML property:
- name="gridCoverage"
-
getOriginatingCoverageRequest
public RasterLayerRequest getOriginatingCoverageRequest()
- Returns:
- the
RasterLayerRequest
originating this response. - UML property:
- name="request"
-
getRequest
public RasterLayerRequest getRequest()
-
getFootprintBehavior
public FootprintBehavior getFootprintBehavior()
-
getBaseReadParameters
public ImageReadParam getBaseReadParameters()
-
getFinalGridToWorldCorner
public MathTransform2D getFinalGridToWorldCorner()
-
getFinalWorldToGridCorner
public MathTransform2D getFinalWorldToGridCorner()
-
getMosaicBBox
public ReferencedEnvelope getMosaicBBox()
-
getFinalTransparentColor
public Color getFinalTransparentColor()
-
getRasterBounds
public Rectangle getRasterBounds()
-
getBaseGridToWorld
public MathTransform getBaseGridToWorld()
-
getImageChoice
public int getImageChoice()
-
setImageChoice
public void setImageChoice(int imageChoice)
-
isMultithreadingAllowed
public boolean isMultithreadingAllowed()
-
getRasterManager
public RasterManager getRasterManager()
-
getHints
public Hints getHints()
-
setGranulesPaths
public void setGranulesPaths(String granulesPaths)
-
addGranulePaths
public void addGranulePaths(String granulesPaths)
-
setSourceUrl
public void setSourceUrl(URL sourceUrl)
-
getDefaultArtifactsFilterThreshold
public int getDefaultArtifactsFilterThreshold()
-
getArtifactsFilterPTileThreshold
public double getArtifactsFilterPTileThreshold()
-
getBackgroundValues
public double[] getBackgroundValues()
-
getExcessGranuleRemover
public ROIExcessGranuleRemover getExcessGranuleRemover()
-
getGeometryMask
public Geometry getGeometryMask()
-
getMaskingBufferPixels
public double getMaskingBufferPixels()
-
isSetRoiProperty
public boolean isSetRoiProperty()
-
isHeterogeneousCRS
public boolean isHeterogeneousCRS()
-
reprojectTo
public RasterLayerResponse reprojectTo(GranuleDescriptor templateDescriptor) throws Exception
Builds an alternate view of request/response/manager based on a template descriptor- Throws:
Exception
-
-