public final class GridCoverageRendererUtilities extends Object
Constructor and Description |
---|
GridCoverageRendererUtilities() |
Modifier and Type | Method and Description |
---|---|
static GridCoverage2D |
affine(GridCoverage2D coverage,
Interpolation interpolation,
AffineTransform affineTransform,
double[] bkgValues,
boolean useInputSampleDimensions,
GridCoverageFactory gridCoverageFactory,
Hints hints)
Apply an affineTransformation to a GridCoverage
|
static double[] |
colorToArray(Color color) |
static GridCoverage2D |
crop(GridCoverage2D coverage,
GeneralEnvelope destinationEnvelope,
boolean doReprojection,
double[] backgroundValues,
Hints hints)
Crop a coverage on a specified destination Envelope
|
static List<GridCoverage2D> |
displace(List<GridCoverage2D> coverages,
ProjectionHandler handler,
GeneralEnvelope destinationEnvelope,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
GridCoverageFactory gridCoverageFactory)
Displaces a list of coverages, using a ProjectionHandler to eventually split into proper
envelopes.
|
static List<GridCoverage2D> |
forceToValidBounds(List<GridCoverage2D> coverages,
ProjectionHandler handler,
double[] bgValues,
CoordinateReferenceSystem targetCRS,
Hints hints)
Forces an input list of coverages to the valid bounds of the provided target CRS, when a
reprojection is needed, using a ProjectionHandler.
|
static GridCoverage2D |
mosaicSorted(List<GridCoverage2D> coverages,
GeneralEnvelope destinationEnvelope,
double[] bgValues,
Hints hints)
Mosaic coverages with a preliminary sorting by size
|
static void |
removeNotIntersecting(List<GridCoverage2D> coverages,
GeneralEnvelope destinationEnvelope)
After reprojection or displacement we could have some coverage that are completely out of the
destination area (due to numerical issues their source bbox was interesting the request area,
but their reprojected version does not).
|
static GridCoverage2D |
reproject(GridCoverage2D coverage,
CoordinateReferenceSystem destinationCRS,
Interpolation interpolation,
GeneralEnvelope destinationEnvelope,
double[] bkgValues,
GridCoverageFactory gridCoverageFactory,
Hints hints)
Reproject a coverage to the specified destination, eventually adding a ROI if missing
|
static List<GridCoverage2D> |
reproject(List<GridCoverage2D> coverages,
CoordinateReferenceSystem destinationCRS,
Interpolation interpolation,
GeneralEnvelope destinationEnvelope,
double[] bkgValues,
GridCoverageFactory gridCoverageFactory,
Hints hints)
Reproject the specified list of coverages
|
public static List<GridCoverage2D> reproject(List<GridCoverage2D> coverages, CoordinateReferenceSystem destinationCRS, Interpolation interpolation, GeneralEnvelope destinationEnvelope, double[] bkgValues, GridCoverageFactory gridCoverageFactory, Hints hints) throws FactoryException
FactoryException
public static GridCoverage2D reproject(GridCoverage2D coverage, CoordinateReferenceSystem destinationCRS, Interpolation interpolation, GeneralEnvelope destinationEnvelope, double[] bkgValues, GridCoverageFactory gridCoverageFactory, Hints hints) throws FactoryException
FactoryException
public static double[] colorToArray(Color color)
public static void removeNotIntersecting(List<GridCoverage2D> coverages, GeneralEnvelope destinationEnvelope)
public static List<GridCoverage2D> displace(List<GridCoverage2D> coverages, ProjectionHandler handler, GeneralEnvelope destinationEnvelope, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, GridCoverageFactory gridCoverageFactory) throws FactoryException, TransformException
FactoryException
TransformException
public static List<GridCoverage2D> forceToValidBounds(List<GridCoverage2D> coverages, ProjectionHandler handler, double[] bgValues, CoordinateReferenceSystem targetCRS, Hints hints)
public static GridCoverage2D crop(GridCoverage2D coverage, GeneralEnvelope destinationEnvelope, boolean doReprojection, double[] backgroundValues, Hints hints)
public static GridCoverage2D mosaicSorted(List<GridCoverage2D> coverages, GeneralEnvelope destinationEnvelope, double[] bgValues, Hints hints)
public static GridCoverage2D affine(GridCoverage2D coverage, Interpolation interpolation, AffineTransform affineTransform, double[] bkgValues, boolean useInputSampleDimensions, GridCoverageFactory gridCoverageFactory, Hints hints)
Copyright © 1996–2023 Geotools. All rights reserved.