Class TLcdEPSGModelReferenceEncoder

java.lang.Object
com.luciad.reference.format.TLcdEPSGModelReferenceEncoder
All Implemented Interfaces:
ILcdOutputStreamFactoryCapable, ILcdModelReferenceEncoder

This 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.
Since:
8.0
See Also:
  • Constructor Details

    • TLcdEPSGModelReferenceEncoder

      public TLcdEPSGModelReferenceEncoder()
  • Method Details

    • setOutputStreamFactory

      public void setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
      Sets the output stream factory that will be used for writing .epsg files.
      Specified by:
      setOutputStreamFactory in interface ILcdOutputStreamFactoryCapable
      Parameters:
      aOutputStreamFactory - the factory responsible to create output streams to which the model references will be encoded.
    • getOutputStreamFactory

      public ILcdOutputStreamFactory getOutputStreamFactory()
      Sets the output stream factory that is used for writing .epsg files.
      Specified by:
      getOutputStreamFactory in interface ILcdOutputStreamFactoryCapable
      Returns:
      the factory responsible to create output streams to which the model references will be encoded.
    • save

      public void save(ILcdModelReference aModelReference, String aDestinationName) throws IOException
      Description copied from interface: ILcdModelReferenceEncoder
      Saves the specified model reference to a location, next to the data destination.
      Specified by:
      save in interface ILcdModelReferenceEncoder
      Parameters:
      aModelReference - the ILcdModelReference to be encoded.
      aDestinationName - the destination name of the model to which the specified model reference belongs.
      Throws:
      IOException - if the ILcdModelReference cannot be encoded.