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, nativeMetadataFormatName
Constructor and Description |
---|
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. |
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, setWidth
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
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 formatpublic 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 formatpublic 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 formatpublic 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 namepublic boolean isReadOnly()
true
since this object does not support the
mergeTree
, setFromTree
, and
reset
methods.isReadOnly
in class CoreCommonImageMetadata
true
since this IIOMetadata
object
cannot be modified.public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
UnsupportedOperationException
mergeTree
in class CoreCommonImageMetadata
IIOInvalidTreeException
javax.imageio.metadata.IIOMetadata#mergeTree()
,
isReadOnly()
public void reset()
UnsupportedOperationException
reset
in class CoreCommonImageMetadata
IIOMetadata.reset()
,
isReadOnly()
public List<GCP> getGCPs()
getGCPs
in class CoreCommonImageMetadata
protected 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.GDALMetadataDomain
protected List<String> getGdalMetadataDomainsList()
String
s 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-2018 GeoSolutions. All Rights Reserved.