public class GDALCommonIIOImageMetadata extends CoreCommonImageMetadata
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.nativeMetadataFormatClassName, nativeMetadataFormatNamecontroller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, standardFormatSupported| Constructor and Description |
|---|
GDALCommonIIOImageMetadata(org.gdal.gdal.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(org.gdal.gdal.Dataset dataset,
String name,
boolean initializationRequired,
String formatName,
String formatClassName)
GDALCommonIIOImageMetadata constructor. |
GDALCommonIIOImageMetadata(org.gdal.gdal.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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
createCommonNativeTree, getAsTree, getColorInterpretations, getColorInterpretations, getColorModel, getDatasetDescription, getDatasetName, getDescription, getDriverDescription, getDriverName, getGcpNumber, getGcpProjection, getGeoTransformation, getHeight, getMaximum, getMaximums, getMinimum, getMinimums, getNoData, getNoDataValue, getNoDataValues, getNumBands, getNumOverviews, getNumOverviews, getOffset, getOffsets, getProjection, getSampleModel, getScale, getScales, getTileHeight, getTileWidth, getWidth, setColorInterpretations, setColorModel, setDatasetDescription, setDatasetName, setDriverDescription, setDriverName, setGcpNumber, setGcpProjection, setGcps, setGeoTransformation, setHeight, setMaximums, setMinimums, setNoData, setNoDataValues, setNumBands, setNumOverviews, setOffsets, setProjection, setSampleModel, setScales, setTileHeight, setTileWidth, setWidthactivateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTreepublic 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 formatpublic GDALCommonIIOImageMetadata(org.gdal.gdal.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 formatpublic GDALCommonIIOImageMetadata(org.gdal.gdal.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 formatpublic GDALCommonIIOImageMetadata(org.gdal.gdal.Dataset dataset,
String name,
boolean initializationRequired)
Dataset if not null.dataset - the Dataset used to initialize all the
common metadata fields.name - the dataset namepublic 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
UnsupportedOperationExceptionmergeTree in class CoreCommonImageMetadataIIOInvalidTreeExceptionjavax.imageio.metadata.IIOMetadata#mergeTree(),
isReadOnly()public void reset()
UnsupportedOperationExceptionreset 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
capabilitiesCopyright © 2006–2019 GeoSolutions. All rights reserved.