public class TLcdWKTReferenceFormatter extends Object implements ILcdModelReferenceFormatter, ILcdXYWorldReferenceFormatter
TLcdWKTReferenceParser
Constructor and Description |
---|
TLcdWKTReferenceFormatter()
Constructs a formatter to format geo references to Well Known Text format.
|
Modifier and Type | Method and Description |
---|---|
String |
format(ILcdGeoReference aGeoReference)
Encodes the specified geo reference as an OGC WKT string.
|
String |
formatModelReference(ILcdModelReference aModelReference)
Encodes the given model reference as a WKT string.
|
String |
formatXYWorldReference(ILcdXYWorldReference aXYWorldReference)
Encodes the given XY world reference as a WKT string.
|
public TLcdWKTReferenceFormatter()
public String formatModelReference(ILcdModelReference aModelReference) throws IllegalArgumentException, UnsupportedOperationException
formatModelReference
in interface ILcdModelReferenceFormatter
aModelReference
- the model reference to encode as a WKT String.
It should implement ILcdGeoReference
or extend from TLcdCartesianReference
.IllegalArgumentException
- when the model reference passed is not an ILcdGeoReference
or TLcdCartesianReference
.UnsupportedOperationException
- if the specified model reference cannot be encodedpublic String formatXYWorldReference(ILcdXYWorldReference aXYWorldReference) throws IllegalArgumentException, UnsupportedOperationException
formatXYWorldReference
in interface ILcdXYWorldReferenceFormatter
aXYWorldReference
- the XY world reference to encode as a WKT String.
It should implement ILcdGeoReference
or extend from TLcdCartesianReference
.IllegalArgumentException
- when the XY world reference passed is not an ILcdGeoReference
or TLcdCartesianReference
.UnsupportedOperationException
- when the XY world reference cannot be encodedpublic String format(ILcdGeoReference aGeoReference) throws NullPointerException, UnsupportedOperationException
aGeoReference
- the geo reference to encodeNullPointerException
- if the given geo reference is nullUnsupportedOperationException
- if the specified geo reference cannot be encoded