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:
TLcdEPSGReferenceFormatter
Constructor and Description |
---|
TLcdEPSGReferenceParser() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getSupportedCodes()
Returns the list of supported codes by this parser.
|
ILcdEllipsoid |
parseEllipsoid(String aEPSGCode)
Decodes the ellipsoid that has the given EPSG code.
|
ILcdGeodeticDatum |
parseGeodeticDatum(String aEPSGCode)
Decodes the geodetic datum that has the given EPSG code.
|
ILcdModelReference |
parseModelReference(String aEPSGCode)
Decodes the model reference that has the given EPSG code.
|
ILcdProjection |
parseProjection(String aEPSGCode)
Decodes the projection that has the given EPSG code.
|
ILcdXYWorldReference |
parseXYWorldReference(String aXYWorldReferenceAsString)
Decodes the reference that has the given EPSG code as an XY world reference.
|
public ILcdModelReference parseModelReference(String aEPSGCode) throws ParseException
parseModelReference
in interface ILcdModelReferenceParser
aEPSGCode
- the EPSG code of the model reference, either as "EPSG:n" or "n" where n is the EPSG code.ParseException
- when the EPSG code is not supported.public ILcdXYWorldReference parseXYWorldReference(String aXYWorldReferenceAsString) throws ParseException
TLcdGeodetic
projection.
Supported reference codes are listed here.parseXYWorldReference
in interface ILcdXYWorldReferenceParser
aXYWorldReferenceAsString
- the String to parse. It should be of the form "EPSG:n" or "n" where n is the
EPSG code.ParseException
- when the EPSG code is not supported.public ILcdEllipsoid parseEllipsoid(String aEPSGCode) throws ParseException
Decodes the ellipsoid that has the given EPSG code.
Supported ellipsoid codes are listed here.
aEPSGCode
- the EPSG code of the ellipsoid.ParseException
- if the EPSG code is not supported.public ILcdGeodeticDatum parseGeodeticDatum(String aEPSGCode) throws ParseException
Decodes the geodetic datum that has the given EPSG code.
Supported geodetic datum codes are listed here.
aEPSGCode
- the EPSG code of the geodetic datum.ParseException
- if the EPSG code is not supported.public ILcdProjection parseProjection(String aEPSGCode) throws ParseException
Decodes the projection that has the given EPSG code.
Supported projection codes are listed here.
aEPSGCode
- the EPSG code of the projection.ParseException
- if the EPSG code is not supported.