|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectIIOMetadata
CoreCommonImageMetadata
GDALCommonIIOImageMetadata
public class GDALCommonIIOImageMetadata
Class needed to store all available information of a GDAL Dataset with the
add of additional information. For convenience and future re-use this class
also represents an IIOMetadata. A wide set of getters method allow
to retrieve several information directly from the metadata instance, without
need of getting the XML DOM nodes tree.
| Field Summary |
|---|
| Fields inherited from class CoreCommonImageMetadata |
|---|
nativeMetadataFormatClassName, nativeMetadataFormatName |
| Fields inherited from class IIOMetadata |
|---|
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, standardFormatSupported |
| Constructor Summary | |
|---|---|
GDALCommonIIOImageMetadata(Dataset dataset,
String name,
boolean initializationRequired)
Constructor which initializes fields by retrieving properties such as raster size, raster tiling properties, projection, and more from a given input Dataset if not null. |
|
GDALCommonIIOImageMetadata(Dataset dataset,
String name,
boolean initializationRequired,
String formatName,
String formatClassName)
GDALCommonIIOImageMetadata constructor. |
|
GDALCommonIIOImageMetadata(Dataset dataset,
String name,
String formatName,
String formatClassName)
Constructor which initializes fields by retrieving properties such as raster size, raster tiling properties, projection, and more from a given input Dataset. |
|
GDALCommonIIOImageMetadata(String sDatasetName)
GDALCommonIIOImageMetadata constructor. |
|
GDALCommonIIOImageMetadata(String sDatasetName,
String formatName,
String formatClassName)
GDALCommonIIOImageMetadata constructor. |
|
| Method Summary | |
|---|---|
GDALWritableCommonIIOImageMetadata |
asWritable()
Returns a copy of this GDALCommonIIOImageMetadata as a
GDALWritableCommonIIOImageMetadata instance, with setting
capabilities |
List<GCP> |
getGCPs()
Returns the Ground Control Points |
protected Map |
getGdalMetadataDomain(String metadataDomain)
Returns a Map representing metadata elements (key,value) for a specific domain of GDAL metadata. |
protected List<String> |
getGdalMetadataDomainsList()
Return all the available metadata domains. |
boolean |
isReadOnly()
Returns true since this object does not support the
mergeTree, setFromTree, and
reset methods. |
void |
mergeTree(String formatName,
Node root)
Method unsupported. |
void |
reset()
Method unsupported. |
| Methods inherited from class IIOMetadata |
|---|
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GDALCommonIIOImageMetadata(String sDatasetName)
GDALCommonIIOImageMetadata constructor. Firstly, it
provides to open a dataset from the specified input dataset name. Then,
it call the constructor which initializes all fields with dataset
properties, such as raster size, raster tiling properties, projection,
and more.
sDatasetName - The name (usually a File path or a subdataset name when
the format supports subdatasets) of the dataset we want to
open.
public GDALCommonIIOImageMetadata(String sDatasetName,
String formatName,
String formatClassName)
GDALCommonIIOImageMetadata constructor. Firstly, it
provides to open a dataset from the specified input dataset name. Then,
it call the constructor which initializes all fields with dataset
properties, such as raster size, raster tiling properties, projection,
and more.
sDatasetName - The name (usually a File path or a subdataset name when
the format supports subdatasets) of the dataset we want to
open.formatName - the name of the native metadata formatformatClassName - the name of the class of the native metadata format
public GDALCommonIIOImageMetadata(Dataset dataset,
String name,
boolean initializationRequired,
String formatName,
String formatClassName)
GDALCommonIIOImageMetadata constructor.
dataset - the input Dataset on which build the common
metadata object.name - the name to be set for the dataset represented by this
common metadata object.initializationRequired - specify if initializing fields is required or not.formatName - the name of the native metadata formatformatClassName - the name of the class of the native metadata format
public GDALCommonIIOImageMetadata(Dataset dataset,
String name,
String formatName,
String formatClassName)
Dataset.
dataset - the Dataset used to initialize all the
common metadata fields.name - the dataset nameformatName - the name of the native metadata formatformatClassName - the name of the class of the native metadata format
public GDALCommonIIOImageMetadata(Dataset dataset,
String name,
boolean initializationRequired)
Dataset if not null.
dataset - the Dataset used to initialize all the
common metadata fields.name - the dataset name| Method Detail |
|---|
public boolean isReadOnly()
true since this object does not support the
mergeTree, setFromTree, and
reset methods.
isReadOnly in class CoreCommonImageMetadatatrue since this IIOMetadata object
cannot be modified.
public void mergeTree(String formatName,
Node root)
throws IIOInvalidTreeException
UnsupportedOperationException
mergeTree in class CoreCommonImageMetadataIIOInvalidTreeExceptionjavax.imageio.metadata.IIOMetadata#mergeTree(),
isReadOnly()public void reset()
UnsupportedOperationException
reset in class CoreCommonImageMetadataIIOMetadata.reset(),
isReadOnly()public List<GCP> getGCPs()
getGCPs in class CoreCommonImageMetadataprotected Map getGdalMetadataDomain(String metadataDomain)
metadataDomain - the requested GDAL metadata domain.
null in case no metadata is available for the
domain or the specified domain is unsupported.GDALUtilities.GDALMetadataDomainprotected List<String> getGdalMetadataDomainsList()
Strings representing metadata domains
defined for the dataset on which this instance is based.public GDALWritableCommonIIOImageMetadata asWritable()
GDALCommonIIOImageMetadata as a
GDALWritableCommonIIOImageMetadata instance, with setting
capabilities
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||