Package com.luciad.reference.format
Class TLcdWKTReferenceParser
java.lang.Object
com.luciad.reference.format.TLcdWKTReferenceParser
- All Implemented Interfaces:
ILcdModelReferenceParser
,ILcdXYWorldReferenceParser
public class TLcdWKTReferenceParser
extends Object
implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
This class is used to parse Coordinate Reference Systems in the Well-Known Text format
of the OpenGIS Specification to a
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseEllipsoid
(String aEllipsoidAsWKT) Decodes the ellipsoid from its WKT representation.parseGeodeticDatum
(String aGeodeticDatumAsWKT) Decodes the geodetic datum from its WKT representation.parseModelReference
(String aModelReferenceAsString) Decodes the model reference.parseXYWorldReference
(String aXYWorldReferenceAsString) Decodes the world reference.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.
-
Constructor Details
-
TLcdWKTReferenceParser
public TLcdWKTReferenceParser()
-
-
Method Details
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
parseModelReference
Decodes the model reference. This model reference can be geographic or projected.- Specified by:
parseModelReference
in interfaceILcdModelReferenceParser
- Parameters:
aModelReferenceAsString
- the String representation of the ILcdModelReference.- Returns:
- the ILcdModelReference that is formatted as a String.
- Throws:
ParseException
- if the ILcdModelReference cannot be created from the String.
-
parseXYWorldReference
public ILcdXYWorldReference parseXYWorldReference(String aXYWorldReferenceAsString) throws ParseException Decodes the world reference. This world reference can be geographic or projected. Geographic references are wrapped in aTLcdGeodetic
projection.- Specified by:
parseXYWorldReference
in interfaceILcdXYWorldReferenceParser
- Parameters:
aXYWorldReferenceAsString
- the String representation of the ILcdXYWorldReference.- Returns:
- the ILcdXYWorldReference that is formatted as a String.
- Throws:
ParseException
- if the ILcdXYWorldReference cannot be created from the String.
-
parseGeodeticDatum
Decodes the geodetic datum from its WKT representation.- Parameters:
aGeodeticDatumAsWKT
- the WKT representation of the geodetic datum.- Returns:
- the geodetic datum.
- Throws:
ParseException
- if the geodetic datum cannot be created from the string.
-
parseEllipsoid
Decodes the ellipsoid from its WKT representation.- Parameters:
aEllipsoidAsWKT
- - the String representation of the ellipsoid.- Returns:
- the ellipsoid.
- Throws:
ParseException
- if the ellipsoid cannot be parsed from the string.
-