geodjango

(M1 Mac) Geodjango GDAL: mach-o, but wrong architecture

(M1 Mac) Geodjango GDAL: mach-o, but wrong architecture Question: I am trying to get GeoDjango running on mac os and have hit a problem with GDAL. I have downloaded and installed GDAL without problem (Gdal Complete Binary) also installed from homebrew too. Unfortunately when i was installed gdal with homebrew django can’t find the gdal …

Total answers: 3

How efficient is it to order by distance in geodjango (entire table)

How efficient is it to order by distance in geodjango (entire table) Question: Assume that I have the following data model: Person(models.Model): id = models.BigAutoField(primary_key=True) name = models.CharField(max_length=50) location = models.PointField(srid=4326) Assume also that I have an app that queries a Django backend, the only function of the app is to return a list of …

Total answers: 1

Which Model Field to use in Django to store longitude and latitude values?

Which Model Field to use in Django to store longitude and latitude values? Question: I want to store my users location using longitude and latitude, at the moment this comes from Google Maps, but I will be using GeoDango and some point to work out distances between to points also. However, my first confusion is …

Total answers: 3

Django sort by distance

Django sort by distance Question: I have the following model: class Vacancy(models.Model): lat = models.FloatField(‘Latitude’, blank=True) lng = models.FloatField(‘Longitude’, blank=True) How should I make a query to sort by distance (distance is infinity)? Working on PosgreSQL, GeoDjango if it is required. Asked By: Rukomoynikov || Source Answers: Note: Please check cleder’s answer below which mentions …

Total answers: 8

GeoDjango GEOSException error

GeoDjango GEOSException error Question: Trying to install a GeoDjango on my machine. I’m really new to Python and being brought into a project that has been a very tricky install for the other team members. I installed Python 2.7 and GEOS using brew, and running PSQL 9.2.4 but keep getting this error when I try …

Total answers: 9