org.geotools.referencing.wkt
Class ParseWKT2GeoTiffMetadata

java.lang.Object
  extended byjava.text.Format
      extended byorg.geotools.referencing.wkt.AbstractParser
          extended byorg.geotools.referencing.wkt.ParseWKT2GeoTiffMetadata
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ParseWKT2GeoTiffMetadata
extends AbstractParser

Since:
2.2
Author:
simone giannecchini TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form
To Do:
This class is basically a copy of Parser with calls to GeoTIFFMetadata in method body. It would be nice if, instead of setting up GeoTIFFMetadata during WKT parsing, we could parse a WKT in the usual way, and then use a different class which analyse the CoordinateReferenceSystem object produced. It would be more general (it would work for any source, not just WKT) and avoid duplication (e.g. bug fixes in WKT parser not ported in this class). See GEOT-690.

Nested Class Summary
 
Nested classes inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
ParseWKT2GeoTiffMetadata(java.lang.String WKT, org.esa.beam.util.geotiff.GeoTIFFMetadata metadata)
          Constructs a parser using the default set of symbols and factories.
ParseWKT2GeoTiffMetadata(java.lang.String WKT, org.esa.beam.util.geotiff.GeoTIFFMetadata metadata, Symbols symbols)
           
 
Method Summary
protected  java.lang.Object parse(Element arg0)
          Parses the next element in the specified Well Know Text (WKT) tree.
 void parseCoordinateReferenceSystem()
          Parses a coordinate reference system element.
 
Methods inherited from class org.geotools.referencing.wkt.AbstractParser
format, getAuthority, getTree, parseObject, parseObject, reformat, setAuthority
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseWKT2GeoTiffMetadata

public ParseWKT2GeoTiffMetadata(java.lang.String WKT,
                                org.esa.beam.util.geotiff.GeoTIFFMetadata metadata)
Constructs a parser using the default set of symbols and factories.


ParseWKT2GeoTiffMetadata

public ParseWKT2GeoTiffMetadata(java.lang.String WKT,
                                org.esa.beam.util.geotiff.GeoTIFFMetadata metadata,
                                Symbols symbols)
Parameters:
symbols -
Method Detail

parseCoordinateReferenceSystem

public void parseCoordinateReferenceSystem()
                                    throws java.text.ParseException
Parses a coordinate reference system element.

Returns:
The coordinate reference system.
Throws:
java.text.ParseException - if the string can't be parsed.

parse

protected java.lang.Object parse(Element arg0)
                          throws java.text.ParseException
Description copied from class: AbstractParser
Parses the next element in the specified Well Know Text (WKT) tree.

Specified by:
parse in class AbstractParser
Parameters:
arg0 - The element to be parsed.
Returns:
The object.
Throws:
java.text.ParseException - if the element can't be parsed.


Copyright © GeoTools. All Rights Reserved.