SFGLineString
Objective-C
@interface SFGLineString : SFGGeometry
Swift
class SFGLineString : SFGGeometry
Line String
-
Array of points
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<SFGPoint *> *points;
Swift
var points: NSMutableArray! { get set }
-
Create
Declaration
Objective-C
+ (SFGLineString *)lineString;
Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFGLineString *)lineStringWithCoordinates:(NSArray *)coordinates;
Parameters
coordinates
coordinate positions
Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFGLineString *)lineStringWithPoints:(NSArray<SFGPoint *> *)points;
Parameters
points
list of points
Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFGLineString *)lineStringWithLineString:(SFLineString *)lineString;
Parameters
lineString
simple line string
Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFGLineString *)lineStringWithTree:(NSDictionary *)tree;
Parameters
tree
JSON tree
Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)initWithCoordinates:(NSArray *)coordinates;
Swift
init!(coordinates: [Any]!)
Parameters
coordinates
coordinate positions
Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLineString:(SFLineString *)lineString;
Swift
init!(lineString: SFLineString!)
Parameters
lineString
simple line string
Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;
Swift
init!(tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
Return Value
new line string
-
Get the simple features line string
Return Value
line string
-
Set the simple features line string
Declaration
Objective-C
- (void)setLineString:(SFLineString *)lineString;
Swift
func setLineString(_ lineString: SFLineString!)
Parameters
lineString
line string