Package com.luciad.reference.format
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatEllipsoid
(ILcdEllipsoid aEllipsoid) Formats the ellipsoid as an EPSG code.formatGeodeticDatum
(ILcdGeodeticDatum aGeodeticDatum) Formats the geodetic datum as an EPSG code.formatModelReference
(ILcdModelReference aModelReference) Formats the model reference passed as an EPSG code.formatXYWorldReference
(ILcdXYWorldReference aXYWorldReference) Formats the XY world reference passed as an EPSG code.
-
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 interfaceILcdModelReferenceFormatter
- 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 interfaceILcdXYWorldReferenceFormatter
- 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
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
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
-