GPKGMapShapeConverter
Objective-C
@interface GPKGMapShapeConverter : NSObject
Swift
class GPKGMapShapeConverter : NSObject
Provides conversion methods between Well-Known Binary geometry objects and Map shapes. Includes adding shapes to map view functionality.
-
Geometry shape projection
Declaration
Objective-C
@property (nonatomic, strong) PROJProjection *projection;
Swift
var projection: PROJProjection! { get set }
-
Orientation types of polygon exterior and hole rings
Declaration
Objective-C
enum GPKGPolygonOrientation {}
-
Convert polygon exteriors to specified orientation
Declaration
Objective-C
@property (nonatomic) enum GPKGPolygonOrientation exteriorOrientation;
-
Convert polygon holes to specified orientation
Declaration
Objective-C
@property (nonatomic) enum GPKGPolygonOrientation holeOrientation;
-
When true, draw map points from lines and polygons using the closest longitude direction between points Default is true
Declaration
Objective-C
@property (nonatomic) BOOL drawShortestDirection;
Swift
var drawShortestDirection: Bool { get set }
-
Tolerance in meters for simplifying lines and polygons to a similar curve with fewer points Default is nil resulting in no simplification
Declaration
Objective-C
@property (nonatomic) NSDecimalNumber *simplifyTolerance;
Swift
var simplifyTolerance: NSDecimalNumber! { get set }
-
Max distance allowed between geodesic path points Default is nil resulting in no geodesic geometries
Declaration
Objective-C
@property (nonatomic) NSDecimalNumber *geodesicMaxDistance;
Swift
var geodesicMaxDistance: NSDecimalNumber! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new map shape converter
-
Initialize
Declaration
Objective-C
- (instancetype)initWithProjection:(PROJProjection *)projection;
Swift
init!(projection: PROJProjection!)
Parameters
projection
projection
Return Value
new map shape converter
-
Destroy the map shape converter memory
Declaration
Objective-C
- (void)close;
Swift
func close()
-
Destroy the map shape converter memory
Declaration
Objective-C
- (void)destroy;
Swift
func destroy()
-
Set the simplify tolerance in meters to simplify lines and polygons to similar curves with fewer points
Declaration
Objective-C
- (void)setSimplifyToleranceAsDouble:(double)simplifyTolerance;
Swift
func setSimplifyToleranceAs(_ simplifyTolerance: Double)
Parameters
simplifyTolerance
simplify tolerance in meters
-
Set the max distance allowed between geodesic path points
Declaration
Objective-C
- (void)setGeodesicMaxDistanceAsDouble:(double)geodesicMaxDistance;
Swift
func setGeodesicMaxDistanceAs(_ geodesicMaxDistance: Double)
Parameters
geodesicMaxDistance
geodesic max distance
-
Transform a projection WKB point to WGS84
Declaration
Parameters
point
projection point
Return Value
wgs84 point
-
Transform a WGS84 WKB point to the projection
Declaration
Parameters
point
wgs84 point
Return Value
projection point
-
Convert a WKB point to a map point
Declaration
Objective-C
- (GPKGMapPoint *)toMapPointWithPoint:(SFPoint *)point;
Swift
func toMapPoint(with point: SFPoint!) -> GPKGMapPoint!
Parameters
point
wkb point
Return Value
map point
-
Convert a map point to a WKB point
Declaration
Objective-C
- (SFPoint *)toPointWithMapPoint:(GPKGMapPoint *)mapPoint;
Swift
func toPoint(with mapPoint: GPKGMapPoint!) -> SFPoint!
Parameters
mapPoint
map point
Return Value
wkb point
-
Convert a map point to a WKB point
Declaration
Objective-C
- (SFPoint *)toPointWithMapPoint:(GPKGMapPoint *)mapPoint andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPoint(with mapPoint: GPKGMapPoint!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPoint!
Parameters
mapPoint
map point
hasZ
haz z value
hasM
has m value
Return Value
wkb point
-
Convert a MapKit map point to a WKB point
Declaration
Objective-C
- (SFPoint *)toPointWithMKMapPoint:(MKMapPoint)mapPoint andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPoint(with mapPoint: MKMapPoint, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPoint!
Parameters
mapPoint
MK map point
hasZ
haz z value
hasM
has m value
Return Value
wkb point
-
Convert a WKB line string to a polyline
Declaration
Objective-C
- (GPKGPolyline *)toMapPolylineWithLineString:(SFLineString *)lineString;
Swift
func toMapPolyline(with lineString: SFLineString!) -> GPKGPolyline!
Parameters
lineString
wkb line string
Return Value
polyline
-
Convert a MapKit polyline to a WKB line string
Declaration
Objective-C
- (SFLineString *)toLineStringWithMapPolyline:(MKPolyline *)mapPolyline;
Swift
func toLineString(withMapPolyline mapPolyline: MKPolyline!) -> SFLineString!
Parameters
mapPolyline
polyline
Return Value
wkb line string
-
Convert a MapKit polyline to a WKB line string
Declaration
Objective-C
- (SFLineString *)toLineStringWithMapPolyline:(MKPolyline *)mapPolyline andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toLineString(withMapPolyline mapPolyline: MKPolyline!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFLineString!
Parameters
mapPolyline
polyline
hasZ
haz z value
hasM
has m value
Return Value
wkb line string
-
Convert a pointer array of MapKit map points to a WKB line string
Declaration
Objective-C
- (SFLineString *)toLineStringWithMKMapPoints:(MKMapPoint *)mapPoints andPointCount:(NSUInteger)pointCount;
Swift
func toLineString(withMKMapPoints mapPoints: UnsafeMutablePointer<MKMapPoint>!, andPointCount pointCount: UInt) -> SFLineString!
Parameters
mapPoints
MK map points pointer
pointCount
number of points at pointer
Return Value
wkb line string
-
Convert a pointer array of MapKit map points to a WKB line string
Declaration
Objective-C
- (SFLineString *)toLineStringWithMKMapPoints:(MKMapPoint *)mapPoints andPointCount:(NSUInteger)pointCount andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toLineString(withMKMapPoints mapPoints: UnsafeMutablePointer<MKMapPoint>!, andPointCount pointCount: UInt, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFLineString!
Parameters
mapPoints
MK map points pointer
pointCount
number of points at pointer
hasZ
haz z value
hasM
has m value
Return Value
wkb line string
-
Convert an array of map points to a WKB line string
Declaration
Objective-C
- (SFLineString *)toLineStringWithMapPoints:(NSArray *)mapPoints;
Swift
func toLineString(withMapPoints mapPoints: [Any]!) -> SFLineString!
Parameters
mapPoints
map points
Return Value
wkb line string
-
Convert an array of map points to a WKB line string
Declaration
Objective-C
- (SFLineString *)toLineStringWithMapPoints:(NSArray *)mapPoints andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toLineString(withMapPoints mapPoints: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFLineString!
Parameters
mapPoints
map points
hasZ
haz z value
hasM
has m value
Return Value
wkb line string
-
Convert an array of map points to a WKB circular string
Declaration
Objective-C
- (SFCircularString *)toCircularStringWithMapPoints:(NSArray *)mapPoints;
Swift
func toCircularString(withMapPoints mapPoints: [Any]!) -> SFCircularString!
Parameters
mapPoints
map points
Return Value
wkb circular string
-
Convert an array of map points to a WKB circular string
Declaration
Objective-C
- (SFCircularString *)toCircularStringWithMapPoints:(NSArray *)mapPoints andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toCircularString(withMapPoints mapPoints: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCircularString!
Parameters
mapPoints
map points
hasZ
haz z value
hasM
has m value
Return Value
wkb circular string
-
Populate a WKB line string with MapKit map points from a pointer array
Declaration
Objective-C
- (void)populateLineString:(SFLineString *)lineString withMKMapPoints:(MKMapPoint *)mapPoints andPointCount:(NSUInteger)pointCount;
Swift
func populateLineString(_ lineString: SFLineString!, withMKMapPoints mapPoints: UnsafeMutablePointer<MKMapPoint>!, andPointCount pointCount: UInt)
Parameters
lineString
wkb line string
mapPoints
MK map points pointer
pointCount
number of points at pointer
-
Populate a WKB line string with an array of map points
Declaration
Objective-C
- (void)populateLineString:(SFLineString *)lineString withMapPoints:(NSArray *)mapPoints;
Swift
func populateLineString(_ lineString: SFLineString!, withMapPoints mapPoints: [Any]!)
Parameters
lineString
wkb line string
mapPoints
map points
-
Convert WKB polygon to a MapKit polygon
Declaration
Objective-C
- (GPKGPolygon *)toMapPolygonWithPolygon:(SFPolygon *)polygon;
Swift
func toMapPolygon(with polygon: SFPolygon!) -> GPKGPolygon!
Parameters
polygon
wkb polygon
Return Value
MK polygon
-
Convert WKB curve polygon to a MapKit polygon
Declaration
Objective-C
- (GPKGPolygon *)toMapCurvePolygonWithPolygon:(SFCurvePolygon *)curvePolygon;
Swift
func toMapCurvePolygon(with curvePolygon: SFCurvePolygon!) -> GPKGPolygon!
Parameters
curvePolygon
wkb curve polygon
Return Value
MK polygon
-
Convert a MapKit polygon to a WKB polygon
Declaration
Objective-C
- (SFPolygon *)toPolygonWithMapPolygon:(MKPolygon *)mapPolygon andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPolygon(withMapPolygon mapPolygon: MKPolygon!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolygon!
Parameters
mapPolygon
MK polygon
hasZ
has z value
hasM
has m value
Return Value
WKB polygon
-
Convert a pointer array of MapKit map points and MapKit polygon holes to a WKB polygon
Declaration
Objective-C
- (SFPolygon *)toPolygonWithMKMapPoints:(MKMapPoint *)mapPoints andPointCount:(NSUInteger)pointCount andHolePolygons:(NSArray *)holes;
Swift
func toPolygon(withMKMapPoints mapPoints: UnsafeMutablePointer<MKMapPoint>!, andPointCount pointCount: UInt, andHolePolygons holes: [Any]!) -> SFPolygon!
Parameters
mapPoints
MK map points pointer
pointCount
number of points at pointer
holes
MK polygon holes
Return Value
WKB polygon
-
Convert a pointer array of MapKit map points and MapKit polygon holes to a WKB polygon
Declaration
Objective-C
- (SFPolygon *)toPolygonWithMKMapPoints:(MKMapPoint *)mapPoints andPointCount:(NSUInteger)pointCount andHolePolygons:(NSArray *)holes andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPolygon(withMKMapPoints mapPoints: UnsafeMutablePointer<MKMapPoint>!, andPointCount pointCount: UInt, andHolePolygons holes: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolygon!
Parameters
mapPoints
MK map points pointer
pointCount
number of points at pointer
holes
MK polygon holes
hasZ
has z value
hasM
has m value
Return Value
WKB polygon
-
Convert an array of map points and array of hole map point arrays to a WKB polygon
Declaration
Objective-C
- (SFPolygon *)toPolygonWithMapPoints:(NSArray *)mapPoints andHolePoints:(NSArray *)holes;
Swift
func toPolygon(withMapPoints mapPoints: [Any]!, andHolePoints holes: [Any]!) -> SFPolygon!
Parameters
mapPoints
map points
holes
array of hole map points arrays
Return Value
WKB polygon
-
Convert an array of map points and array of hole map point arrays to a WKB polygon
Declaration
Objective-C
- (SFPolygon *)toPolygonWithMapPoints:(NSArray *)mapPoints andHolePoints:(NSArray *)holes andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPolygon(withMapPoints mapPoints: [Any]!, andHolePoints holes: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolygon!
Parameters
mapPoints
map points
holes
array of hole map points arrays
hasZ
has z value
hasM
has m value
Return Value
WKB polygon
-
When drawShortestDirection is enabled, create a new line string where each point is world wrapped to be drawn in the closest longitude direction from the previous point
Declaration
Objective-C
- (SFLineString *)shortestDirectionWithLineString:(SFLineString *)lineString;
Swift
func shortestDirection(with lineString: SFLineString!) -> SFLineString!
Parameters
lineString
line string
Return Value
line string with shortest longitude distance points
-
Convert WKB multi point to multi point
Declaration
Objective-C
- (GPKGMultiPoint *)toMapMultiPointWithMultiPoint:(SFMultiPoint *)multiPoint;
Swift
func toMapMultiPoint(with multiPoint: SFMultiPoint!) -> GPKGMultiPoint!
Parameters
multiPoint
wkb multi point
Return Value
multi point
-
Convert multi point to WKB multi point
Declaration
Objective-C
- (SFMultiPoint *)toMultiPointWithMapMultiPoint:(GPKGMultiPoint *)mapMultiPoint;
Swift
func toMultiPoint(withMapMultiPoint mapMultiPoint: GPKGMultiPoint!) -> SFMultiPoint!
Parameters
mapMultiPoint
multi point
Return Value
wkb multi point
-
Convert multi point to WKB multi point
Declaration
Objective-C
- (SFMultiPoint *)toMultiPointWithMapMultiPoint:(GPKGMultiPoint *)mapMultiPoint andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiPoint(withMapMultiPoint mapMultiPoint: GPKGMultiPoint!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPoint!
Parameters
mapMultiPoint
multi point
hasZ
has z value
hasM
has m value
Return Value
wkb multi point
-
Convert map points to WKB multi point
Declaration
Objective-C
- (SFMultiPoint *)toMultiPointWithMapPoints:(NSArray *)mapPoints;
Swift
func toMultiPoint(withMapPoints mapPoints: [Any]!) -> SFMultiPoint!
Parameters
mapPoints
map points
Return Value
wkb multi point
-
Convert map points to WKB multi point
Declaration
Objective-C
- (SFMultiPoint *)toMultiPointWithMapPoints:(NSArray *)mapPoints andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiPoint(withMapPoints mapPoints: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPoint!
Parameters
mapPoints
map points
hasZ
has z value
hasM
has m value
Return Value
wkb multi point
-
Convert WKB multi line string to multi polyline
Declaration
Objective-C
- (GPKGMultiPolyline *)toMapMultiPolylineWithMultiLineString: (SFMultiLineString *)multiLineString;
Swift
func toMapMultiPolyline(with multiLineString: SFMultiLineString!) -> GPKGMultiPolyline!
Parameters
multiLineString
wkb multi line string
Return Value
multi polyline
-
Convert polylines to WKB multi line string
Declaration
Objective-C
- (SFMultiLineString *)toMultiLineStringWithMapPolylines: (NSArray *)mapPolylines;
Swift
func toMultiLineString(withMapPolylines mapPolylines: [Any]!) -> SFMultiLineString!
Parameters
mapPolylines
polylines
Return Value
wkb multi line string
-
Convert polylines to WKB multi line string
Declaration
Objective-C
- (SFMultiLineString *)toMultiLineStringWithMapPolylines:(NSArray *)mapPolylines andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiLineString(withMapPolylines mapPolylines: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiLineString!
Parameters
mapPolylines
polylines
hasZ
has z value
hasM
has m value
Return Value
wkb multi line string
-
Convert polyline point arrays to WKB multi line string
Declaration
Objective-C
- (SFMultiLineString *)toMultiLineStringWithMapPolylinesArray: (NSArray *)mapPolylinesArray;
Swift
func toMultiLineString(withMapPolylinesArray mapPolylinesArray: [Any]!) -> SFMultiLineString!
Parameters
mapPolylinesArray
polyline point arrays
Return Value
wkb multi line string
-
Convert polyline point arrays to WKB multi line string
Declaration
Objective-C
- (SFMultiLineString *)toMultiLineStringWithMapPolylinesArray: (NSArray *)mapPolylinesArray andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiLineString(withMapPolylinesArray mapPolylinesArray: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiLineString!
Parameters
mapPolylinesArray
polyline point arrays
hasZ
has z value
hasM
has m value
Return Value
wkb multi line string
-
Convert polyline point arrays to WKB compound curve
Declaration
Objective-C
- (SFCompoundCurve *)toCompoundCurveWithMapPolylinesArray: (NSArray *)mapPolylinesArray;
Swift
func toCompoundCurve(withMapPolylinesArray mapPolylinesArray: [Any]!) -> SFCompoundCurve!
Parameters
mapPolylinesArray
polyline point arrays
Return Value
wkb compound curve
-
Convert polyline point arrays to WKB compound curve
Declaration
Objective-C
- (SFCompoundCurve *)toCompoundCurveWithMapPolylinesArray: (NSArray *)mapPolylinesArray andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toCompoundCurve(withMapPolylinesArray mapPolylinesArray: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCompoundCurve!
Parameters
mapPolylinesArray
polyline point arrays
hasZ
has z value
hasM
has m value
Return Value
wkb compound curve
-
Convert multi polyline to WKB multi line string
Declaration
Objective-C
- (SFMultiLineString *)toMultiLineStringWithMapMultiPolyline: (GPKGMultiPolyline *)multiPolyline;
Swift
func toMultiLineString(withMapMultiPolyline multiPolyline: GPKGMultiPolyline!) -> SFMultiLineString!
Parameters
multiPolyline
multi polyline
Return Value
wkb multi line string
-
Convert multi polyline to WKB multi line string
Declaration
Objective-C
- (SFMultiLineString *)toMultiLineStringWithMapMultiPolyline: (GPKGMultiPolyline *)multiPolyline andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiLineString(withMapMultiPolyline multiPolyline: GPKGMultiPolyline!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiLineString!
Parameters
multiPolyline
multi polyline
hasZ
has z value
hasM
has m value
Return Value
wkb multi line string
-
Convert multi polyline to WKB compound curve
Declaration
Objective-C
- (SFCompoundCurve *)toCompoundCurveWithMapMultiPolyline: (GPKGMultiPolyline *)multiPolyline;
Swift
func toCompoundCurve(withMapMultiPolyline multiPolyline: GPKGMultiPolyline!) -> SFCompoundCurve!
Parameters
multiPolyline
multi polyline
Return Value
wkb compound curve
-
Convert multi polyline to WKB compound curve
Declaration
Objective-C
- (SFCompoundCurve *)toCompoundCurveWithMapMultiPolyline: (GPKGMultiPolyline *)multiPolyline andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toCompoundCurve(withMapMultiPolyline multiPolyline: GPKGMultiPolyline!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCompoundCurve!
Parameters
multiPolyline
multi polyline
hasZ
has z value
hasM
has m value
Return Value
wkb compound curve
-
Convert WKB multi polygon to multi polygon
Declaration
Objective-C
- (GPKGMultiPolygon *)toMapMultiPolygonWithMultiPolygon: (SFMultiPolygon *)multiPolygon;
Swift
func toMapMultiPolygon(with multiPolygon: SFMultiPolygon!) -> GPKGMultiPolygon!
Parameters
multiPolygon
wkb multi polygon
Return Value
multi polygon
-
Convert polygons to WKB multi polygon
Declaration
Objective-C
- (SFMultiPolygon *)toMultiPolygonWithMapPolygons:(NSArray *)mapPolygons;
Swift
func toMultiPolygon(withMapPolygons mapPolygons: [Any]!) -> SFMultiPolygon!
Parameters
mapPolygons
polygons
Return Value
wkb multi polygon
-
Convert polygons to WKB multi polygon
Declaration
Objective-C
- (SFMultiPolygon *)toMultiPolygonWithMapPolygons:(NSArray *)mapPolygons andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiPolygon(withMapPolygons mapPolygons: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPolygon!
Parameters
mapPolygons
polygons
hasZ
has z value
hasM
has m value
Return Value
wkb multi polygon
-
Create WKB multi polygon with WKB polygons
Declaration
Objective-C
- (SFMultiPolygon *)createMultiPolygonWithPolygons:(NSArray *)polygons;
Swift
func createMultiPolygon(withPolygons polygons: [Any]!) -> SFMultiPolygon!
Parameters
polygons
wkb polygons
Return Value
wkb multi polygon
-
Create WKB multi polygon with WKB polygons
Declaration
Objective-C
- (SFMultiPolygon *)createMultiPolygonWithPolygons:(NSArray *)polygons andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func createMultiPolygon(withPolygons polygons: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPolygon!
Parameters
polygons
wkb polygons
hasZ
has z value
hasM
has m value
Return Value
wkb multi polygon
-
Convert multi polygon to WKB multi polygon
Declaration
Objective-C
- (SFMultiPolygon *)toMultiPolygonWithMapMultiPolygon: (GPKGMultiPolygon *)mapMultiPolygon;
Swift
func toMultiPolygon(withMapMultiPolygon mapMultiPolygon: GPKGMultiPolygon!) -> SFMultiPolygon!
Parameters
mapMultiPolygon
multi polygon
Return Value
wkb multi polygon
-
Convert multi polygon to WKB multi polygon
Declaration
Objective-C
- (SFMultiPolygon *)toMultiPolygonWithMapMultiPolygon: (GPKGMultiPolygon *)mapMultiPolygon andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toMultiPolygon(withMapMultiPolygon mapMultiPolygon: GPKGMultiPolygon!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFMultiPolygon!
Parameters
mapMultiPolygon
multi polygon
hasZ
has z value
hasM
has m value
Return Value
wkb multi polygon
-
Convert WKB compound curve to multi polyline
Declaration
Objective-C
- (GPKGMultiPolyline *)toMapMultiPolylineWithCompoundCurve: (SFCompoundCurve *)compoundCurve;
Swift
func toMapMultiPolyline(with compoundCurve: SFCompoundCurve!) -> GPKGMultiPolyline!
Parameters
compoundCurve
wkb compound curve
Return Value
multi polyline
-
Convert polylines to WKB compound curve
Declaration
Objective-C
- (SFCompoundCurve *)toCompoundCurveWithMapPolylines:(NSArray *)mapPolylines;
Swift
func toCompoundCurve(withMapPolylines mapPolylines: [Any]!) -> SFCompoundCurve!
Parameters
mapPolylines
polylines
Return Value
wkb compound curve
-
Convert polylines to WKB compound curve
Declaration
Objective-C
- (SFCompoundCurve *)toCompoundCurveWithMapPolylines:(NSArray *)mapPolylines andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toCompoundCurve(withMapPolylines mapPolylines: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFCompoundCurve!
Parameters
mapPolylines
polylines
hasZ
has z value
hasM
has m value
Return Value
wkb compound curve
-
Convert WKB polyhedral surface to multi polygon
Declaration
Objective-C
- (GPKGMultiPolygon *)toMapMultiPolygonWithPolyhedralSurface: (SFPolyhedralSurface *)polyhedralSurface;
Swift
func toMapMultiPolygon(with polyhedralSurface: SFPolyhedralSurface!) -> GPKGMultiPolygon!
Parameters
polyhedralSurface
wkb polyhedral surface
Return Value
multi polygon
-
Convert polygons to WKB polyhedral surface
Declaration
Objective-C
- (SFPolyhedralSurface *)toPolyhedralSurfaceWithMapPolygons: (NSArray *)mapPolygons;
Swift
func toPolyhedralSurface(withMapPolygons mapPolygons: [Any]!) -> SFPolyhedralSurface!
Parameters
mapPolygons
polygons
Return Value
wkb polyhedral surface
-
Convert polygons to WKB polyhedral surface
Declaration
Objective-C
- (SFPolyhedralSurface *)toPolyhedralSurfaceWithMapPolygons: (NSArray *)mapPolygons andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPolyhedralSurface(withMapPolygons mapPolygons: [Any]!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolyhedralSurface!
Parameters
mapPolygons
polygons
hasZ
has z value
hasM
has m value
Return Value
wkb polyhedral surface
-
Convert multi polygon to WKB polyhedral surface
Declaration
Objective-C
- (SFPolyhedralSurface *)toPolyhedralSurfaceWithMapMultiPolygon: (GPKGMultiPolygon *)mapMultiPolygon;
Swift
func toPolyhedralSurface(withMapMultiPolygon mapMultiPolygon: GPKGMultiPolygon!) -> SFPolyhedralSurface!
Parameters
mapMultiPolygon
multi polygon
Return Value
wkb polyhedral surface
-
Convert multi polygon to WKB polyhedral surface
Declaration
Objective-C
- (SFPolyhedralSurface *)toPolyhedralSurfaceWithMapMultiPolygon: (GPKGMultiPolygon *)mapMultiPolygon andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
func toPolyhedralSurface(withMapMultiPolygon mapMultiPolygon: GPKGMultiPolygon!, andHasZ hasZ: Bool, andHasM hasM: Bool) -> SFPolyhedralSurface!
Parameters
mapMultiPolygon
multi polygon
hasZ
has z value
hasM
has m value
Return Value
wkb polyhedral surface
-
Convert a WKB Geometry to a Map shape
Declaration
Objective-C
- (GPKGMapShape *)toShapeWithGeometry:(SFGeometry *)geometry;
Swift
func toShape(with geometry: SFGeometry!) -> GPKGMapShape!
Parameters
geometry
wkb geometry
Return Value
map shape
-
Convert a WKB Geometry Collection to an array of Map shapes
Declaration
Objective-C
- (NSArray *)toShapesWithGeometryCollection: (SFGeometryCollection *)geometryCollection;
Swift
func toShapes(with geometryCollection: SFGeometryCollection!) -> [Any]!
Parameters
geometryCollection
wkb geometry collection
Return Value
array of Map shapes
-
Convert a WKB Geometry to a Map shape and add it to the map view
Declaration
Objective-C
- (GPKGMapShape *)addGeometry:(SFGeometry *)geometry toMapView:(MKMapView *)mapView;
Swift
func add(_ geometry: SFGeometry!, to mapView: MKMapView!) -> GPKGMapShape!
Parameters
geometry
wkb geometry
mapView
map view
Return Value
map shape
-
Add a shape to the map view
Declaration
Objective-C
+ (GPKGMapShape *)addMapShape:(GPKGMapShape *)mapShape toMapView:(MKMapView *)mapView;
Swift
class func add(_ mapShape: GPKGMapShape!, to mapView: MKMapView!) -> GPKGMapShape!
Parameters
mapShape
map shape
mapView
map view
Return Value
map shape
-
Add a map point to the map view
Declaration
Objective-C
+ (GPKGMapPoint *)addMapPoint:(GPKGMapPoint *)mapPoint toMapView:(MKMapView *)mapView;
Swift
class func add(_ mapPoint: GPKGMapPoint!, to mapView: MKMapView!) -> GPKGMapPoint!
Parameters
mapPoint
map point
mapView
map view
Return Value
map point
-
Add a map point to the map view with point options
Declaration
Objective-C
+ (GPKGMapPoint *)addMapPoint:(GPKGMapPoint *)mapPoint toMapView:(MKMapView *)mapView withPointOptions:(GPKGMapPointOptions *)pointOptions;
Swift
class func add(_ mapPoint: GPKGMapPoint!, to mapView: MKMapView!, with pointOptions: GPKGMapPointOptions!) -> GPKGMapPoint!
Parameters
mapPoint
map point
mapView
map view
pointOptions
point options
Return Value
map point
-
Add a MapKit map point to the map view with point options
Declaration
Objective-C
+ (GPKGMapPoint *)addMKMapPoint:(MKMapPoint)mkMapPoint toMapView:(MKMapView *)mapView withPointOptions:(GPKGMapPointOptions *)pointOptions;
Swift
class func add(_ mkMapPoint: MKMapPoint, to mapView: MKMapView!, with pointOptions: GPKGMapPointOptions!) -> GPKGMapPoint!
Parameters
mkMapPoint
mk map point
mapView
map view
pointOptions
point options
Return Value
map point
-
Add polyline to the map view
Declaration
Objective-C
+ (GPKGPolyline *)addMapPolyline:(GPKGPolyline *)mapPolyline toMapView:(MKMapView *)mapView;
Swift
class func addMapPolyline(_ mapPolyline: GPKGPolyline!, to mapView: MKMapView!) -> GPKGPolyline!
Parameters
mapPolyline
polyline
mapView
map view
Return Value
polyline
-
Add polygon to the map view
Declaration
Objective-C
+ (GPKGPolygon *)addMapPolygon:(GPKGPolygon *)mapPolylgon toMapView:(MKMapView *)mapView;
Swift
class func addMapPolygon(_ mapPolylgon: GPKGPolygon!, to mapView: MKMapView!) -> GPKGPolygon!
Parameters
mapPolylgon
polygon
mapView
map view
Return Value
polygon
-
Add multi point to the map view
Declaration
Objective-C
+ (GPKGMultiPoint *)addMapMultiPoint:(GPKGMultiPoint *)mapMultiPoint toMapView:(MKMapView *)mapView;
Swift
class func addMapMultiPoint(_ mapMultiPoint: GPKGMultiPoint!, to mapView: MKMapView!) -> GPKGMultiPoint!
Parameters
mapMultiPoint
multi point
mapView
map view
Return Value
multi point
-
Add multi point to the map view with point options
Declaration
Objective-C
+ (GPKGMultiPoint *)addMapMultiPoint:(GPKGMultiPoint *)mapMultiPoint toMapView:(MKMapView *)mapView withPointOptions:(GPKGMapPointOptions *)pointOptions;
Swift
class func addMapMultiPoint(_ mapMultiPoint: GPKGMultiPoint!, to mapView: MKMapView!, with pointOptions: GPKGMapPointOptions!) -> GPKGMultiPoint!
Parameters
mapMultiPoint
multi point
mapView
map view
pointOptions
point options
Return Value
multi point
-
Add multi polyline to the map view
Declaration
Objective-C
+ (GPKGMultiPolyline *)addMapMultiPolyline:(GPKGMultiPolyline *)mapMultiPolyline toMapView:(MKMapView *)mapView;
Swift
class func addMapMultiPolyline(_ mapMultiPolyline: GPKGMultiPolyline!, to mapView: MKMapView!) -> GPKGMultiPolyline!
Parameters
mapMultiPolyline
multi polyline
mapView
map view
Return Value
multi polyline
-
Add multi polygon to the map view
Declaration
Objective-C
+ (GPKGMultiPolygon *)addMapMultiPolygon:(GPKGMultiPolygon *)mapMultiPolygon toMapView:(MKMapView *)mapView;
Swift
class func addMapMultiPolygon(_ mapMultiPolygon: GPKGMultiPolygon!, to mapView: MKMapView!) -> GPKGMultiPolygon!
Parameters
mapMultiPolygon
multi polygon
mapView
map view
Return Value
multi polygon
-
Convert a WKB geometry collection to a list of Map shapes and add it to the map view
Declaration
Objective-C
- (NSArray *)addGeometryCollection:(SFGeometryCollection *)geometryCollection toMapView:(MKMapView *)mapView;
Swift
func add(_ geometryCollection: SFGeometryCollection!, to mapView: MKMapView!) -> [Any]!
Parameters
geometryCollection
wkb geometry collection
mapView
map view
Return Value
map shapes
-
-addMapShape:
asPointsToMapView: withPointOptions: andPolylinePointOptions: andPolygonPointOptions: andPolygonPointHoleOptions: andPolylineOptions: andPolygonOptions: Add a shape to the map view as points
Declaration
Objective-C
- (GPKGMapShapePoints *)addMapShape:(GPKGMapShape *)mapShape asPointsToMapView:(MKMapView *)mapView withPointOptions:(GPKGMapPointOptions *)pointOptions andPolylinePointOptions:(GPKGMapPointOptions *)polylinePointOptions andPolygonPointOptions:(GPKGMapPointOptions *)polygonPointOptions andPolygonPointHoleOptions: (GPKGMapPointOptions *)polygonHolePointOptions andPolylineOptions:(GPKGPolylineOptions *)globalPolylineOptions andPolygonOptions:(GPKGPolygonOptions *)globalPolygonOptions;
Swift
func add(_ mapShape: GPKGMapShape!, asPointsTo mapView: MKMapView!, with pointOptions: GPKGMapPointOptions!, andPolylinePointOptions polylinePointOptions: GPKGMapPointOptions!, andPolygonPointOptions polygonPointOptions: GPKGMapPointOptions!, andPolygonPointHoleOptions polygonHolePointOptions: GPKGMapPointOptions!, andPolylineOptions globalPolylineOptions: GPKGPolylineOptions!, andPolygonOptions globalPolygonOptions: GPKGPolygonOptions!) -> GPKGMapShapePoints!
Parameters
mapShape
map shape
mapView
map view
pointOptions
point options
polylinePointOptions
polyline point options
polygonPointOptions
polygon point options
polygonHolePointOptions
polygon hole point options
globalPolylineOptions
global polyline options
globalPolygonOptions
global polygon options
Return Value
map shape points
-
Add the MapKit map points to the map view as map points
Declaration
Objective-C
- (NSMutableArray *)addMKMapPoints:(MKMapPoint *)mapPoints withPointCount:(NSUInteger)pointCount asPointsToMapView:(MKMapView *)mapView withPointOptions:(GPKGMapPointOptions *)pointOptions andIgnoreIdenticalEnds:(BOOL)ignoreIdenticalEnds;
Swift
func addMKMapPoints(_ mapPoints: UnsafeMutablePointer<MKMapPoint>!, withPointCount pointCount: UInt, asPointsTo mapView: MKMapView!, with pointOptions: GPKGMapPointOptions!, andIgnoreIdenticalEnds ignoreIdenticalEnds: Bool) -> NSMutableArray!
Parameters
mapPoints
mk map points
pointCount
count of map points
mapView
map view
pointOptions
point options
ignoreIdenticalEnds
ignore starting and ending points that are identical, such as in polygons and polygon holes
Return Value
map points
-
Add polyline to the map view as points
Declaration
Objective-C
- (GPKGPolylinePoints *) addMapPolyline:(GPKGPolyline *)mapPolyline asPointsToMapView:(MKMapView *)mapView withPolylinePointOptions:(GPKGMapPointOptions *)polylinePointOptions andPolylineOptions:(GPKGPolylineOptions *)globalPolylineOptions;
Swift
func addMapPolyline(_ mapPolyline: GPKGPolyline!, asPointsTo mapView: MKMapView!, withPolylinePointOptions polylinePointOptions: GPKGMapPointOptions!, andPolylineOptions globalPolylineOptions: GPKGPolylineOptions!) -> GPKGPolylinePoints!
Parameters
mapPolyline
polyline
mapView
map view
polylinePointOptions
polyline point options
globalPolylineOptions
global polyline options
Return Value
polyline points
-
-addMapPolygon:
asPointsToMapView: withShapePoints: withPolygonPointOptions: andPolygonPointHoleOptions: andPolygonOptions: Add polygon to the map view as points
Declaration
Objective-C
- (GPKGPolygonPoints *)addMapPolygon:(GPKGPolygon *)mapPolygon asPointsToMapView:(MKMapView *)mapView withShapePoints:(GPKGMapShapePoints *)shapePoints withPolygonPointOptions:(GPKGMapPointOptions *)polygonPointOptions andPolygonPointHoleOptions: (GPKGMapPointOptions *)polygonHolePointOptions andPolygonOptions:(GPKGPolygonOptions *)globalPolygonOptions;
Swift
func addMapPolygon(_ mapPolygon: GPKGPolygon!, asPointsTo mapView: MKMapView!, with shapePoints: GPKGMapShapePoints!, withPolygonPointOptions polygonPointOptions: GPKGMapPointOptions!, andPolygonPointHoleOptions polygonHolePointOptions: GPKGMapPointOptions!, andPolygonOptions globalPolygonOptions: GPKGPolygonOptions!) -> GPKGPolygonPoints!
Parameters
mapPolygon
polygon
mapView
map view
shapePoints
shape points
polygonPointOptions
polygon point options
polygonHolePointOptions
polygon hole point options
globalPolygonOptions
global polygon options
Return Value
polygon points
-
Add multi polyline to the map view as points
Declaration
Objective-C
- (GPKGMultiPolylinePoints *) addMapMultiPolyline:(GPKGMultiPolyline *)mapMultiPolyline asPointsToMapView:(MKMapView *)mapView withShapePoints:(GPKGMapShapePoints *)shapePoints withPolylinePointOptions:(GPKGMapPointOptions *)polylinePointOptions andPolylineOptions:(GPKGPolylineOptions *)globalPolylineOptions;
Swift
func addMapMultiPolyline(_ mapMultiPolyline: GPKGMultiPolyline!, asPointsTo mapView: MKMapView!, with shapePoints: GPKGMapShapePoints!, withPolylinePointOptions polylinePointOptions: GPKGMapPointOptions!, andPolylineOptions globalPolylineOptions: GPKGPolylineOptions!) -> GPKGMultiPolylinePoints!
Parameters
mapMultiPolyline
multi polyline
mapView
map view
shapePoints
shape points
polylinePointOptions
polyline point options
globalPolylineOptions
global polyline options
Return Value
multi polyline points
-
-addMapMultiPolygon:
asPointsToMapView: withShapePoints: withPolygonPointOptions: andPolygonPointHoleOptions: andPolygonOptions: Add multi polygon to the map view as points
Declaration
Objective-C
- (GPKGMultiPolygonPoints *) addMapMultiPolygon:(GPKGMultiPolygon *)mapMultiPolygon asPointsToMapView:(MKMapView *)mapView withShapePoints:(GPKGMapShapePoints *)shapePoints withPolygonPointOptions:(GPKGMapPointOptions *)polygonPointOptions andPolygonPointHoleOptions:(GPKGMapPointOptions *)polygonHolePointOptions andPolygonOptions:(GPKGPolygonOptions *)globalPolygonOptions;
Swift
func addMapMultiPolygon(_ mapMultiPolygon: GPKGMultiPolygon!, asPointsTo mapView: MKMapView!, with shapePoints: GPKGMapShapePoints!, withPolygonPointOptions polygonPointOptions: GPKGMapPointOptions!, andPolygonPointHoleOptions polygonHolePointOptions: GPKGMapPointOptions!, andPolygonOptions globalPolygonOptions: GPKGPolygonOptions!) -> GPKGMultiPolygonPoints!
Parameters
mapMultiPolygon
multi polygon
mapView
map view
shapePoints
shape points
polygonPointOptions
polygon point options
polygonHolePointOptions
polygon hole point options
globalPolygonOptions
global polygon options
Return Value
multi polygon points
-
Get the location coordinates from the map points
Declaration
Objective-C
+ (CLLocationCoordinate2D *)locationCoordinatesFromPoints:(NSArray *)points;
Swift
class func locationCoordinates(fromPoints points: [Any]!) -> UnsafeMutablePointer<CLLocationCoordinate2D>!
Parameters
points
map points
Return Value
location coordinates
-
Get the location coordinates from the locations
Declaration
Objective-C
+ (CLLocationCoordinate2D *)locationCoordinatesFromLocations: (NSArray *)locations;
Swift
class func locationCoordinates(fromLocations locations: [Any]!) -> UnsafeMutablePointer<CLLocationCoordinate2D>!
Parameters
locations
CLLocation array
Return Value
location coordinates
-
Convert a Map Shape to a WKB Geometry
Declaration
Objective-C
- (SFGeometry *)toGeometryFromMapShape:(GPKGMapShape *)mapShape;
Swift
func toGeometry(from mapShape: GPKGMapShape!) -> SFGeometry!
Parameters
mapShape
map shape
Return Value
wkb geometry
-
Transform the bounding box in the feature projection to web mercator
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxToWebMercator:(GPKGBoundingBox *)boundingBox;
Swift
func boundingBox(toWebMercator boundingBox: GPKGBoundingBox!) -> GPKGBoundingBox!
Parameters
boundingBox
bounding box in feature projection
Return Value
bounding box in web mercator
-
Transform the bounding box in the feature projection to WGS84
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxToWgs84:(GPKGBoundingBox *)boundingBox;
Swift
func boundingBox(toWgs84 boundingBox: GPKGBoundingBox!) -> GPKGBoundingBox!
Parameters
boundingBox
bounding box in feature projection
Return Value
bounding box in WGS84
-
Transform the bounding box in web mercator to the feature projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxFromWebMercator:(GPKGBoundingBox *)boundingBox;
Swift
func boundingBox(fromWebMercator boundingBox: GPKGBoundingBox!) -> GPKGBoundingBox!
Parameters
boundingBox
bounding box in web mercator
Return Value
bounding box in the feature projection
-
Transform the bounding box in WGS84 to the feature projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxFromWgs84:(GPKGBoundingBox *)boundingBox;
Swift
func boundingBox(fromWgs84 boundingBox: GPKGBoundingBox!) -> GPKGBoundingBox!
Parameters
boundingBox
bounding box in WGS84
Return Value
bounding box in the feature projection