SFGFeature
Objective-C
@interface SFGFeature : SFGGeoJSONObject
Swift
class SFGFeature : SFGGeoJSONObject
Feature
-
Feature id
Declaration
Objective-C
@property (nonatomic, strong) NSString *id;
Swift
var id: String! { get set }
-
Geometry
Declaration
Objective-C
@property (nonatomic, strong) SFGGeometry *geometry;
Swift
var geometry: SFGGeometry! { get set }
-
Properties dictionary
Declaration
Objective-C
@property (nonatomic, strong) NSMutableDictionary<NSString *, NSObject *> *properties;
Swift
var properties: NSMutableDictionary! { get set }
-
Create
Declaration
Objective-C
+ (SFGFeature *)feature;
Return Value
new feature
-
Create
Declaration
Objective-C
+ (SFGFeature *)featureWithGeometry:(SFGGeometry *)geometry;
Parameters
geometry
geometry
Return Value
new feature
-
Create
Declaration
Objective-C
+ (SFGFeature *)featureWithTree:(NSDictionary *)tree;
Parameters
tree
JSON tree
Return Value
new feature
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new feature
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeometry:(SFGGeometry *)geometry;
Swift
init!(geometry: SFGGeometry!)
Parameters
geometry
geometry
Return Value
new feature
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;
Swift
init!(tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
Return Value
new feature
-
Get the geometry type
Declaration
Objective-C
- (enum SFGGeometryType)geometryType;
Swift
func geometryType() -> SFGGeometryType
Return Value
geometry type