What is GeospatialSwift?
GeospatialSwift is an interface to translate a GeoJson document / dictionary into a swift object which fully conforms to the more recent GeoJson specification - August 2016.
A GeoJsonObject can be transformed to a bounding box.
github "MonsantoCo/GeospatialSwift" ~> 1.0.0
.package(url: "[email protected]:MonsantoCo/GeospatialSwift.git", from: "1.0.0")
Geospatial
Geospatial.geoJson
Minimum distance to a given point (Optional error distance)
Contains a given point (Optional error distance)
Bounding box for any shape
GeoJson returned as a Dictionary
Coordinates array for the associated geometry
Line segments with midpoint and bearing functions
Point
MultiPoint
LineString
MultiLineString
Polygon
MultiPolygon
GeometryCollection
Feature
FeatureCollection
Geospatial.geohash
Geospatial.parse(wkt: String) -> GeoJsonObject
rm -rf *.xcodeproj || rm -rf .build || swift package resolve && swift package generate-xcodeproj && open *.xcodeproj
GeospatialSwift
, select the tab Signing & Capabilities
and check the box Automatically manage signing
Edit Scheme...
, select the Test
item on the left, select the tab Options
, and check the box Gather coverage for "all targets"
GeospatialSwiftTests
select the tab Build Phases
and add a Run Script Phase
with the body $PROJECT_DIR/Scripts/parrot.sh
and move the item to the top of the Buld Phases just below Dependencies
.GeospatialSwift
select the tab Build Phases
and add a Run Script Phase
with the body $PROJECT_DIR/Scripts/swiftlint.sh
.generate-xcodeproj
rm -rf *.xcodeproj || rm -rf .build || swift package resolve && swift package generate-xcodeproj && open *.xcodeproj
GeospatialSwift
, select the tab Signing & Capabilities
and check the box Automatically manage signing
Edit Scheme...
, select the Test
item on the left, select the tab Options
, and check the box Gather coverage for "all targets"
GeospatialSwiftTests
select the tab Build Phases
and add a Run Script Phase
with the body $PROJECT_DIR/Scripts/parrot.sh
and move the item to the top of the Buld Phases just below Dependencies
.GeospatialSwift
select the tab Build Phases
and add a Run Script Phase
with the body $PROJECT_DIR/Scripts/swiftlint.sh
.link |
Stars: 5 |
Last commit: 4 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics