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
projectionprojection
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
simplifyTolerancesimplify 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
geodesicMaxDistancegeodesic max distance
-
Transform a projection WKB point to WGS84
Declaration
Parameters
pointprojection point
Return Value
wgs84 point
-
Transform a WGS84 WKB point to the projection
Declaration
Parameters
pointwgs84 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
pointwkb 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
mapPointmap 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
mapPointmap point
hasZhaz z value
hasMhas 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
mapPointMK map point
hasZhaz z value
hasMhas 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
lineStringwkb 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
mapPolylinepolyline
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
mapPolylinepolyline
hasZhaz z value
hasMhas 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
mapPointsMK map points pointer
pointCountnumber 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
mapPointsMK map points pointer
pointCountnumber of points at pointer
hasZhaz z value
hasMhas 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
mapPointsmap 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
mapPointsmap points
hasZhaz z value
hasMhas 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
mapPointsmap 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
mapPointsmap points
hasZhaz z value
hasMhas 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
lineStringwkb line string
mapPointsMK map points pointer
pointCountnumber 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
lineStringwkb line string
mapPointsmap points
-
Convert WKB polygon to a MapKit polygon
Declaration
Objective-C
- (GPKGPolygon *)toMapPolygonWithPolygon:(SFPolygon *)polygon;Swift
func toMapPolygon(with polygon: SFPolygon!) -> GPKGPolygon!Parameters
polygonwkb 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
curvePolygonwkb 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
mapPolygonMK polygon
hasZhas z value
hasMhas 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
mapPointsMK map points pointer
pointCountnumber of points at pointer
holesMK 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
mapPointsMK map points pointer
pointCountnumber of points at pointer
holesMK polygon holes
hasZhas z value
hasMhas 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
mapPointsmap points
holesarray 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
mapPointsmap points
holesarray of hole map points arrays
hasZhas z value
hasMhas 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
lineStringline 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
multiPointwkb 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
mapMultiPointmulti 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
mapMultiPointmulti point
hasZhas z value
hasMhas 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
mapPointsmap 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
mapPointsmap points
hasZhas z value
hasMhas 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
multiLineStringwkb 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
mapPolylinespolylines
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
mapPolylinespolylines
hasZhas z value
hasMhas 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
mapPolylinesArraypolyline 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
mapPolylinesArraypolyline point arrays
hasZhas z value
hasMhas 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
mapPolylinesArraypolyline 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
mapPolylinesArraypolyline point arrays
hasZhas z value
hasMhas 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
multiPolylinemulti 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
multiPolylinemulti polyline
hasZhas z value
hasMhas 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
multiPolylinemulti 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
multiPolylinemulti polyline
hasZhas z value
hasMhas 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
multiPolygonwkb 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
mapPolygonspolygons
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
mapPolygonspolygons
hasZhas z value
hasMhas 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
polygonswkb 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
polygonswkb polygons
hasZhas z value
hasMhas 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
mapMultiPolygonmulti 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
mapMultiPolygonmulti polygon
hasZhas z value
hasMhas 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
compoundCurvewkb 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
mapPolylinespolylines
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
mapPolylinespolylines
hasZhas z value
hasMhas 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
polyhedralSurfacewkb 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
mapPolygonspolygons
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
mapPolygonspolygons
hasZhas z value
hasMhas 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
mapMultiPolygonmulti 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
mapMultiPolygonmulti polygon
hasZhas z value
hasMhas 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
geometrywkb 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
geometryCollectionwkb 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
geometrywkb geometry
mapViewmap 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
mapShapemap shape
mapViewmap 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
mapPointmap point
mapViewmap 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
mapPointmap point
mapViewmap view
pointOptionspoint 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
mkMapPointmk map point
mapViewmap view
pointOptionspoint 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
mapPolylinepolyline
mapViewmap 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
mapPolylgonpolygon
mapViewmap 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
mapMultiPointmulti point
mapViewmap 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
mapMultiPointmulti point
mapViewmap view
pointOptionspoint 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
mapMultiPolylinemulti polyline
mapViewmap 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
mapMultiPolygonmulti polygon
mapViewmap 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
geometryCollectionwkb geometry collection
mapViewmap 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
mapShapemap shape
mapViewmap view
pointOptionspoint options
polylinePointOptionspolyline point options
polygonPointOptionspolygon point options
polygonHolePointOptionspolygon hole point options
globalPolylineOptionsglobal polyline options
globalPolygonOptionsglobal 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
mapPointsmk map points
pointCountcount of map points
mapViewmap view
pointOptionspoint options
ignoreIdenticalEndsignore 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
mapPolylinepolyline
mapViewmap view
polylinePointOptionspolyline point options
globalPolylineOptionsglobal 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
mapPolygonpolygon
mapViewmap view
shapePointsshape points
polygonPointOptionspolygon point options
polygonHolePointOptionspolygon hole point options
globalPolygonOptionsglobal 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
mapMultiPolylinemulti polyline
mapViewmap view
shapePointsshape points
polylinePointOptionspolyline point options
globalPolylineOptionsglobal 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
mapMultiPolygonmulti polygon
mapViewmap view
shapePointsshape points
polygonPointOptionspolygon point options
polygonHolePointOptionspolygon hole point options
globalPolygonOptionsglobal 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
pointsmap 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
locationsCLLocation 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
mapShapemap 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
boundingBoxbounding 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
boundingBoxbounding 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
boundingBoxbounding 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
boundingBoxbounding box in WGS84
Return Value
bounding box in the feature projection
View on GitHub
GPKGMapShapeConverter Class Reference