public final class GrassBinaryImageMetadata extends IIOMetadata
Supported metadata entries are for now:
JGrassRegion},
JGrassMapEnvironment}| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORIES_DESCRIPTOR
the CATEGORIES_DESCRIPTOR key for the metadata tree.
|
static String |
COLOR_RULES_DESCRIPTOR
the COLOR_RULES_DESCRIPTOR key for the metadata tree.
|
static String |
CRS
the CRS key for the metadata tree.
|
static String |
EAST
the EAST key for the metadata tree.
|
static String[] |
metadataFormatNames
the list of supported metadata format names.
|
static String |
nativeMetadataFormatName
the native metadata format name.
|
static String |
NCOLS
the NCOLS key for the metadata tree.
|
static String |
NO_DATA
the NO_DATA key for the metadata tree.
|
static String |
NORTH
the NORTH key for the metadata tree.
|
static String |
NROWS
the NROWS key for the metadata tree.
|
static String |
REGION_DESCRIPTOR
the REGION_DESCRIPTOR key for the metadata tree.
|
static String |
RULESSPLIT
the string used as separator in rules, to get them in one string.
|
static String |
SOUTH
the SOUTH key for the metadata tree.
|
static String |
WEST
the WEST key for the metadata tree.
|
static String |
XRES
the XRES key for the metadata tree.
|
static String |
YRES
the YRES key for the metadata tree.
|
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported| Constructor and Description |
|---|
GrassBinaryImageMetadata()
Default constructor.
|
GrassBinaryImageMetadata(GrassBinaryRasterReadHandler rasterReader)
Constructs the object using a
GrassBinaryRasterReadHandler to initialize the metadata
fields. |
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.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getAsTree(String formatName) |
IIOMetadataFormat |
getMetadataFormat(String formatName) |
protected IIOMetadataNode |
getStandardCompressionNode() |
boolean |
isReadOnly() |
void |
mergeTree(String formatName,
Node root) |
void |
reset() |
HashMap<String,String> |
toHashMap()
Creates a hashtable of the metadata for easier access.
|
String |
toString() |
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTreepublic static final String RULESSPLIT
public static final String NO_DATA
public static final String NROWS
public static final String NCOLS
public static final String XRES
public static final String YRES
public static final String SOUTH
public static final String WEST
public static final String NORTH
public static final String EAST
public static final String CRS
public static final String CATEGORIES_DESCRIPTOR
public static final String COLOR_RULES_DESCRIPTOR
public static final String REGION_DESCRIPTOR
public static final String nativeMetadataFormatName
public static final String[] metadataFormatNames
public GrassBinaryImageMetadata(GrassBinaryRasterReadHandler rasterReader)
GrassBinaryRasterReadHandler to initialize the metadata
fields.rasterReader - input GrassBinaryRasterReadHandler used to retrieve the metadata
of the native grass raster file.public 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)
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.public Node getAsTree(String formatName)
getAsTree in class IIOMetadatapublic boolean isReadOnly()
isReadOnly in class IIOMetadatapublic void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree in class IIOMetadataIIOInvalidTreeExceptionpublic void reset()
reset in class IIOMetadatapublic IIOMetadataFormat getMetadataFormat(String formatName)
getMetadataFormat in class IIOMetadataprotected IIOMetadataNode getStandardCompressionNode()
getStandardCompressionNode in class IIOMetadataCopyright © 1996–2019 Geotools. All rights reserved.