Class TLcdAUTO2ReferenceParser

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

public class TLcdAUTO2ReferenceParser extends Object implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
Reference parser for representations in the AUTO2 name space. The format of the String is specified by the OpenGIS Web Map Service (WMS) 1.3.0 specification (https://portal.opengeospatial.org/files/?artifact_id=7196).

Supported defined projections IDs are:

  • AUTO2:42001 Auto UTM
  • AUTO2:42002 Auto Transverse Mercator
  • AUTO2:42003 Auto Orthographic
  • AUTO2:42004 Auto Equi-rectangular
  • AUTO2:42005 Auto Mollweide

The string passed to the parser is of the form:
   AUTO:auto_crs_id,factor,lon0,lat0
with :
  • auto_crs_id = the projection ID.
  • factor = the units the Bounding Box is in, e.g. 0.3048 = standard feet.
  • lon0 = the longitude in degrees.
  • lat0 = the latitude in degrees.
  • Constructor Details

    • TLcdAUTO2ReferenceParser

      public TLcdAUTO2ReferenceParser()
  • Method Details

    • parseModelReference

      public ILcdModelReference parseModelReference(String aModelReferenceAsString) throws ParseException
      Description copied from interface: ILcdModelReferenceParser
      Returns the ILcdModelReference that corresponds to the specified string representation.
      Specified by:
      parseModelReference in interface ILcdModelReferenceParser
      Parameters:
      aModelReferenceAsString - 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 aXYWorldReferenceAsString) throws ParseException
      Description copied from interface: ILcdXYWorldReferenceParser
      Returns the ILcdXYWorldReference that is formatted as a String.
      Specified by:
      parseXYWorldReference in interface ILcdXYWorldReferenceParser
      Parameters:
      aXYWorldReferenceAsString - 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.
    • getSupportedCodes

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