|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.text.Format org.geotools.referencing.wkt.AbstractParser org.geotools.referencing.wkt.MathTransformParser org.geotools.referencing.wkt.Parser
Parser for Well Known Text (WKT). This parser can parse math transform objects as well, which is part of the WKT's element.
Nested Class Summary |
Nested classes inherited from class java.text.Format |
java.text.Format.Field |
Field Summary | |
protected org.opengis.referencing.crs.CRSFactory |
crsFactory
The factory to use for creating coordinate reference systems. |
protected org.opengis.referencing.cs.CSFactory |
csFactory
The factory to use for creating coordinate systems. |
protected org.opengis.referencing.datum.DatumFactory |
datumFactory
The factory to use for creating datum. |
Fields inherited from class org.geotools.referencing.wkt.MathTransformParser |
mtFactory |
Constructor Summary | |
Parser()
Constructs a parser using the default set of symbols and factories. |
|
Parser(Symbols symbols)
Constructs a parser for the specified set of symbols using default factories. |
|
Parser(Symbols symbols,
org.opengis.referencing.datum.DatumFactory datumFactory,
org.opengis.referencing.cs.CSFactory csFactory,
org.opengis.referencing.crs.CRSFactory crsFactory,
org.opengis.referencing.operation.MathTransformFactory mtFactory)
Constructs a parser for the specified set of symbols using the specified factories. |
|
Parser(Symbols symbols,
FactoryGroup factories)
Constructs a parser for the specified set of symbols using the specified set of factories. |
Method Summary | |
static java.lang.Class |
getClassOf(java.lang.String element)
Returns the class of the specified WKT element. |
static void |
main(java.lang.String[] args)
Read WKT strings from the standard input stream and reformat them to the standard output stream. |
protected java.lang.Object |
parse(Element element)
Parses the next element in the specified Well Know Text (WKT) tree. |
org.opengis.referencing.crs.CoordinateReferenceSystem |
parseCoordinateReferenceSystem(java.lang.String text)
Parses a coordinate reference system element. |
Methods inherited from class org.geotools.referencing.wkt.MathTransformParser |
parseMathTransform |
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 |
Field Detail |
protected final org.opengis.referencing.datum.DatumFactory datumFactory
protected final org.opengis.referencing.cs.CSFactory csFactory
protected final org.opengis.referencing.crs.CRSFactory crsFactory
Constructor Detail |
public Parser()
public Parser(Symbols symbols)
symbols
- The symbols for parsing and formatting numbers.public Parser(Symbols symbols, FactoryGroup factories)
symbols
- The symbols for parsing and formatting numbers.factories
- The factories to use.public Parser(Symbols symbols, org.opengis.referencing.datum.DatumFactory datumFactory, org.opengis.referencing.cs.CSFactory csFactory, org.opengis.referencing.crs.CRSFactory crsFactory, org.opengis.referencing.operation.MathTransformFactory mtFactory)
symbols
- The symbols for parsing and formatting numbers.datumFactory
- The factory to use for creating datum.csFactory
- The factory to use for creating coordinate systems.crsFactory
- The factory to use for creating coordinate reference systems.mtFactory
- The factory to use for creating math transform objects.Method Detail |
public org.opengis.referencing.crs.CoordinateReferenceSystem parseCoordinateReferenceSystem(java.lang.String text) throws java.text.ParseException
text
- The text to be parsed.
java.text.ParseException
- if the string can't be parsed.protected java.lang.Object parse(Element element) throws java.text.ParseException
parse
in class MathTransformParser
element
- The element to be parsed.
java.text.ParseException
- if the element can't be parsed.if ("FOO".equals(keyword))
in this method
and other methods of this class and subclasses, could be optimized with
a statement.public static java.lang.Class getClassOf(java.lang.String element)
ProjectedCRS.class
for element "".
element
- The WKT element name.
public static void main(java.lang.String[] args)
-authority <name> |
The authority to prefer when choosing WKT entities names. |
-indentation <value> |
Set the indentation (0 for output on a single line) |
-encoding <code> |
Set the character encoding |
-locale <language> |
Set the language for the output (e.g. "fr" for French) |
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |