Hackerfleet / hfos-legacy

Hackerfleet Operating System
GNU Affero General Public License v3.0
29 stars 4 forks source link

Add distance measure #40

Closed ri0t closed 8 years ago

ri0t commented 9 years ago

Issue by ri0t Friday Oct 31, 2014 at 20:15 GMT _Originally opened as https://github.com/Hackerfleet/hfos_old/issues/40_


Needs a nice method to get the lengths of polygons.

ri0t commented 9 years ago

Comment by ij0n Thursday Dec 04, 2014 at 13:40 GMT


Als Orthodrome? Als Loxodrome? als einfache Länge einer Tangente im Dreieck? Spezifizier bitte mal

ri0t commented 9 years ago

Comment by ri0t Thursday Dec 04, 2014 at 15:34 GMT


Neither. This one: https://en.wikipedia.org/wiki/Vincenty%27s_formulae It is e.g. integrated here: https://pypi.python.org/pypi/geopy/0.98 (which brings other nice geoservices like geolocator api support, etc)

Interesting: Leaflet.Draw already pops up a hint telling how long the drawn path currently is.

ri0t commented 9 years ago

As per previous comment, i'm upping this to 1.1

ri0t commented 8 years ago

I think this is pretty well done via geojson & leaflet.draw. We should maybe make some accuracy tests to see if the values are converted correctly - i do assume so.