Releases: jillesvangurp/geogeometry
Releases · jillesvangurp/geogeometry
Improve geojson serialization & get rid of rounding errors
- Remove dependency on JsonEncoder and use Encoder instead.
- We were arbitrarily rounding a bit too aggressively in a few places.
Null altitudes instead of 0.0 meters
Minor bug fix to null out the geojson altitude instead of setting it to 0.0 meters.
Inverted x and y on rotation
- fixed a bug with calculating x & y offset in meter of rotated points where the x and y were inverted
Fix heading calculation
- fix
headingFromTwoPoints
to not return negative numbers and work modulo 360
Update dependencies, attempt to resolve js ir related issues
3.2.12 ktlint format
Fix for jitpack
3.2.9 don't publish to local dir
Rotate around a point, concave hull algorithm
- Add a function to rotate around a point. Works by calculating the relative position in meters to the anchor and then calculating the position on the circle. The point is then translated in meters to the correct place.
- Experimental algorithm for calculating concave hulls. It works but can generate weird self intersecting polygons, which is not ideal. More tweaking needed here.
Human readable coordinates
- adds a humanReadable() function to the
PointCoordinates
type alias forDoubleArray
that returns a nicely formatted string like22° 54' 38.31" S, 43° 13' 18.09" W
- adds a Degree type alias for Double and some extension properties to get the degrees, minutes, seconds, and compass direction used for the human readable string above
Improve cover with geohashes
- Fix #22 and allow partially overlapping hashes to be included (default false)
- Refactor some of the cover with geohashes function names to better reflect the underlying geometry (line, polygon, multipolygon)
- Fix json serialization issues with
FeatureCollection and
Feature`
Implement Right hand rule for polygons
- We ran into some polygons that broke the geojson right hand rule. This release adds functions to fix that on
PolygonCoordinates
andMultiPolygonCoordinates
- Improve toString on geojson classes to use the kotlinx serializer. This makes debugging less painful.