SFMultiPoint
Objective-C
@interface SFMultiPoint : SFGeometryCollection
Swift
class SFMultiPoint : SFGeometryCollection
A restricted form of GeometryCollection where each Geometry in the collection must be of type Point.
-
Create
Declaration
Objective-C
+ (SFMultiPoint *)multiPoint;
Return Value
new multi point
-
Create
Declaration
Objective-C
+ (SFMultiPoint *)multiPointWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Parameters
hasZ
has z values
hasM
has m values
Return Value
new multi point
-
Create
Declaration
Objective-C
+ (SFMultiPoint *)multiPointWithPoints:(NSMutableArray<SFPoint *> *)points;
Parameters
points
list of points
Return Value
new multi point
-
Create
Declaration
Objective-C
+ (SFMultiPoint *)multiPointWithPoint:(SFPoint *)point;
Parameters
point
point
Return Value
new multi point
-
Create
Declaration
Objective-C
+ (SFMultiPoint *)multiPointWithMultiPoint:(SFMultiPoint *)multiPoint;
Parameters
multiPoint
multi point
Return Value
new multi point
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new multi point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
init!(hasZ: Bool, andHasM hasM: Bool)
Parameters
hasZ
has z values
hasM
has m values
Return Value
new multi point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPoints:(NSMutableArray<SFPoint *> *)points;
Swift
init!(points: NSMutableArray!)
Parameters
points
list of points
Return Value
new multi point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMultiPoint:(SFMultiPoint *)multiPoint;
Swift
init!(multiPoint: SFMultiPoint!)
Parameters
multiPoint
multi point
Return Value
new multi point
-
Get the points
Declaration
Objective-C
- (NSMutableArray<SFPoint *> *)points;
Swift
func points() -> NSMutableArray!
Return Value
points
-
Set the points
Declaration
Objective-C
- (void)setPoints:(NSMutableArray<SFPoint *> *)points;
Swift
func setPoints(_ points: NSMutableArray!)
Parameters
points
points
-
Add a point
Parameters
point
point
-
Get the number of points
Declaration
Objective-C
- (int)numPoints;
Swift
func numPoints() -> Int32
Return Value
point count
-
Returns the Nth point
Parameters
n
nth point to return
Return Value
point