However,
point_a.distance(point_b)
is returning me a float, and I don't know the scale, or how to convert
this into something I can use (ideally meters).
The srs.name is 'WGS 84'
I'm knew to both geodjango, and geospatial calculations in general.
Anyone know what I'm doing wrong?
Cheers
--
Tom Wardill
--
You received this message because you are subscribed to the Google Groups "geodjango" group.
To post to this group, send email to geod...@googlegroups.com.
To unsubscribe from this group, send email to geodjango+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/geodjango?hl=en.
"Note: PostGIS 1.5 introduced geography columns, which is limited on what geometry types distance queries are performed with. In other words, if you have geography=True in your geometry field definition you'll be allowed to peform arbitrary distance queries with your data in geodetic units of WGS84."
Here, http://www.movable-type.co.uk/scripts/latlong-vincenty.html, you
can find the mathematical and theoretical formulation of calculating
the distance in meters using WGS84. The whole process is iterative,
but not very complicated and gives good accuracy.
> > For more options, visit this group athttp://groups.google.com/group/geodjango?hl=en.
FWIW, geopy has an implementation of Vincenty in python:
http://code.google.com/p/geopy/wiki/GettingStarted#Calculating_distances