SFGGeoJSONObject
Objective-C
@interface SFGGeoJSONObject : NSObject
Swift
class SFGGeoJSONObject : NSObject
GeoJSON Object
-
Bounding box
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<NSDecimalNumber *> *bbox;
Swift
var bbox: NSMutableArray! { get set }
-
Foreign members
Declaration
Objective-C
@property (nonatomic, strong) NSMutableDictionary<NSString *, NSObject *> *foreignMembers;
Swift
var foreignMembers: NSMutableDictionary! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new object
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;
Swift
init!(tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
Return Value
new object
-
Get the GeoJSON object type
Declaration
Objective-C
- (NSString *)type;
Swift
func type() -> String!
Return Value
GeoJSON object type
-
Get the simple feature geometry
Return Value
simple feature geometry
-
Convert to a JSON tree
Declaration
Objective-C
- (NSMutableDictionary *)toTree;
Swift
func toTree() -> NSMutableDictionary!
Return Value
JSON tree
-
Set from a JSON tree
Declaration
Objective-C
- (void)fromTree:(NSDictionary *)tree;
Swift
func fromTree(_ tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
-
Get the JSON keys
Declaration
Objective-C
- (NSOrderedSet<NSString *> *)keys;
Swift
func keys() -> NSOrderedSet!
Return Value
JSON keys
-
Get the type of the JSON tree
Declaration
Objective-C
+ (NSString *)treeType:(NSDictionary *)tree;
Swift
class func treeType(_ tree: [AnyHashable : Any]!) -> String!
Return Value
type