MSFGeometry
Objective-C
@interface MSFGeometry : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFGeometry : NSObject
A base class for all geometry types.
-
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.
-
Returns what kind of geometry this is.
Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a scripting binding - matching on the wrapper’s class name.
Return Value
The geometry type.
-
Returns the minimal bounds for the geometry.
Return Value
The bounds for the geometry.
-
Returns the geometry as a GeoJSON string, in its own coordinates.
Here rather than only on Feature because serialising a shape otherwise means constructing a GeoJSONGeometryWriter, which no string-based binding can do.
Declaration
Objective-C
- (NSString *)getGeoJSON;Swift
func getGeoJSON() -> String!Return Value
The geometry as GeoJSON.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()