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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseModelReference(String aDefinition) Returns theILcdModelReferencethat corresponds to the specified string representation.parseXYWorldReference(String aDefinition) Returns theILcdXYWorldReferencethat is formatted as a String.
-
Constructor Details
-
TLcdProj4ReferenceParser
public TLcdProj4ReferenceParser()
-
-
Method Details
-
parseModelReference
Description copied from interface:ILcdModelReferenceParserReturns theILcdModelReferencethat corresponds to the specified string representation.- Specified by:
parseModelReferencein interfaceILcdModelReferenceParser- Parameters:
aDefinition- the String representation to be converted to anILcdModelReference.- Returns:
- the
ILcdModelReferencethat 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:ILcdXYWorldReferenceParserReturns theILcdXYWorldReferencethat is formatted as a String.- Specified by:
parseXYWorldReferencein interfaceILcdXYWorldReferenceParser- Parameters:
aDefinition- the String representation of theILcdXYWorldReference.- Returns:
- the
ILcdXYWorldReferencethat is formatted as a String. Nevernull. - Throws:
ParseException- If theILcdXYWorldReferencecannot be created from the String.
-