NTWKTGeometryWriter


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

Generates Well Known Text (WKT) representation of the geometry. Supports both 2D and 3D coordinate serialization.

  • Constructs a new WKTGeometryWriter objects with default settings.

    Declaration

    Objective-C

    - (id)init;
  • Returns the state of Z coordinate serialization.

    Declaration

    Objective-C

    - (BOOL)getZ;

    Return Value

    True if Z coordinate is stored in WKT 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 WKT string corresponding to the specified geometry.

    Warning

    Throws NSException If writing fails.

    Declaration

    Objective-C

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

    Parameters

    geometry

    The geometry to write.

    Return Value

    The corresponding WKT string.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;