org.geotools.image.io.text
Class DefaultTextMetadataParser
java.lang.Object
org.geotools.image.io.text.TextMetadataParser
org.geotools.image.io.text.DefaultTextMetadataParser
public class DefaultTextMetadataParser
- extends TextMetadataParser
Default implementation of the TextMetadataParser
class, providing a method
to put all metadata read from a text into the tree model. This current implementation
uses the tree structure which matches approximatively with the
GML in JPEG 2000 standard.
- Since:
- 2.5
- Version:
- $Id: DefaultTextMetadataParser.java 30970 2008-07-09 14:14:55Z cedricbr $
- Author:
- Cédric Briançon
Fields inherited from class org.geotools.image.io.text.TextMetadataParser |
CENTRAL_MERIDIAN, COORDINATE_REFERENCE_SYSTEM, COORDINATE_REFERENCE_SYSTEM_TYPE, COORDINATE_SYSTEM, COORDINATE_SYSTEM_TYPE, DATUM, DATUM_TYPE, DEPTH, ELLIPSOID, ELLIPSOID_UNIT, FALSE_EASTING, FALSE_NORTHING, GREENWICH_LONGITUDE, HEIGHT, INVERSE_FLATTENING, LATITUDE_OF_ORIGIN, metadata, OPERATION_METHOD, PRIME_MERIDIAN, PROJECTION, SEMI_MAJOR, SEMI_MINOR, UNIT, WIDTH, X_DIRECTION, X_MAXIMUM, X_MINIMUM, X_RESOLUTION, Y_DIRECTION, Y_MAXIMUM, Y_MINIMUM, Y_RESOLUTION, Z_DIRECTION, Z_MAXIMUM, Z_MINIMUM, Z_RESOLUTION |
Methods inherited from class org.geotools.image.io.text.TextMetadataParser |
add, add, add, addAlias, clear, getAlias, getFormatPattern, getGeographicMetadata, getLocale, getSeparator, getSource, load, load, load, parseLine, setFormatPattern, setSeparator, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultTextMetadataParser
public DefaultTextMetadataParser()
- Creates a new instance of
TextMetadataParser
, with default factories.
DefaultTextMetadataParser
public DefaultTextMetadataParser(ReferencingFactoryContainer factories)
- Creates a new instance of
TextMetadataParser
, with the factories specified.
- Parameters:
factories
- The factories to use.
put
protected void put(TextMetadataParser.Key key,
java.lang.Object value)
- Put the specified value in the right node of the metadata tree. This part is left to
subclasses in order to provide different tree structure.
- Specified by:
put
in class TextMetadataParser
- Parameters:
key
- The alias of the key to add.value
- The value to add in the metadata tree.
putDone
protected void putDone()
- Should be launched after the
TextMetadataParser.put(Key, Object)
method has been done. It will
add axes according to the dimension defined, and sets grid range and offset vectors
for all dimensions defined.
- Specified by:
putDone
in class TextMetadataParser
setGeographicMetadata
public void setGeographicMetadata(GeographicMetadata metadata)
- Sets the geographic metadata and put all other variables to their default value.
This method should have been called before the
put(org.geotools.image.io.text.TextMetadataParser.Key, java.lang.Object)
and putDone()
one.
- Overrides:
setGeographicMetadata
in class TextMetadataParser
Copyright © 1996-2010 Geotools. All Rights Reserved.