|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGranuleDescriptor
public class GranuleDescriptor
A granuleDescriptor is a single piece of the mosaic, with its own overviews and everything.
This class is responsible for caching the various size of the different levels of each single granuleDescriptor since computing them each time is expensive (opening a file, looking for a reader, parsing metadata,etc...).
Right now we are making the assumption that a single granuleDescriptor is made a by a single file with embedded overviews, either explicit or intrinsic through wavelets like MrSID, ECW or JPEG2000.
| Constructor Summary | |
|---|---|
GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation)
|
|
GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation,
boolean heterogeneousGranules)
|
|
GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation,
Geometry inclusionGeometry)
Constructor for the GranuleDescriptor assuming it doesn't belong to an
heterogeneous granules set. |
|
GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation,
Geometry inclusionGeometry,
boolean heterogeneousGranules)
Constructor for the GranuleDescriptor |
|
GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry)
|
|
GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
boolean heterogeneousGranules)
|
|
GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
int maxDecimationFactor)
|
|
GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
int maxDecimationFactor,
boolean heterogeneousGranules)
|
|
GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
int maxDecimationFactor,
boolean heterogeneousGranules,
boolean handleArtifactsFiltering)
|
|
| Method Summary | |
|---|---|
BoundingBox |
getGranuleBBOX()
|
URL |
getGranuleUrl()
|
SimpleFeature |
getOriginator()
|
GranuleDescriptor.GranuleLoadingResult |
loadRaster(ImageReadParam imageReadParameters,
int index,
ReferencedEnvelope cropBBox,
MathTransform2D mosaicWorldToGrid,
RasterLayerRequest request,
Hints hints)
Load a specified a raster as a portion of the granule describe by this GranuleDescriptor. |
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry)
public GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
boolean heterogeneousGranules)
public GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
int maxDecimationFactor)
public GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
int maxDecimationFactor,
boolean heterogeneousGranules)
public GranuleDescriptor(String granuleLocation,
BoundingBox granuleBBox,
ImageReaderSpi suggestedSPI,
Geometry inclusionGeometry,
int maxDecimationFactor,
boolean heterogeneousGranules,
boolean handleArtifactsFiltering)
public GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation)
feature - suggestedSPI - pathType - locationAttribute - parentLocation -
public GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation,
boolean heterogeneousGranules)
public GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation,
Geometry inclusionGeometry)
GranuleDescriptor assuming it doesn't belong to an
heterogeneous granules set.
feature - a SimpleFeature referring to that granulesuggestedSPI - the suggested ImageReaderSpi to be used to get a reader
to handle this granule.pathType - A PathType identifying if the granule location should be resolved as
a relative or an absolute path.locationAttribute - the attribute containing the granule location.parentLocation - the location of the parent of that granule.inclusionGeometry - the footprint of that granule (if any). It may be null.
public GranuleDescriptor(SimpleFeature feature,
ImageReaderSpi suggestedSPI,
PathType pathType,
String locationAttribute,
String parentLocation,
Geometry inclusionGeometry,
boolean heterogeneousGranules)
GranuleDescriptor
feature - a SimpleFeature referring to that granulesuggestedSPI - the suggested ImageReaderSpi to be used to get a reader
to handle this granule.pathType - A PathType identifying if the granule location should be resolved as
a relative or an absolute path.locationAttribute - the attribute containing the granule location.parentLocation - the location of the parent of that granule.inclusionGeometry - the footprint of that granule (if any). It may be null.heterogeneousGranules - if true, this granule belongs to a set of heterogeneous granules| Method Detail |
|---|
public GranuleDescriptor.GranuleLoadingResult loadRaster(ImageReadParam imageReadParameters,
int index,
ReferencedEnvelope cropBBox,
MathTransform2D mosaicWorldToGrid,
RasterLayerRequest request,
Hints hints)
throws IOException
GranuleDescriptor.
imageReadParameters - the ImageReadParam to use for reading.index - the index to use for the ImageReader.cropBBox - the bbox to use for cropping.mosaicWorldToGrid - the cropping grid to world transform.request - the incoming request to satisfy.hints - Hints to be used for creating this raster.
GranuleDescriptor.
IOException - in case an error occurs.public String toString()
toString in class Objectpublic BoundingBox getGranuleBBOX()
public URL getGranuleUrl()
public SimpleFeature getOriginator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||