NTWKBGeometryWriter


@interface NTWKBGeometryWriter : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A WKB writer. Generates binary version of the Well Known Text (WKT) representation of the geometry. Supports both 2D and 3D coordinate serialization and big- and little-endian representations.

  • Constructs a new WKBGeometryWriter objects with default settings.

    Declaration

    Objective-C

    - (id)init;
  • Returns the endianness of output format.

    Declaration

    Objective-C

    - (BOOL)getBigEndian;

    Return Value

    True when big-endian representation is used, false if little-endian. The default is little-endian.

  • Sets the endianness of output format.

    Declaration

    Objective-C

    - (void)setBigEndian:(BOOL)bigEndian;

    Parameters

    bigEndian

    True if big-endian representation should be used, false if little-endian.

  • Returns the state of Z coordinate serialization.

    Declaration

    Objective-C

    - (BOOL)getZ;

    Return Value

    True if Z coordinate is stored in WKB output, false otherwise. The default is false.

  • Sets the state of Z coordinate serialization.

    Declaration

    Objective-C

    - (void)setZ:(BOOL)z;

    Parameters

    z

    True when Z coordinate should be serialized, false otherwise.

  • Creates a WKB data corresponding to the specified geometry.

    Warning

    Throws NSException If writing fails.

    Declaration

    Objective-C

    - (NTBinaryData *)writeGeometry:(NTGeometry *)geometry;

    Parameters

    geometry

    The geometry to write.

    Return Value

    The corresponding WKB data.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;