MSFFeature
Objective-C
@interface MSFFeature : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFFeature : NSObject
A feature consisting of geometry and properties.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Constructs a Feature object from geometry and properties.
Declaration
Objective-C
- (id)initWithGeometry:(MSFGeometry *)geometry properties:(MSFVariant *)properties;Swift
init!(geometry: MSFGeometry!, properties: MSFVariant!)Parameters
geometryThe geometry of the feature.
propertiesThe properties of the feature.
-
Returns the geometry of the feature.
Return Value
The geometry of the feature.
-
Returns the properties of the feature.
Return Value
The properties of the feature.
-
Returns the feature’s geometry as a GeoJSON string, in its own coordinates.
Serialising a geometry otherwise means constructing a GeoJSONGeometryWriter in the binding, which every binding then does differently and, in a scripting one, slowly.
Declaration
Objective-C
- (NSString *)getGeometryGeoJSON;Swift
func getGeometryGeoJSON() -> String!Return Value
The geometry as GeoJSON, or an empty string when there is no geometry.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()