Tagged Questions
1
vote
0answers
113 views
Get the distance between 2 WGS84 GEOSGeometries
I currently want to check if 2 given GEOSGeometry objects of type Point are within 100m of each other. (length flexible)
Looking at previous asked questions on this topic, most of the answers were ...
1
vote
2answers
286 views
GeoDjango Order by distance for Model that is linked to User who has a location on their user profile
I need to order my query model by distance, however the point field in question is not on the model class but on the user profile and the i am getting an error when attempting the following.
g = ...
2
votes
4answers
1k views
Geodjango- get the distance between 2 points
Sorry to be asking yet another geodjango newbie question.
What I want to do is quite simple, I have 2 locations defined by gps coords, lat / long like returned by google maps:
...
1
vote
1answer
706 views
Using a geodjango PointField with geography=True, my distance calculations are wrong
Here's my model:
class ExchangeArea(models.Model):
"""
An Exchange Service Area, calculated from a phone exchange and surrounding census tracts.
"""
coordinates = ...
2
votes
1answer
357 views
How do I query for all polygons within a distance from a point?
Call me stupid, but somehow I couldn't figure out how to do the following.
I've got a testing shapefile with 18 features, which I successfully imported into GeoDjango (1.3, running on Spatialite). As ...
5
votes
5answers
606 views
Getting a square mile bounding box anchored by coordinates?
Let's say I have a lat/lng coordinate pair. I want to determine the coordinates that would create a square mile box. The existing coordintae pair would be the top left of the box, and the coordinate ...