| java.lang.Object org.vfny.geoserver.util.WCSUtils
WCSUtils | public class WCSUtils (Code) | | author: Simone Giannecchini, GeoSolutions author: Alessio Fabiani, GeoSolutions |
Method Summary | |
public static Coverage | bandSelect(Map params, GridCoverage coverage) Band Selecting
Chooses N
from a grid coverage and copies their sample data to the destination grid
coverage in the order specified. | public static GridCoverage2D | crop(Coverage coverage, GeneralEnvelope sourceEnvelope, CoordinateReferenceSystem sourceCRS, GeneralEnvelope destinationEnvelopeInSourceCRS, Boolean conserveEnvelope) Cropping
The crop operation is responsible for selecting geographic subareas of
the source coverage. | public static GridCoverage2D | filteredSubsample(GridCoverage2D gc, int scaleXInt, int scaleYInt, Interpolation interpolation, BorderExtender be) Subsampling the provided
GridCoverage2D with the provided
parameters. | public static GridCoverage2D | interpolate(GridCoverage2D coverage, Interpolation interpolation) Interpolating
Specifies the interpolation type to be used to interpolate values for
points which fall between grid cells. | public static GridCoverage2D | reproject(GridCoverage2D coverage, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, Interpolation interpolation) Reprojecting
The new grid geometry can have a different coordinate reference system
than the underlying grid geometry. | public static GridCoverage2D | resample(GridCoverage2D gc, CoordinateReferenceSystem crs, Interpolation interpolation) Reprojecting the input coverage using the provided parameters. | public static GridCoverage2D | scale(GridCoverage2D coverage, GridRange newGridRange, GridCoverage sourceCoverage, CoordinateReferenceSystem sourceCRS, GeneralEnvelope destinationEnvelopeInSourceCRS) Scaling
Let user to scale down to the EXACT needed resolution. | public static GridCoverage2D | scale(double scaleX, double scaleY, float xTrans, float yTrans, Interpolation interpolation, BorderExtender be, GridCoverage2D gc) Scaling the input coverage using the provided parameters. |
bandSelect | public static Coverage bandSelect(Map params, GridCoverage coverage) throws WcsException(Code) | | Band Selecting
Chooses N
from a grid coverage and copies their sample data to the destination grid
coverage in the order specified. The
"SampleDimensions" parameter
specifies the source
org.geotools.coverage.GridSampleDimension indices, and its size (
SampleDimensions.length ) determines the
number of sample dimensions of the destination grid coverage. The
destination coverage may have any number of sample dimensions, and a
particular sample dimension of the source coverage may be repeated in the
destination coverage by specifying it multiple times in the
"SampleDimensions" parameter.
Parameters: params - Set Parameters: coverage - GridCoverage Coverage throws: WcsException - |
crop | public static GridCoverage2D crop(Coverage coverage, GeneralEnvelope sourceEnvelope, CoordinateReferenceSystem sourceCRS, GeneralEnvelope destinationEnvelopeInSourceCRS, Boolean conserveEnvelope) throws WcsException(Code) | | Cropping
The crop operation is responsible for selecting geographic subareas of
the source coverage.
Parameters: coverage - Coverage Parameters: sourceEnvelope - GeneralEnvelope Parameters: sourceCRS - CoordinateReferenceSystem Parameters: destinationEnvelopeInSourceCRS - GeneralEnvelope GridCoverage2D throws: WcsException - |
filteredSubsample | public static GridCoverage2D filteredSubsample(GridCoverage2D gc, int scaleXInt, int scaleYInt, Interpolation interpolation, BorderExtender be)(Code) | | Subsampling the provided
GridCoverage2D with the provided
parameters.
Parameters: gc - Parameters: scaleXInt - Parameters: scaleYInt - Parameters: interpolation - Parameters: be - |
interpolate | public static GridCoverage2D interpolate(GridCoverage2D coverage, Interpolation interpolation) throws WcsException(Code) | | Interpolating
Specifies the interpolation type to be used to interpolate values for
points which fall between grid cells. The default value is nearest
neighbor. The new interpolation type operates on all sample dimensions.
Possible values for type are:
"NearestNeighbor" ,
"Bilinear" and
"Bicubic" (the
"Optimal" interpolation type is currently not supported).
Parameters: coverage - GridCoverage2D Parameters: interpolation - Interpolation GridCoverage2D throws: WcsException - |
reproject | public static GridCoverage2D reproject(GridCoverage2D coverage, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, Interpolation interpolation) throws WcsException(Code) | | Reprojecting
The new grid geometry can have a different coordinate reference system
than the underlying grid geometry. For example, a grid coverage can be
reprojected from a geodetic coordinate reference system to Universal
Transverse Mercator CRS.
Parameters: coverage - GridCoverage2D Parameters: sourceCRS - CoordinateReferenceSystem Parameters: targetCRS - CoordinateReferenceSystem GridCoverage2D throws: WcsException - |
resample | public static GridCoverage2D resample(GridCoverage2D gc, CoordinateReferenceSystem crs, Interpolation interpolation)(Code) | | Reprojecting the input coverage using the provided parameters.
Parameters: gc - Parameters: crs - Parameters: interpolation - |
scale | public static GridCoverage2D scale(GridCoverage2D coverage, GridRange newGridRange, GridCoverage sourceCoverage, CoordinateReferenceSystem sourceCRS, GeneralEnvelope destinationEnvelopeInSourceCRS)(Code) | | Scaling
Let user to scale down to the EXACT needed resolution. This step does not
prevent from having loaded an overview of the original image based on the
requested scale.
Parameters: coverage - GridCoverage2D Parameters: newGridRange - GridRange Parameters: sourceCoverage - GridCoverage Parameters: sourceCRS - CoordinateReferenceSystem Parameters: destinationEnvelopeInSourceCRS - GridCoverage2D |
scale | public static GridCoverage2D scale(double scaleX, double scaleY, float xTrans, float yTrans, Interpolation interpolation, BorderExtender be, GridCoverage2D gc)(Code) | | Scaling the input coverage using the provided parameters.
Parameters: scaleX - Parameters: scaleY - Parameters: xTrans - Parameters: yTrans - Parameters: interpolation - Parameters: be - Parameters: gc - |
|
|