public enum RasterSamplingMode extends Enum<RasterSamplingMode>
The following image clarifies the interpretation of the sampling mode. The green rectangle represents the bounds of the image. On the left side the colored rectangles represent pixels in an area-sampled basic image and on the right side the colored dots represent pixels in a point-sampled basic image.
Enum Constant and Description |
---|
Area
Area-sampled data.
|
Point
Point-sampled data.
|
Modifier and Type | Method and Description |
---|---|
static RasterSamplingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RasterSamplingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RasterSamplingMode Area
Each sample applies to the area covered by a pixel. This is for example the case for data that is retrieved using a photometric sensor. This is often used for color data.
public static final RasterSamplingMode Point
Each sample applies to a single point. This is for example the case for data that is retrieved using laser scanning. This is often used for elevation data.
public static RasterSamplingMode[] values()
for (RasterSamplingMode c : RasterSamplingMode.values()) System.out.println(c);
public static RasterSamplingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null