@LcdService(service=ILcdModelReferenceEncoder.class, priority=20001) public class TLcdEPSGModelReferenceEncoder extends Object implements ILcdModelReferenceEncoder, ILcdOutputStreamFactoryCapable
ILcdModelReferenceEncoder
encodes model references
in .epsg files corresponding to the given destination files.
A .epsg file contains a single decimal EPSG code, formatted as "n"
or "EPSG:n", that defines a georeference.TLcdEPSGModelReferenceDecoder
,
TLcdEPSGReferenceFormatter
,
TLcdCompositeModelReferenceEncoder
Constructor and Description |
---|
TLcdEPSGModelReferenceEncoder() |
Modifier and Type | Method and Description |
---|---|
ILcdOutputStreamFactory |
getOutputStreamFactory()
Sets the output stream factory that is used for writing .epsg files.
|
void |
save(ILcdModelReference aModelReference,
String aDestinationName)
Saves the specified model reference to a location, next to the data destination.
|
void |
setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
Sets the output stream factory that will be used for writing .epsg files.
|
public void setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
setOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
aOutputStreamFactory
- the factory responsible to create output streams
to which the model references will be encoded.public ILcdOutputStreamFactory getOutputStreamFactory()
getOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
public void save(ILcdModelReference aModelReference, String aDestinationName) throws IOException
ILcdModelReferenceEncoder
save
in interface ILcdModelReferenceEncoder
aModelReference
- the ILcdModelReference
to be encoded.aDestinationName
- the destination name of the model to which the specified model reference belongs.IOException
- if the ILcdModelReference
cannot be encoded.