|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.arcsde.raster.info.RasterUtils
public class RasterUtils
Method Summary | |
---|---|
static javax.imageio.ImageTypeSpecifier |
createFullImageTypeSpecifier(RasterDatasetInfo rasterInfo,
int rasterIndex)
|
static org.opengis.referencing.operation.MathTransform |
createRasterToModel(java.awt.Rectangle levelGridRange,
GeneralEnvelope levelEnvelope)
|
static java.lang.Number |
determineNoDataValue(java.awt.image.IndexColorModel colorMap)
For a color-mapped raster, the no-data value is set to the transparent pixel |
static java.lang.Number |
determineNoDataValue(int numBands,
double statsMin,
double statsMax,
RasterCellType nativeCellType)
|
static RasterCellType |
determineTargetCellType(RasterCellType nativeCellType,
java.util.List<java.lang.Number> noDataValues)
|
static java.awt.image.IndexColorModel |
ensureNoDataPixelIsAvailable(java.awt.image.IndexColorModel colorMap)
Returns a color model based on colorMap that's guaranteed to have at least one
transparent pixel whose index can be used as no-data value for colormapped rasters, even if
the returned IndexColorModel needs to be of a higher sample depth (ie, 16 instead of 8 bit)
to satisfy that. |
static java.util.List<RasterQueryInfo> |
findMatchingRasters(RasterDatasetInfo rasterInfo,
GeneralEnvelope requestedEnvelope,
java.awt.Rectangle requestedDim,
OverviewPolicy overviewPolicy)
Find out the raster ids and their pyramid levels in the raster dataset for the rasters whose envelope overlaps the requested one |
static void |
fitRequestToRaster(GeneralEnvelope requestedEnvelope,
RasterDatasetInfo rasterInfo,
RasterQueryInfo query)
|
static boolean |
isGeoPhysics(int numBands,
RasterCellType nativeCellType)
|
static java.awt.image.IndexColorModel |
sdeColorMapToJavaColorModel(java.awt.image.DataBuffer colorMapData,
int bitsPerSample)
Creates an IndexColorModel out of a DataBuffer obtained from an ArcSDE's raster color map. |
static java.awt.Rectangle |
setMosaicLocations(RasterDatasetInfo rasterInfo,
GeneralEnvelope resultEnvelope,
java.util.List<RasterQueryInfo> results)
Given a collection of RasterQueryInfo instances holding information about how a
request fits for each individual raster composing a catalog, figure out where their resulting
images fit into the overall mosaic that's gonna be the result of the request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.opengis.referencing.operation.MathTransform createRasterToModel(java.awt.Rectangle levelGridRange, GeneralEnvelope levelEnvelope)
public static java.awt.image.IndexColorModel sdeColorMapToJavaColorModel(java.awt.image.DataBuffer colorMapData, int bitsPerSample)
colorMapData
-
public static javax.imageio.ImageTypeSpecifier createFullImageTypeSpecifier(RasterDatasetInfo rasterInfo, int rasterIndex)
public static java.awt.Rectangle setMosaicLocations(RasterDatasetInfo rasterInfo, GeneralEnvelope resultEnvelope, java.util.List<RasterQueryInfo> results)
RasterQueryInfo
instances holding information about how a
request fits for each individual raster composing a catalog, figure out where their resulting
images fit into the overall mosaic that's gonna be the result of the request.
rasterInfo
- resultEnvelope
- results
-
public static java.util.List<RasterQueryInfo> findMatchingRasters(RasterDatasetInfo rasterInfo, GeneralEnvelope requestedEnvelope, java.awt.Rectangle requestedDim, OverviewPolicy overviewPolicy)
rasterInfo
- requestedEnvelope
- requestedDim
- overviewPolicy
-
public static void fitRequestToRaster(GeneralEnvelope requestedEnvelope, RasterDatasetInfo rasterInfo, RasterQueryInfo query)
public static java.awt.image.IndexColorModel ensureNoDataPixelIsAvailable(java.awt.image.IndexColorModel colorMap)
colorMap
that's guaranteed to have at least one
transparent pixel whose index can be used as no-data value for colormapped rasters, even if
the returned IndexColorModel needs to be of a higher sample depth (ie, 16 instead of 8 bit)
to satisfy that.
colorMap
- the raster's native color map the returned one will be based on
colorMap
if it has a transparent pixel, another, possibly of a
higher depth one if not, containing all the colors from colorMap
and a newly
allocated cell for the transparent pixel if necessarypublic static java.lang.Number determineNoDataValue(java.awt.image.IndexColorModel colorMap)
transparent pixel
colorMap
-
public static java.lang.Number determineNoDataValue(int numBands, double statsMin, double statsMax, RasterCellType nativeCellType)
numBands
- number of bands in the raster dataset for the band whose nodata value is to be
determined. Might be useful to treat special cases where some assumptions are made
depending on the cell type and number of bandsstatsMin
- the minimum sample value for the band as reported by the band's statistics, or
NaN
statsMax
- the maximum sample value for the band as reported by the band's statistics, or
NaN
nativeCellType
- the band's native cell type
public static boolean isGeoPhysics(int numBands, RasterCellType nativeCellType)
public static RasterCellType determineTargetCellType(RasterCellType nativeCellType, java.util.List<java.lang.Number> noDataValues)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |