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 Details

    • TLcdProj4ReferenceParser

      public TLcdProj4ReferenceParser()
  • Method Details

    • parseModelReference

      public ILcdModelReference parseModelReference(String aDefinition) throws ParseException
      Description copied from interface: ILcdModelReferenceParser
      Returns the ILcdModelReference that corresponds to the specified string representation.
      Specified by:
      parseModelReference in interface ILcdModelReferenceParser
      Parameters:
      aDefinition - the String representation to be converted to an ILcdModelReference.
      Returns:
      the ILcdModelReference that corresponds to the specified string, never null.
      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

      public ILcdXYWorldReference parseXYWorldReference(String aDefinition) throws ParseException
      Description copied from interface: ILcdXYWorldReferenceParser
      Returns the ILcdXYWorldReference that is formatted as a String.
      Specified by:
      parseXYWorldReference in interface ILcdXYWorldReferenceParser
      Parameters:
      aDefinition - the String representation of the ILcdXYWorldReference.
      Returns:
      the ILcdXYWorldReference that is formatted as a String. Never null.
      Throws:
      ParseException - If the ILcdXYWorldReference cannot be created from the String.