Enum Mosaic.GridGeometryPolicy
- Object
-
- Enum<Mosaic.GridGeometryPolicy>
-
- GridGeometryPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<Mosaic.GridGeometryPolicy>
- Enclosing class:
- Mosaic
public static enum Mosaic.GridGeometryPolicy extends Enum<Mosaic.GridGeometryPolicy>
Enum used for choosing the outputGridGeometry2D
to use and then resampling all theGridCoverage2D
to its resolution.- Author:
- Nicola Lagomarsini GesoSolutions S.A.S.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Mosaic.GridGeometryPolicy
getPolicyFromString(String policyString)
Static method to use for choosing theMosaic.GridGeometryPolicy
object associated to the input string.abstract Mosaic.ResampledRasters
resampleGridGeometry(GridCoverage2D[] sources, GridCoverage2D[] alphas, GridGeometry2D external, ParameterValueGroup parameters, Hints hints)
Method for resampling the inputGridCoverage2D
objects.static Mosaic.GridGeometryPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Mosaic.GridGeometryPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIRST
public static final Mosaic.GridGeometryPolicy FIRST
-
FINE
public static final Mosaic.GridGeometryPolicy FINE
-
COARSE
public static final Mosaic.GridGeometryPolicy COARSE
-
EXTERNAL
public static final Mosaic.GridGeometryPolicy EXTERNAL
-
-
Method Detail
-
values
public static Mosaic.GridGeometryPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Mosaic.GridGeometryPolicy c : Mosaic.GridGeometryPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mosaic.GridGeometryPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resampleGridGeometry
public abstract Mosaic.ResampledRasters resampleGridGeometry(GridCoverage2D[] sources, GridCoverage2D[] alphas, GridGeometry2D external, ParameterValueGroup parameters, Hints hints)
Method for resampling the inputGridCoverage2D
objects. The output of the method is an object containing the resampledRenderedImage
s and the finalGridGeometry2D
object to use.
-
getPolicyFromString
public static Mosaic.GridGeometryPolicy getPolicyFromString(String policyString)
Static method to use for choosing theMosaic.GridGeometryPolicy
object associated to the input string.
-
-