public class TLcdWKTReferenceParser extends Object implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
ILcdModelReference
of LuciadLightspeed. The WKT format is specified in
OGC document 01-009 (OpenGIS Coordinate Transformation Service Implementation Specification).
If the reference starts with "Belge Lambert 1972" then a TLcdLambert1972BelgiumGridReference
reference will be created.
If the reference starts with "Amersfoort / RD New" then a TLcdRD1918DutchGridReference
reference will be created.
Constructor and Description |
---|
TLcdWKTReferenceParser() |
Modifier and Type | Method and Description |
---|---|
ILcdEllipsoid |
parseEllipsoid(String aEllipsoidAsWKT)
Decodes the ellipsoid from its WKT representation.
|
ILcdGeodeticDatum |
parseGeodeticDatum(String aGeodeticDatumAsWKT)
Decodes the geodetic datum from its WKT representation.
|
ILcdModelReference |
parseModelReference(String aModelReferenceAsString)
Decodes the model reference.
|
ILcdXYWorldReference |
parseXYWorldReference(String aXYWorldReferenceAsString)
Decodes the world reference.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public ILcdModelReference parseModelReference(String aModelReferenceAsString) throws ParseException
parseModelReference
in interface ILcdModelReferenceParser
aModelReferenceAsString
- the String representation of the ILcdModelReference.ParseException
- if the ILcdModelReference cannot be created from the String.public ILcdXYWorldReference parseXYWorldReference(String aXYWorldReferenceAsString) throws ParseException
TLcdGeodetic
projection.parseXYWorldReference
in interface ILcdXYWorldReferenceParser
aXYWorldReferenceAsString
- the String representation of the ILcdXYWorldReference.ParseException
- if the ILcdXYWorldReference cannot be created from the String.public ILcdGeodeticDatum parseGeodeticDatum(String aGeodeticDatumAsWKT) throws ParseException
aGeodeticDatumAsWKT
- the WKT representation of the geodetic datum.ParseException
- if the geodetic datum cannot be created from the string.public ILcdEllipsoid parseEllipsoid(String aEllipsoidAsWKT) throws ParseException
aEllipsoidAsWKT
- - the String representation of the ellipsoid.ParseException
- if the ellipsoid cannot be parsed from the string.