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
jsonJSON 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
treetree 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
jsonJSON 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
treetree 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
jsonJSON 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
treetree 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
simpleGeometrysimple 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
simpleGeometriessimple 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
jsonJSON 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
treetree 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
jsonJSON 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
treetree 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
objectobject
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
objectFeatures 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
objectFeatures object
Return Value
object map
View on GitHub
OAFFeaturesConverter Class Reference