Package com.luciad.reference.format
Class TLcdProj4ReferenceParser
java.lang.Object
com.luciad.reference.format.TLcdProj4ReferenceParser
- All Implemented Interfaces:
ILcdModelReferenceParser
,ILcdXYWorldReferenceParser
public class TLcdProj4ReferenceParser
extends Object
implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
This class is used to parse coordinate reference systems specified as parameter strings
for the PROJ.4 library (http://trac.osgeo.org/proj/).
PROJ.4 parameters strings are an alternative to the OGC Well-Known Text encoding of spatial reference systems
that is specific to the PROJ.4 library. References are encoded as a sequence of key-value pairs. UTM zone 32N / WGS-84,
for instance, is encoded as
+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs
.
For more information on PROJ.4 parameters please refer to http://trac.osgeo.org/proj/wiki/GenParms.
Known limitations
- Only those projections supported by LuciadLightspeed are supported.
- Grid based datum adjustments are not supported.
- Since:
- 2013.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseModelReference
(String aDefinition) Returns theILcdModelReference
that corresponds to the specified string representation.parseXYWorldReference
(String aDefinition) Returns theILcdXYWorldReference
that is formatted as a String.
-
Constructor Details
-
TLcdProj4ReferenceParser
public TLcdProj4ReferenceParser()
-
-
Method Details
-
parseModelReference
Description copied from interface:ILcdModelReferenceParser
Returns theILcdModelReference
that corresponds to the specified string representation.- Specified by:
parseModelReference
in interfaceILcdModelReferenceParser
- Parameters:
aDefinition
- the String representation to be converted to anILcdModelReference
.- Returns:
- the
ILcdModelReference
that corresponds to the specified string, nevernull
. - Throws:
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)
-
parseXYWorldReference
Description copied from interface:ILcdXYWorldReferenceParser
Returns theILcdXYWorldReference
that is formatted as a String.- Specified by:
parseXYWorldReference
in interfaceILcdXYWorldReferenceParser
- Parameters:
aDefinition
- the String representation of theILcdXYWorldReference
.- Returns:
- the
ILcdXYWorldReference
that is formatted as a String. Nevernull
. - Throws:
ParseException
- If theILcdXYWorldReference
cannot be created from the String.
-