it.geosolutions.imageio.gdalframework
Class GDALWritableCommonIIOImageMetadata

java.lang.Object
  extended by javax.imageio.metadata.IIOMetadata
      extended by it.geosolutions.imageio.core.CoreCommonImageMetadata
          extended by it.geosolutions.imageio.gdalframework.GDALCommonIIOImageMetadata
              extended by it.geosolutions.imageio.gdalframework.GDALWritableCommonIIOImageMetadata

public class GDALWritableCommonIIOImageMetadata
extends GDALCommonIIOImageMetadata

Class extending GDALCommonIIOImageMetadata in order to provide write capabilities to the metadata instance. It is worth to point out that this class doesn't work on an underlying dataset. It simply allows to define a GDALImageWriter's understandable metadata object.

Author:
Simone Giannecchini, GeoSolutions., Daniele Romagnoli, GeoSolutions.

Field Summary
static String nativeMetadataFormatName
           
 
Fields inherited from class it.geosolutions.imageio.core.CoreCommonImageMetadata
nativeMetadataFormatClassName
 
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, standardFormatSupported
 
Constructor Summary
GDALWritableCommonIIOImageMetadata()
          Default constructor of GDALWritableCommonIIOImageMetadata.
GDALWritableCommonIIOImageMetadata(String datasetName)
          Constructor of GDALWritableCommonIIOImageMetadata.
 
Method Summary
 void setGdalMetadataDomain(Map metadataNameValuePairs, String domain)
          Set the metadata for a specific domain.
 
Methods inherited from class it.geosolutions.imageio.gdalframework.GDALCommonIIOImageMetadata
asWritable, getGCPs, getGdalMetadataDomain, getGdalMetadataDomainsList, isReadOnly, mergeTree, reset
 
Methods inherited from class it.geosolutions.imageio.core.CoreCommonImageMetadata
createCommonNativeTree, getAsTree, getColorInterpretations, getColorInterpretations, getColorModel, getDatasetDescription, getDatasetName, getDescription, getDriverDescription, getDriverName, getGcpNumber, getGcpProjection, getGeoTransformation, getHeight, getMaximum, getMaximums, getMinimum, getMinimums, 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, setNoDataValues, setNumBands, setNumOverviews, setOffsets, setProjection, setSampleModel, setScales, setTileHeight, setTileWidth, setWidth
 
Methods inherited from class javax.imageio.metadata.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nativeMetadataFormatName

public static final String nativeMetadataFormatName
See Also:
Constant Field Values
Constructor Detail

GDALWritableCommonIIOImageMetadata

public GDALWritableCommonIIOImageMetadata()
Default constructor of GDALWritableCommonIIOImageMetadata.


GDALWritableCommonIIOImageMetadata

public GDALWritableCommonIIOImageMetadata(String datasetName)
Constructor of GDALWritableCommonIIOImageMetadata.

Method Detail

setGdalMetadataDomain

public void setGdalMetadataDomain(Map metadataNameValuePairs,
                                  String domain)
Set the metadata for a specific domain.

Parameters:
metadataNameValuePairs - a Map containing name-value pairs where each pair represents a metadata element.
domain - the domain where the metadata need to be stored.
Throws:
IllegalArgumentException - in case the specified domain is unsupported.
See Also:

TODO: future version could check for already existent key or provide a step-to-step single metadata item setting


Copyright © 2006–2013 GeoSolutions. All rights reserved.