Package com.luciad.reference.format
Class TLcdWKTModelReferenceEncoder
java.lang.Object
com.luciad.reference.format.TLcdWKTModelReferenceEncoder
- All Implemented Interfaces:
ILcdOutputStreamFactoryCapable
,ILcdModelReferenceEncoder
@LcdService(service=ILcdModelReferenceEncoder.class,
priority=20000)
public class TLcdWKTModelReferenceEncoder
extends Object
implements ILcdModelReferenceEncoder, ILcdOutputStreamFactoryCapable
This
ILcdModelReferenceEncoder
encodes model references
in .prj files corresponding to the given destination files.
A .prj file contains a Well-Known Text (WKT) string that defines a
georeference, as specified by the Open GIS Consortium (OGC).- Since:
- 8.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the input stream factory that is used for writing .prj 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 .prj files.
-
Constructor Details
-
TLcdWKTModelReferenceEncoder
public TLcdWKTModelReferenceEncoder()
-
-
Method Details
-
setOutputStreamFactory
Sets the output stream factory that will be used for writing .prj files.- Specified by:
setOutputStreamFactory
in interfaceILcdOutputStreamFactoryCapable
- Parameters:
aOutputStreamFactory
- the factory responsible to create output streams to which the model references will be encoded.
-
getOutputStreamFactory
Sets the input stream factory that is used for writing .prj files.- Specified by:
getOutputStreamFactory
in interfaceILcdOutputStreamFactoryCapable
- Returns:
- the factory responsible to create output streams to which the model references will be encoded.
-
save
Description copied from interface:ILcdModelReferenceEncoder
Saves the specified model reference to a location, next to the data destination.- Specified by:
save
in interfaceILcdModelReferenceEncoder
- Parameters:
aModelReference
- theILcdModelReference
to be encoded.aDestinationName
- the destination name of the model to which the specified model reference belongs.- Throws:
IOException
- if theILcdModelReference
cannot be encoded.
-