OAFFeaturesConverter
Objective-C
@interface OAFFeaturesConverter : NSObject
Swift
class OAFFeaturesConverter : NSObject
Features Converter
-
Convert the JSON string to a collections
Declaration
Objective-C
+ (OAFCollections *)jsonToCollections:(NSString *)json;
Swift
class func json(toCollections json: String!) -> OAFCollections!
Parameters
json
JSON string
Return Value
collections
-
Convert the JSON tree to a collections
Declaration
Objective-C
+ (OAFCollections *)treeToCollections:(NSDictionary *)tree;
Swift
class func tree(toCollections tree: [AnyHashable : Any]!) -> OAFCollections!
Parameters
tree
tree node
Return Value
collections
-
Convert the JSON string to a collection
Declaration
Objective-C
+ (OAFCollection *)jsonToCollection:(NSString *)json;
Swift
class func json(toCollection json: String!) -> OAFCollection!
Parameters
json
JSON string
Return Value
collection
-
Convert the JSON tree to a collection
Declaration
Objective-C
+ (OAFCollection *)treeToCollection:(NSDictionary *)tree;
Swift
class func tree(toCollection tree: [AnyHashable : Any]!) -> OAFCollection!
Parameters
tree
tree node
Return Value
collection
-
Convert the JSON string to a feature collection
Declaration
Objective-C
+ (OAFFeatureCollection *)jsonToFeatureCollection:(NSString *)json;
Swift
class func json(toFeatureCollection json: String!) -> OAFFeatureCollection!
Parameters
json
JSON string
Return Value
feature collection
-
Convert the JSON tree to a feature collection
Declaration
Objective-C
+ (OAFFeatureCollection *)treeToFeatureCollection:(NSDictionary *)tree;
Swift
class func tree(toFeatureCollection tree: [AnyHashable : Any]!) -> OAFFeatureCollection!
Parameters
tree
tree node
Return Value
feature collection
-
Convert a simple geometry to a feature collection
Declaration
Objective-C
+ (OAFFeatureCollection *)simpleGeometryToFeatureCollection: (SFGeometry *)simpleGeometry;
Swift
class func simpleGeometry(toFeatureCollection simpleGeometry: SFGeometry!) -> OAFFeatureCollection!
Parameters
simpleGeometry
simple geometry
Return Value
feature collection
-
Convert simple geometries to a feature collection
Declaration
Objective-C
+ (OAFFeatureCollection *)simpleGeometriesToFeatureCollection: (NSArray<SFGeometry *> *)simpleGeometries;
Swift
class func simpleGeometries(toFeatureCollection simpleGeometries: [SFGeometry]!) -> OAFFeatureCollection!
Parameters
simpleGeometries
simple geometries
Return Value
feature collection
-
Convert the JSON string to a spatial
Declaration
Objective-C
+ (OAFSpatial *)jsonToSpatial:(NSString *)json;
Swift
class func json(toSpatial json: String!) -> OAFSpatial!
Parameters
json
JSON string
Return Value
spatial
-
Convert the JSON tree to a spatial
Declaration
Objective-C
+ (OAFSpatial *)treeToSpatial:(NSDictionary *)tree;
Swift
class func tree(toSpatial tree: [AnyHashable : Any]!) -> OAFSpatial!
Parameters
tree
tree node
Return Value
spatial
-
Convert the JSON string to a temporal
Declaration
Objective-C
+ (OAFTemporal *)jsonToTemporal:(NSString *)json;
Swift
class func json(toTemporal json: String!) -> OAFTemporal!
Parameters
json
JSON string
Return Value
temporal
-
Convert the JSON tree to a temporal
Declaration
Objective-C
+ (OAFTemporal *)treeToTemporal:(NSDictionary *)tree;
Swift
class func tree(toTemporal tree: [AnyHashable : Any]!) -> OAFTemporal!
Parameters
tree
tree node
Return Value
temporal
-
Convert the object to a JSON value
Declaration
Objective-C
+ (NSString *)objectToJSON:(OAFFeaturesObject *)object;
Swift
class func object(toJSON object: OAFFeaturesObject!) -> String!
Parameters
object
object
Return Value
string value
-
Convert the Features object to a mutable tree
Declaration
Objective-C
+ (NSMutableDictionary *)objectToMutableTree:(OAFFeaturesObject *)object;
Swift
class func object(toMutableTree object: OAFFeaturesObject!) -> NSMutableDictionary!
Parameters
object
Features object
Return Value
object map
-
Convert the Features object to a tree
Declaration
Objective-C
+ (NSDictionary *)objectToTree:(OAFFeaturesObject *)object;
Swift
class func object(toTree object: OAFFeaturesObject!) -> [AnyHashable : Any]!
Parameters
object
Features object
Return Value
object map