dartclub / turf_dart

A turf.js-like geospatial analysis library working with GeoJSON, written in pure Dart.
https://pub.dev/packages/turf
MIT License
67 stars 30 forks source link

Implement coordinate signing/normalization mechanism from #46 #102

Open lukas-h opened 2 years ago

lukas-h commented 2 years ago

As described in comment: https://github.com/dartclub/turf_dart/issues/46#issuecomment-1057465724

The decision was, to keep Position unsigned by default, but it can be converted to a signed coordinate easily!

The imagined behaviour with signed/unsigned is similar to DateTime, which can be local or UTC. The DateTime has conversion functions toLocal() and toUTC(), that return a new object. Internally it uses a boolean to save the state (local = true/false).


Tasks:

lukas-h commented 1 year ago

@armantorkzaban I will continue to work on this in the next days