Class TLcdSpatialReferenceParser

java.lang.Object
com.luciad.reference.format.TLcdSpatialReferenceParser
All Implemented Interfaces:
ILcdModelReferenceParser, ILcdXYWorldReferenceParser

@Deprecated public class TLcdSpatialReferenceParser extends Object implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
Deprecated.
It's encouraged to use TLcdEPSGReferenceParser instead
Parser for codes that are maintained by http://spatialreference.org/. This parser requires an internet connection to work since it queries http://spatialreference.org/.
Since:
11.0
  • Constructor Details

    • TLcdSpatialReferenceParser

      public TLcdSpatialReferenceParser()
      Deprecated.
  • Method Details

    • parseModelReference

      public ILcdModelReference parseModelReference(String aString) throws ParseException
      Deprecated.
      Returns the ILcdModelReference that corresponds to the specified string representation.

      This parser accepts two kinds of Strings.

      • The first kind of String has the form "EPSG:n", or simply "n". For example, "EPSG:4326". This reference will be the reference found at "http://spatialreference.org/ref/epsg/4326/".
      • The second kind of String is the name of the reference. This For example, "wgs-84". This reference will be the reference found at "http://spatialreference.org/ref/epsg/wgs-84/"
      Specified by:
      parseModelReference in interface ILcdModelReferenceParser
      Parameters:
      aString - 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 aString) throws ParseException
      Deprecated.
      Returns the ILcdXYWorldReference that is formatted as a String.

      This parser accepts two kinds of Strings.

      • The first kind of String has the form "EPSG:n", or simply "n". For example, "EPSG:4326". This reference will be the reference found at "http://spatialreference.org/ref/epsg/4326/".
      • The second kind of String is the name of the reference. This E.g. "wgs-84". This reference will be the reference found at "http://spatialreference.org/ref/epsg/wgs-84/"
      Specified by:
      parseXYWorldReference in interface ILcdXYWorldReferenceParser
      Parameters:
      aString - 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.