SFWBGeometryWriter
Objective-C
@interface SFWBGeometryWriter : NSObject
Swift
class SFWBGeometryWriter : NSObject
Well Known Binary Geometry Writer
-
Write a geometry to well-known bytes
Declaration
Objective-C
+ (NSData *)writeGeometry:(SFGeometry *)geometry;
Swift
class func write(_ geometry: SFGeometry!) -> Data!
Parameters
geometry
geometry
Return Value
well-known bytes
-
Write a geometry to well-known bytes
Declaration
Objective-C
+ (NSData *)writeGeometry:(SFGeometry *)geometry inByteOrder:(CFByteOrder)byteOrder;
Swift
class func write(_ geometry: SFGeometry!, inByteOrder byteOrder: CFByteOrder) -> Data!
Parameters
geometry
geometry
byteOrder
byte order
Return Value
well-known bytes
-
Initializer
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Initializer
Declaration
Objective-C
- (instancetype)initWithByteOrder:(CFByteOrder)byteOrder;
Swift
init!(byteOrder: CFByteOrder)
Parameters
byteOrder
byte order
-
Initializer
Declaration
Objective-C
- (instancetype)initWithWriter:(SFByteWriter *)writer;
Swift
init!(writer: SFByteWriter!)
Parameters
writer
byte writer
-
Get the byte writer
Return Value
byte writer
-
Get the written byte data
Declaration
Objective-C
- (NSData *)data;
Swift
func data() -> Data!
Return Value
written byte data
-
Close the byte writer
Declaration
Objective-C
- (void)close;
Swift
func close()
-
Write a geometry to the byte writer
Declaration
Objective-C
- (void)write:(SFGeometry *)geometry;
Swift
func write(_ geometry: SFGeometry!)
Parameters
geometry
geometry
-
Write a point
Parameters
point
point
-
Write a line string
Declaration
Objective-C
- (void)writeLineString:(SFLineString *)lineString;
Swift
func write(_ lineString: SFLineString!)
Parameters
lineString
line string
-
Write a multi point
Declaration
Objective-C
- (void)writeMultiPoint:(SFMultiPoint *)multiPoint;
Swift
func write(_ multiPoint: SFMultiPoint!)
Parameters
multiPoint
multi point
-
Write a multi line string
Declaration
Objective-C
- (void)writeMultiLineString:(SFMultiLineString *)multiLineString;
Swift
func write(_ multiLineString: SFMultiLineString!)
Parameters
multiLineString
multi line string
-
Write a multi polygon
Declaration
Objective-C
- (void)writeMultiPolygon:(SFMultiPolygon *)multiPolygon;
Swift
func write(_ multiPolygon: SFMultiPolygon!)
Parameters
multiPolygon
multi polygon
-
Write a geometry collection
Declaration
Objective-C
- (void)writeGeometryCollection:(SFGeometryCollection *)geometryCollection;
Swift
func write(_ geometryCollection: SFGeometryCollection!)
Parameters
geometryCollection
geometry collection
-
Write a circular string
Declaration
Objective-C
- (void)writeCircularString:(SFCircularString *)circularString;
Swift
func write(_ circularString: SFCircularString!)
Parameters
circularString
circular string
-
Write a compound curve
Declaration
Objective-C
- (void)writeCompoundCurve:(SFCompoundCurve *)compoundCurve;
Swift
func write(_ compoundCurve: SFCompoundCurve!)
Parameters
compoundCurve
compound curve
-
Write a curve polygon
Declaration
Objective-C
- (void)writeCurvePolygon:(SFCurvePolygon *)curvePolygon;
Swift
func write(_ curvePolygon: SFCurvePolygon!)
Parameters
curvePolygon
curve polygon
-
Write a polyhedral surface
Declaration
Objective-C
- (void)writePolyhedralSurface:(SFPolyhedralSurface *)polyhedralSurface;
Swift
func write(_ polyhedralSurface: SFPolyhedralSurface!)
Parameters
polyhedralSurface
polyhedral surface
-
Write a TIN
Parameters
tin
TIN
-
Write a triangle
Declaration
Objective-C
- (void)writeTriangle:(SFTriangle *)triangle;
Swift
func write(_ triangle: SFTriangle!)
Parameters
triangle
triangle
-
Write a geometry to the byte writer
Declaration
Objective-C
+ (void)writeGeometry:(SFGeometry *)geometry withWriter:(SFByteWriter *)writer;
Swift
class func write(_ geometry: SFGeometry!, with writer: SFByteWriter!)
Parameters
geometry
geometry
writer
byte writer
-
Write a point
Declaration
Objective-C
+ (void)writePoint:(SFPoint *)point withWriter:(SFByteWriter *)writer;
Swift
class func write(_ point: SFPoint!, with writer: SFByteWriter!)
Parameters
point
point
writer
byte writer
-
Write a line string
Declaration
Objective-C
+ (void)writeLineString:(SFLineString *)lineString withWriter:(SFByteWriter *)writer;
Swift
class func write(_ lineString: SFLineString!, with writer: SFByteWriter!)
Parameters
lineString
line string
writer
byte writer
-
Write a polygon
Declaration
Objective-C
+ (void)writePolygon:(SFPolygon *)polygon withWriter:(SFByteWriter *)writer;
Swift
class func write(_ polygon: SFPolygon!, with writer: SFByteWriter!)
Parameters
polygon
polygon
writer
byte writer
-
Write a multi point
Declaration
Objective-C
+ (void)writeMultiPoint:(SFMultiPoint *)multiPoint withWriter:(SFByteWriter *)writer;
Swift
class func write(_ multiPoint: SFMultiPoint!, with writer: SFByteWriter!)
Parameters
multiPoint
multi point
writer
byte writer
-
Write a multi line string
Declaration
Objective-C
+ (void)writeMultiLineString:(SFMultiLineString *)multiLineString withWriter:(SFByteWriter *)writer;
Swift
class func write(_ multiLineString: SFMultiLineString!, with writer: SFByteWriter!)
Parameters
multiLineString
multi line string
writer
byte writer
-
Write a multi polygon
Declaration
Objective-C
+ (void)writeMultiPolygon:(SFMultiPolygon *)multiPolygon withWriter:(SFByteWriter *)writer;
Swift
class func write(_ multiPolygon: SFMultiPolygon!, with writer: SFByteWriter!)
Parameters
multiPolygon
multi polygon
writer
byte writer
-
Write a geometry collection
Declaration
Objective-C
+ (void)writeGeometryCollection:(SFGeometryCollection *)geometryCollection withWriter:(SFByteWriter *)writer;
Swift
class func write(_ geometryCollection: SFGeometryCollection!, with writer: SFByteWriter!)
Parameters
geometryCollection
geometry collection
writer
byte writer
-
Write a circular string
Declaration
Objective-C
+ (void)writeCircularString:(SFCircularString *)circularString withWriter:(SFByteWriter *)writer;
Swift
class func write(_ circularString: SFCircularString!, with writer: SFByteWriter!)
Parameters
circularString
circular string
writer
byte writer
-
Write a compound curve
Declaration
Objective-C
+ (void)writeCompoundCurve:(SFCompoundCurve *)compoundCurve withWriter:(SFByteWriter *)writer;
Swift
class func write(_ compoundCurve: SFCompoundCurve!, with writer: SFByteWriter!)
Parameters
compoundCurve
compound curve
writer
byte writer
-
Write a curve polygon
Declaration
Objective-C
+ (void)writeCurvePolygon:(SFCurvePolygon *)curvePolygon withWriter:(SFByteWriter *)writer;
Swift
class func write(_ curvePolygon: SFCurvePolygon!, with writer: SFByteWriter!)
Parameters
curvePolygon
curve polygon
writer
byte writer
-
Write a polyhedral surface
Declaration
Objective-C
+ (void)writePolyhedralSurface:(SFPolyhedralSurface *)polyhedralSurface withWriter:(SFByteWriter *)writer;
Swift
class func write(_ polyhedralSurface: SFPolyhedralSurface!, with writer: SFByteWriter!)
Parameters
polyhedralSurface
polyhedral surface
writer
byte writer
-
Write a TIN
Declaration
Objective-C
+ (void)writeTIN:(SFTIN *)tin withWriter:(SFByteWriter *)writer;
Swift
class func write(_ tin: SFTIN!, with writer: SFByteWriter!)
Parameters
tin
TIN
writer
byte writer
-
Write a triangle
Declaration
Objective-C
+ (void)writeTriangle:(SFTriangle *)triangle withWriter:(SFByteWriter *)writer;
Swift
class func write(_ triangle: SFTriangle!, with writer: SFByteWriter!)
Parameters
triangle
triangle
writer
byte writer