SFGGeometryCollection
Objective-C
@interface SFGGeometryCollection : SFGGeometry
Swift
class SFGGeometryCollection : SFGGeometry
Geometry Collection
-
Array of geometries
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<SFGGeometry *> *geometries;
Swift
var geometries: NSMutableArray! { get set }
-
Create
Declaration
Objective-C
+ (SFGGeometryCollection *)geometryCollection;
Return Value
new geometry collection
-
Create
Declaration
Objective-C
+ (SFGGeometryCollection *)geometryCollectionWithGeometries: (NSArray<SFGGeometry *> *)geometries;
Parameters
geometries
list of geometries
Return Value
new geometry collection
-
Create
Declaration
Objective-C
+ (SFGGeometryCollection *)geometryCollectionWithCoordinates: (NSArray *)coordinates;
Parameters
coordinates
coordinate positions
Return Value
new geometry collection
-
Create
Declaration
Objective-C
+ (SFGGeometryCollection *)geometryCollectionWithGeometryCollection: (SFGeometryCollection *)geometryCollection;
Parameters
geometryCollection
simple geometry collection
Return Value
new geometry collection
-
Create
Declaration
Objective-C
+ (SFGGeometryCollection *)geometryCollectionWithTree:(NSDictionary *)tree;
Parameters
tree
JSON tree
Return Value
new geometry collection
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new geometry collection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeometries:(NSArray<SFGGeometry *> *)geometries;
Swift
init!(geometries: [SFGGeometry]!)
Parameters
geometries
list of geometries
Return Value
new geometry collection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithCoordinates:(NSArray *)coordinates;
Swift
init!(coordinates: [Any]!)
Parameters
coordinates
coordinate positions
Return Value
new geometry collection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeometryCollection: (SFGeometryCollection *)geometryCollection;
Swift
init!(geometryCollection: SFGeometryCollection!)
Parameters
geometryCollection
simple geometry collection
Return Value
new geometry collection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;
Swift
init!(tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
Return Value
new geometry collection
-
Get the simple features geometry collection
Declaration
Objective-C
- (SFGeometryCollection *)geometryCollection;
Swift
func geometryCollection() -> SFGeometryCollection!
Return Value
geometry collection
-
Set the simple features geometry collection
Declaration
Objective-C
- (void)setGeometryCollection:(SFGeometryCollection *)geometryCollection;
Swift
func setGeometryCollection(_ geometryCollection: SFGeometryCollection!)
Parameters
geometryCollection
geometry collection
-
Get geometries from a geometry collection
Declaration
Objective-C
+ (NSMutableArray *)geometriesFromGeometryCollection: (SFGeometryCollection *)geometryCollection;
Swift
class func geometries(from geometryCollection: SFGeometryCollection!) -> NSMutableArray!
Parameters
geometryCollection
simple geometry collection
Return Value
geometries
-
Get a geometry collection from geometries
Declaration
Objective-C
+ (SFGeometryCollection *)geometryCollectionFromGeometries: (NSArray *)geometries;
Swift
class func geometryCollection(fromGeometries geometries: [Any]!) -> SFGeometryCollection!
Parameters
geometries
geometries
Return Value
geometry collection
-
Get the JSON object geometries from the JSON tree
Declaration
Objective-C
+ (NSArray *)treeGeometries:(NSDictionary *)tree;
Swift
class func treeGeometries(_ tree: [AnyHashable : Any]!) -> [Any]!
Return Value
geometries