Class TLcdEPSGReferenceFormatter

java.lang.Object
com.luciad.reference.format.TLcdEPSGReferenceFormatter
All Implemented Interfaces:
ILcdModelReferenceFormatter, ILcdXYWorldReferenceFormatter

public class TLcdEPSGReferenceFormatter extends Object implements ILcdModelReferenceFormatter, ILcdXYWorldReferenceFormatter
Formats model references and XY world references into the EPSG name space.
See Also:
  • Constructor Details

    • TLcdEPSGReferenceFormatter

      public TLcdEPSGReferenceFormatter()
  • Method Details

    • formatModelReference

      public String formatModelReference(ILcdModelReference aModelReference) throws IllegalArgumentException
      Formats the model reference passed as an EPSG code. The resulting String has the form "EPSG:n" where n is the EPSG code.
      Specified by:
      formatModelReference in interface ILcdModelReferenceFormatter
      Parameters:
      aModelReference - the model reference to format.
      Returns:
      a String of the form "EPSG:n" where n is the EPSG code.
      Throws:
      IllegalArgumentException - when the model reference passed is not recognized as a supported EPSG code.
    • formatXYWorldReference

      public String formatXYWorldReference(ILcdXYWorldReference aXYWorldReference) throws IllegalArgumentException
      Formats the XY world reference passed as an EPSG code. The resulting String has the form "EPSG:n" where n is the EPSG code.
      Specified by:
      formatXYWorldReference in interface ILcdXYWorldReferenceFormatter
      Parameters:
      aXYWorldReference - the XY world reference to format.
      Returns:
      a String of the form "EPSG:n" where n is the EPSG code.
      Throws:
      IllegalArgumentException - when the XY world reference passed is not recognized as a supported EPSG code.
    • formatGeodeticDatum

      public String formatGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum) throws IllegalArgumentException
      Formats the geodetic datum as an EPSG code. The resulting String has the form "EPSG:n" where n is the EPSG code.
      Parameters:
      aGeodeticDatum - the geodetic datum to format
      Returns:
      a String of the form "EPSG:n" where n is the EPSG code
      Throws:
      IllegalArgumentException - when the geodetic datum is not recognized as a supported EPSG code
    • formatEllipsoid

      public String formatEllipsoid(ILcdEllipsoid aEllipsoid) throws IllegalArgumentException
      Formats the ellipsoid as an EPSG code. The resulting String has the form "EPSG:n" where n is the EPSG code.
      Parameters:
      aEllipsoid - the ellipsoid to format
      Returns:
      a String of the form "EPSG:n" where n is the EPSG code
      Throws:
      IllegalArgumentException - when the ellipsoid is not recognized as a supported EPSG code