SFGGeometry
Objective-C
@interface SFGGeometry : SFGGeoJSONObject
Swift
class SFGGeometry : SFGGeoJSONObject
Geometry
-
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new geometry
-
Initialize
Declaration
Objective-C
- (instancetype)initWithCoordinates:(NSArray *)coordinates;Swift
init!(coordinates: [Any]!)Parameters
coordinatescoordinate positions
Return Value
new geometry
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;Swift
init!(tree: [AnyHashable : Any]!)Parameters
treeJSON tree
Return Value
new geometry
-
Get the geometry type
Declaration
Objective-C
- (enum SFGGeometryType)geometryType;Swift
func geometryType() -> SFGGeometryTypeReturn Value
geometry type
-
Get the simple geometry
Return Value
simple geometry
-
Get the JSON object coordinates
Declaration
Objective-C
- (NSArray *)coordinates;Swift
func coordinates() -> [Any]!Return Value
coordinates
-
Set the coordinates
Declaration
Objective-C
- (void)setCoordinates:(NSArray *)coordinates;Swift
func setCoordinates(_ coordinates: [Any]!)Parameters
coordinatescoordinate positions
-
Get the JSON object coordinates from the JSON tree
Declaration
Objective-C
+ (NSArray *)treeCoordinates:(NSDictionary *)tree;Swift
class func treeCoordinates(_ tree: [AnyHashable : Any]!) -> [Any]!Return Value
coordinates
View on GitHub
SFGGeometry Class Reference