Package com.luciad.reference.format
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of supported codes by this parser.parseEllipsoid
(String aEPSGCode) Decodes the ellipsoid that has the given EPSG code.parseGeodeticDatum
(String aEPSGCode) Decodes the geodetic datum that has the given EPSG code.parseModelReference
(String aEPSGCode) Decodes the model reference that has the given EPSG code.parseProjection
(String aEPSGCode) Decodes the projection that has the given EPSG code.parseXYWorldReference
(String aXYWorldReferenceAsString) Decodes the reference that has the given EPSG code as an XY world reference.
-
Constructor Details
-
TLcdEPSGReferenceParser
public TLcdEPSGReferenceParser()
-
-
Method Details
-
parseModelReference
Decodes the model reference that has the given EPSG code. This model reference can be geographic or projected.- Specified by:
parseModelReference
in interfaceILcdModelReferenceParser
- 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 aTLcdGeodetic
projection. Supported reference codes are listed here.- Specified by:
parseXYWorldReference
in interfaceILcdXYWorldReferenceParser
- 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
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
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
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
Returns the list of supported codes by this parser.- Returns:
- the list of supported codes by this parser.
- Since:
- 2017.0
-