Enum Class RasterSamplingMode

java.lang.Object
java.lang.Enum<RasterSamplingMode>
com.luciad.rasters.RasterSamplingMode
All Implemented Interfaces:
Serializable, Comparable<RasterSamplingMode>, Constable

public enum RasterSamplingMode extends Enum<RasterSamplingMode>
Sampling mode of a raster.

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.

Area vs point sampling
Area vs point sampling
  • Enum Constant Details Link icon

    • Area Link icon

      public static final RasterSamplingMode Area
      Area-sampled data.

      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.

    • Point Link icon

      public static final RasterSamplingMode Point
      Point-sampled data.

      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.

  • Method Details Link icon

    • values Link icon

      public static RasterSamplingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static RasterSamplingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null