Skip to content

General Enhancements

Choose a tag to compare

@schlingding schlingding released this 30 Oct 21:21
8cc6c37
General enhancements (#2)

* Removed backward compatibility with Swift prior to 4.1.  Restructured for area and length to also exist on MultiPolygon and MultiLine. GeoJsonLineSegment typealias changed to GeodesicLineSegment struct representing the same data. Added hasHole to GeoJsonClosedGemoetry.

* Expose GeoJsonObjectType name and init.

* Expose new GeoJsonObject functionality.

* Attempt to fix Earth Radius issues by using latitude in calculations.

* Removing centroids from geometries which do not have them rather than trying to fit a centroid for them.

* Further simplification.

* Moved the points parameter to GeoJsonCoordinatesGeometry and removed GeoJsonMultiCoordinatesGeometry.

* Add GeoJsonSimpleGeometry for easy access to Point, LineString, and Polygon.

* Added a simple isSimpleGeometry boolean instead of the new GeoJsonSimpleGeometry protocol.

* Make BoundingBox public.

* Added inset to BoundingBox.

* Renames for bounding box adjustments.

* Better inset bounding box logic.

* Swift 4.2 fix

* Calculation updates

* More rework to adhere to a more simple protocol.

* Expose public methods.