public class RasterUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.opengis.referencing.operation.CoordinateOperationFactory |
OPERATION_FACTORY |
Constructor and Description |
---|
RasterUtils() |
Modifier and Type | Method and Description |
---|---|
static org.locationtech.jts.geom.Geometry |
combineIntoOneGeometry(org.locationtech.jts.geom.Geometry geometry1,
org.locationtech.jts.geom.Geometry geometry2) |
static AffineTransform |
createAffineTransform(double[] idRangePerDimension,
MultiDimensionalNumericData fullBounds)
Returns the math transform as a two-dimensional affine transform.
|
static org.geotools.coverage.grid.GridCoverage2D |
createCoverageTypeDouble(String coverageName,
double westLon,
double eastLon,
double southLat,
double northLat,
double[] minPerBand,
double[] maxPerBand,
String[] namePerBand,
WritableRaster raster) |
static org.geotools.coverage.grid.GridCoverage2D |
createCoverageTypeDouble(String coverageName,
double westLon,
double eastLon,
double southLat,
double northLat,
double[] minPerBand,
double[] maxPerBand,
String[] namePerBand,
WritableRaster raster,
String crsCode) |
static org.geotools.coverage.grid.GridCoverage2D |
createCoverageTypeDouble(String coverageName,
double westLon,
double eastLon,
double southLat,
double northLat,
WritableRaster raster) |
static RasterDataAdapter |
createDataAdapterTypeDouble(String coverageName,
int numBands,
int tileSize) |
static RasterDataAdapter |
createDataAdapterTypeDouble(String coverageName,
int numBands,
int tileSize,
double[] minsPerBand,
double[] maxesPerBand,
String[] namesPerBand,
RasterTileMergeStrategy<?> mergeStrategy) |
static RasterDataAdapter |
createDataAdapterTypeDouble(String coverageName,
int numBands,
int tileSize,
RasterTileMergeStrategy<?> mergeStrategy) |
static WritableRaster |
createRasterTypeDouble(int numBands,
int tileSize) |
static org.opengis.referencing.operation.MathTransform |
createTransform(double[] idRangePerDimension,
MultiDimensionalNumericData fullBounds)
Creates a math transform using the information provided.
|
static void |
fillWithNoDataValues(WritableRaster raster,
double[][] noDataValues) |
static void |
forceRenderingHints(RenderingHints renderingHints) |
static org.geotools.coverage.processing.Operations |
getCoverageOperations() |
static BufferedImage |
getEmptyImage(int width,
int height,
Color backgroundColor,
Color outputTransparentColor,
ColorModel defaultColorModel) |
static org.locationtech.jts.geom.Geometry |
getFootprint(org.opengis.coverage.grid.GridCoverage gridCoverage,
org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs) |
static org.locationtech.jts.geom.Geometry |
getFootprint(org.geotools.geometry.jts.ReferencedEnvelope projectedReferenceEnvelope,
org.opengis.coverage.grid.GridCoverage gridCoverage) |
static org.geotools.geometry.jts.ReferencedEnvelope |
getReferenceEnvelope(org.opengis.coverage.grid.GridCoverage gridCoverage,
org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs) |
static org.geotools.coverage.grid.GridCoverage2D |
mosaicGridCoverages(Iterator<org.opengis.coverage.grid.GridCoverage> gridCoverages,
Color backgroundColor,
Color outputTransparentColor,
Rectangle pixelDimension,
org.geotools.geometry.GeneralEnvelope requestEnvelope,
double levelResX,
double levelResY,
double[][] noDataValues,
boolean xAxisSwitch,
org.geotools.coverage.grid.GridCoverageFactory coverageFactory,
String coverageName,
javax.media.jai.Interpolation interpolation,
javax.media.jai.Histogram histogram,
boolean scaleTo8BitSet,
boolean scaleTo8Bit,
ColorModel defaultColorModel) |
static BufferedImage |
toBufferedImage(Image image,
int type) |
public static final org.opengis.referencing.operation.CoordinateOperationFactory OPERATION_FACTORY
public static org.locationtech.jts.geom.Geometry getFootprint(org.opengis.coverage.grid.GridCoverage gridCoverage, org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs)
public static org.geotools.geometry.jts.ReferencedEnvelope getReferenceEnvelope(org.opengis.coverage.grid.GridCoverage gridCoverage, org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs)
public static org.locationtech.jts.geom.Geometry getFootprint(org.geotools.geometry.jts.ReferencedEnvelope projectedReferenceEnvelope, org.opengis.coverage.grid.GridCoverage gridCoverage)
public static org.locationtech.jts.geom.Geometry combineIntoOneGeometry(org.locationtech.jts.geom.Geometry geometry1, org.locationtech.jts.geom.Geometry geometry2)
public static org.opengis.referencing.operation.MathTransform createTransform(double[] idRangePerDimension, MultiDimensionalNumericData fullBounds) throws IllegalStateException
IllegalStateException
- if the grid range or the envelope were not set.public static AffineTransform createAffineTransform(double[] idRangePerDimension, MultiDimensionalNumericData fullBounds) throws IllegalStateException
IllegalStateException
- if the math transform is not of the appropriate type.public static void fillWithNoDataValues(WritableRaster raster, double[][] noDataValues)
public static org.geotools.coverage.grid.GridCoverage2D mosaicGridCoverages(Iterator<org.opengis.coverage.grid.GridCoverage> gridCoverages, Color backgroundColor, Color outputTransparentColor, Rectangle pixelDimension, org.geotools.geometry.GeneralEnvelope requestEnvelope, double levelResX, double levelResY, double[][] noDataValues, boolean xAxisSwitch, org.geotools.coverage.grid.GridCoverageFactory coverageFactory, String coverageName, javax.media.jai.Interpolation interpolation, javax.media.jai.Histogram histogram, boolean scaleTo8BitSet, boolean scaleTo8Bit, ColorModel defaultColorModel)
public static BufferedImage toBufferedImage(Image image, int type)
public static void forceRenderingHints(RenderingHints renderingHints)
public static org.geotools.coverage.processing.Operations getCoverageOperations()
public static BufferedImage getEmptyImage(int width, int height, Color backgroundColor, Color outputTransparentColor, ColorModel defaultColorModel)
public static WritableRaster createRasterTypeDouble(int numBands, int tileSize)
public static RasterDataAdapter createDataAdapterTypeDouble(String coverageName, int numBands, int tileSize)
public static RasterDataAdapter createDataAdapterTypeDouble(String coverageName, int numBands, int tileSize, RasterTileMergeStrategy<?> mergeStrategy)
public static RasterDataAdapter createDataAdapterTypeDouble(String coverageName, int numBands, int tileSize, double[] minsPerBand, double[] maxesPerBand, String[] namesPerBand, RasterTileMergeStrategy<?> mergeStrategy)
public static org.geotools.coverage.grid.GridCoverage2D createCoverageTypeDouble(String coverageName, double westLon, double eastLon, double southLat, double northLat, WritableRaster raster)
public static org.geotools.coverage.grid.GridCoverage2D createCoverageTypeDouble(String coverageName, double westLon, double eastLon, double southLat, double northLat, double[] minPerBand, double[] maxPerBand, String[] namePerBand, WritableRaster raster)
public static org.geotools.coverage.grid.GridCoverage2D createCoverageTypeDouble(String coverageName, double westLon, double eastLon, double southLat, double northLat, double[] minPerBand, double[] maxPerBand, String[] namePerBand, WritableRaster raster, String crsCode)
Copyright © 2013–2022. All rights reserved.