SFWGeometryReader
@interface SFWGeometryReader : NSObject
Well Known Binary Geometry Reader
-
Read a geometry
Declaration
Objective-C
+ (SFGeometry *)readGeometryWithReader:(SFByteReader *)reader;
Swift
class func readGeometry(with reader: SFByteReader!) -> SFGeometry!
Parameters
reader
reader
Return Value
geometry
-
Read a geometry
Declaration
Objective-C
+ (SFGeometry *)readGeometryWithReader:(SFByteReader *)reader andExpectedType:(Class)expectedType;
Swift
class func readGeometry(with reader: SFByteReader!, andExpectedType expectedType: AnyClass!) -> SFGeometry!
Parameters
reader
reader
expectedType
expected geometry class type
Return Value
geometry
-
Read the geometry type info
Declaration
Objective-C
+ (SFWGeometryTypeInfo *)readGeometryTypeWithReader:(SFByteReader *)reader;
Swift
class func readGeometryType(with reader: SFByteReader!) -> SFWGeometryTypeInfo!
Parameters
reader
byte reader
Return Value
geometry type info
-
Read a point
Declaration
Objective-C
+ (SFPoint *)readPointWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readPoint(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPoint!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
point
-
Read a line string
Declaration
Objective-C
+ (SFLineString *)readLineStringWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readLineString(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFLineString!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
line string
-
Read a polygon
Declaration
Objective-C
+ (SFPolygon *)readPolygonWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readPolygon(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolygon!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
polygon
-
Read a multi point
Declaration
Objective-C
+ (SFMultiPoint *)readMultiPointWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readMultiPoint(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPoint!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
multi point
-
Read a multi line string
Declaration
Objective-C
+ (SFMultiLineString *)readMultiLineStringWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readMultiLineString(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiLineString!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
multi line string
-
Read a multi polygon
Declaration
Objective-C
+ (SFMultiPolygon *)readMultiPolygonWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readMultiPolygon(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPolygon!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
multi polygon
-
Read a geometry collection
Declaration
Objective-C
+ (SFGeometryCollection *)readGeometryCollectionWithReader: (SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readGeometryCollection(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFGeometryCollection!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
geometry collection
-
Read a circular string
Declaration
Objective-C
+ (SFCircularString *)readCircularStringWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readCircularString(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCircularString!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
circular string
-
Read a compound curve
Declaration
Objective-C
+ (SFCompoundCurve *)readCompoundCurveWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readCompoundCurve(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCompoundCurve!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
compound curve
-
Read a curve polygon
Declaration
Objective-C
+ (SFCurvePolygon *)readCurvePolygonWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readCurvePolygon(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCurvePolygon!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
curve polygon
-
Read a polyhedral surface
Declaration
Objective-C
+ (SFPolyhedralSurface *)readPolyhedralSurfaceWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readPolyhedralSurface(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolyhedralSurface!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
polyhedral surface
-
Read a TIN
Declaration
Objective-C
+ (SFTIN *)readTINWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readTIN(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFTIN!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
TIN
-
Read a triangle
Declaration
Objective-C
+ (SFTriangle *)readTriangleWithReader:(SFByteReader *)reader andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
class func readTriangle(with reader: SFByteReader!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFTriangle!
Parameters
reader
reader
hasZ
has z values
hasM
has m values
Return Value
triangle