Class TLcdS57ModelEncoder

java.lang.Object
com.luciad.format.s57.TLcdS57ModelEncoder
All Implemented Interfaces:
ILcdOutputStreamFactoryCapable, ILcdModelEncoder, Serializable

@LcdService(service=ILcdModelEncoder.class, priority=20000) public class TLcdS57ModelEncoder extends Object implements ILcdModelEncoder, ILcdOutputStreamFactoryCapable
This model encoder encodes S-57 domain data into S-57 data files. Instances can be created via TLcdS57ProductConfiguration.createModelEncoder()

Output files

File Description
*.000 S-57 cell files

Supported file transfer protocols

  • This model encoder supports all transfer protocols that are supported by the outputStreamFactory of this encoder.

Supported models for saving

  • This model encoder can save all models decoded by the TLcdS57ModelDecoder.

Supported models for exporting

  • This model encoder only supports exporting of models already defined in the S-57 domain model (com.luciad.format.s57.

Supported model references

Sample code

 TLcdS57ProductConfiguration productConfiguration =
 TLcdS57ProductConfiguration.newInstance( ELcdS57ProductType.ENC );
 ILcdModelEncoder encoder = productConfiguration.createModelEncoder();
 encoder.export(model, "LC000000.000");
 

Thread safety

  • The encoding of models is thread-safe, as long as no properties are changed during the encoding.

Supported versions and specifications

  • S-57 Edition 3.1, November 2000

Known limitations

  • The S-57 update mechanism is not supported for encoding; the encoder can only create .000 files.
  • Encoding of relationships is not supported yet.
Since:
2013.0
See Also: