Class GrassBinaryImageMetadata

Object
IIOMetadata
GrassBinaryImageMetadata

public final class GrassBinaryImageMetadata extends IIOMetadata
Represents the metadata associated with the native grass binary map.

Supported metadata entries are for now:

  1. those to create the region information:
    • north
    • south
    • east
    • west
    • rows
    • cols
    • x resolution
    • y resolution
  2. those to create the color table information:
    • the color rules
  3. those to create the categories information:
    • the categories
  4. the novalue
Since:
3.0
Author:
Andrea Antonello (www.hydrologis.com)
  • Field Details

  • Constructor Details

    • GrassBinaryImageMetadata

      public GrassBinaryImageMetadata(GrassBinaryRasterReadHandler rasterReader)
      Constructs the object using a GrassBinaryRasterReadHandler to initialize the metadata fields.
      Parameters:
      rasterReader - input GrassBinaryRasterReadHandler used to retrieve the metadata of the native grass raster file.
    • GrassBinaryImageMetadata

      public GrassBinaryImageMetadata()
      Default constructor.
    • GrassBinaryImageMetadata

      public GrassBinaryImageMetadata(int cols, int rows, double xRes, double yRes, double north, double south, double east, double west, double inNoData, List<String> colorRules, List<String> categories)
      Constructs the object using user supplied metadata.
      Parameters:
      cols - the number of columns.
      rows - the number of rows.
      xRes - the x size of the grid cell.
      yRes - the y size of the grid cell.
      north - the northern boundary.
      south - the southern boundary.
      east - the eastern boundary.
      west - the western boundary.
      inNoData - the value associated to noData grid values.
      colorRules - the list of colorrules.
      categories - the list of categories.
  • Method Details