Class TLcdEPSGReferenceParser

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

public class TLcdEPSGReferenceParser extends Object implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser

Parser for codes from the database that is maintained by the European Petroleum Survey Group. Methods can create and return the correct reference, datum, ellipsoid, and projection, based on the EPSG codes. The codes have the form "EPSG:n", or simply "n".

Supported EPSG codes are listed here:

Unsupported EPSG codes are listed here:

See Also:
  • Constructor Details

    • TLcdEPSGReferenceParser

      public TLcdEPSGReferenceParser()
  • Method Details

    • parseModelReference

      public ILcdModelReference parseModelReference(String aEPSGCode) throws ParseException
      Decodes the model reference that has the given EPSG code. This model reference can be geographic or projected.
      • Supported reference codes are listed here.
      • Unsupported reference codes are listed here.
      Specified by:
      parseModelReference in interface ILcdModelReferenceParser
      Parameters:
      aEPSGCode - the EPSG code of the model reference, either as "EPSG:n" or "n" where n is the EPSG code.
      Returns:
      the model reference that corresponds to the given EPSG code in the EPSG database.
      Throws:
      ParseException - when the EPSG code is not supported.
    • parseXYWorldReference

      public ILcdXYWorldReference parseXYWorldReference(String aXYWorldReferenceAsString) throws ParseException
      Decodes the reference that has the given EPSG code as an XY world reference. This model reference can be geographic or projected. Geographic references are wrapped in a TLcdGeodetic projection. Supported reference codes are listed here.
      Specified by:
      parseXYWorldReference in interface ILcdXYWorldReferenceParser
      Parameters:
      aXYWorldReferenceAsString - the String to parse. It should be of the form "EPSG:n" or "n" where n is the EPSG code.
      Returns:
      the reference corresponding to the EPSG code as in the EPSG database, presented as an XY World reference.
      Throws:
      ParseException - when the EPSG code is not supported.
    • parseEllipsoid

      public ILcdEllipsoid parseEllipsoid(String aEPSGCode) throws ParseException

      Decodes the ellipsoid that has the given EPSG code.

      Supported ellipsoid codes are listed here.

      Parameters:
      aEPSGCode - the EPSG code of the ellipsoid.
      Returns:
      the ellipsoid corresponding to the EPSG code as in the EPSG database.
      Throws:
      ParseException - if the EPSG code is not supported.
    • parseGeodeticDatum

      public ILcdGeodeticDatum parseGeodeticDatum(String aEPSGCode) throws ParseException

      Decodes the geodetic datum that has the given EPSG code.

      Supported geodetic datum codes are listed here.

      Parameters:
      aEPSGCode - the EPSG code of the geodetic datum.
      Returns:
      the geodetic datum corresponding to the EPSG code as in the EPSG database.
      Throws:
      ParseException - if the EPSG code is not supported.
    • parseProjection

      public ILcdProjection parseProjection(String aEPSGCode) throws ParseException

      Decodes the projection that has the given EPSG code.

      Supported projection codes are listed here.

      Parameters:
      aEPSGCode - the EPSG code of the projection.
      Returns:
      the projection corresponding to the EPSG code as in the EPSG database.
      Throws:
      ParseException - if the EPSG code is not supported.
    • getSupportedCodes

      public List<String> getSupportedCodes()
      Returns the list of supported codes by this parser.
      Returns:
      the list of supported codes by this parser.
      Since:
      2017.0