Package org.geotools.referencing.wkt
Class MathTransformParser
Object
Format
AbstractParser
MathTransformParser
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
Parser
Parser for math transform Well Known
Text (WKT) of math transform.
- Since:
- 2.0
- Author:
- Remi Eve, Martin Desruisseaux (IRD), Rueben Schulz
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Format
Format.Field -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MathTransformFactoryThe factory to use for creating math transforms. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a parser using the default set of symbols.MathTransformParser(Symbols symbols) Constructs a parser using the specified set of symbols and the default factories.MathTransformParser(Symbols symbols, MathTransformFactory mtFactory) Constructs a parser for the specified set of symbols and factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectParses the next element in the specified Well Know Text (WKT) tree.parseMathTransform(String text) Parses a math transform element.Methods inherited from class AbstractParser
format, getAuthority, getTree, getWarning, isColorEnabled, parseObject, parseObject, reformat, setAuthority, setColorEnabledMethods inherited from class Format
clone, format, formatToCharacterIterator
-
Field Details
-
mtFactory
The factory to use for creating math transforms.
-
-
Constructor Details
-
MathTransformParser
public MathTransformParser()Constructs a parser using the default set of symbols. -
MathTransformParser
Constructs a parser using the specified set of symbols and the default factories.- Parameters:
symbols- The symbols for parsing and formatting numbers.
-
MathTransformParser
Constructs a parser for the specified set of symbols and factory.- Parameters:
symbols- The symbols for parsing and formatting numbers.mtFactory- The factory to use to createMathTransformobjects.
-
-
Method Details
-
parseMathTransform
Parses a math transform element.- Parameters:
text- The text to be parsed.- Returns:
- The math transform.
- Throws:
ParseException- if the string can't be parsed.
-
parse
Parses the next element in the specified Well Know Text (WKT) tree.- Specified by:
parsein classAbstractParser- Parameters:
element- The element to be parsed.- Returns:
- The object.
- Throws:
ParseException- if the element can't be parsed.
-