SFGMultiPolygon
Objective-C
@interface SFGMultiPolygon : SFGGeometry
Swift
class SFGMultiPolygon : SFGGeometry
Multi Polygon
-
Array of polygons
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<SFGPolygon *> *polygons;
Swift
var polygons: NSMutableArray! { get set }
-
Create
Declaration
Objective-C
+ (SFGMultiPolygon *)multiPolygon;
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFGMultiPolygon *)multiPolygonWithCoordinates:(NSArray *)coordinates;
Parameters
coordinates
coordinate positions
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFGMultiPolygon *)multiPolygonWithPolygons:(NSArray<SFGPolygon *> *)polygons;
Parameters
polygons
polygon list
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFGMultiPolygon *)multiPolygonWithMultiPolygon: (SFMultiPolygon *)multiPolygon;
Parameters
multiPolygon
simple multi polygon
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFGMultiPolygon *)multiPolygonWithTree:(NSDictionary *)tree;
Parameters
tree
JSON tree
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithCoordinates:(NSArray *)coordinates;
Swift
init!(coordinates: [Any]!)
Parameters
coordinates
coordinate positions
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPolygons:(NSArray<SFGPolygon *> *)polygons;
Swift
init!(polygons: [SFGPolygon]!)
Parameters
polygons
polygon list
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMultiPolygon:(SFMultiPolygon *)multiPolygon;
Swift
init!(multiPolygon: SFMultiPolygon!)
Parameters
multiPolygon
simple multi polygon
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;
Swift
init!(tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
Return Value
new multi polygon
-
Get the simple features multi polygon
Declaration
Objective-C
- (SFMultiPolygon *)multiPolygon;
Swift
func multiPolygon() -> SFMultiPolygon!
Return Value
multi polygon
-
Set the simple features multi polygon
Declaration
Objective-C
- (void)setMultiPolygon:(SFMultiPolygon *)multiPolygon;
Swift
func setMultiPolygon(_ multiPolygon: SFMultiPolygon!)
Parameters
multiPolygon
multi polygon