public class TLcdCRSReferenceParser extends java.lang.Object implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
Currently CRS:84, CRS:83 and CRS:27 are supported.
Constructor and Description |
---|
TLcdCRSReferenceParser() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getSupportedCodes()
Returns the list of supported codes of projection ids by this parser.
|
ILcdModelReference |
parseModelReference(java.lang.String aModelReferenceAsString)
Returns the
ILcdModelReference that corresponds to the specified string representation. |
ILcdXYWorldReference |
parseXYWorldReference(java.lang.String aXYWorldReferenceAsString)
Returns the
ILcdXYWorldReference that is formatted as a String. |
public ILcdModelReference parseModelReference(java.lang.String aModelReferenceAsString) throws java.text.ParseException
ILcdModelReferenceParser
ILcdModelReference
that corresponds to the specified string representation.parseModelReference
in interface ILcdModelReferenceParser
aModelReferenceAsString
- the String representation to be converted to an ILcdModelReference
.ILcdModelReference
that corresponds to the specified string, never null
.java.text.ParseException
- if this parser cannot convert the specified string into a model reference
(e.g. if the code is not supported or if the code was not valid)public ILcdXYWorldReference parseXYWorldReference(java.lang.String aXYWorldReferenceAsString) throws java.text.ParseException
ILcdXYWorldReferenceParser
ILcdXYWorldReference
that is formatted as a String.parseXYWorldReference
in interface ILcdXYWorldReferenceParser
aXYWorldReferenceAsString
- the String representation of the ILcdXYWorldReference
.ILcdXYWorldReference
that is formatted as a String. Never null
.java.text.ParseException
- If the ILcdXYWorldReference
cannot be created from the String.public java.util.List<java.lang.String> getSupportedCodes()