Tag Info

New answers tagged

0

As of version 1.8, GeoDjango does support raster data handled by GDAL. https://docs.djangoproject.com/en/1.8/ref/contrib/gis/gdal/


1

To explain what happened in the comments above: pnt__distance_lte according to the manual translates pnt__distance_lte=(pnt, 10) into ST_Distance(poly, pnt) <= 10 ST_Distance in postgis behaves differently for geography and geometry: For geometry type Returns the 2-dimensional cartesian minimum distance (based on spatial ref) between two ...


0

This might just be a problem of projections/units, it looks like the projection of mylocation.srid and object_location.srid might be WGS84 (the default projection in GeoDjango). If you want to have distance in meters without making another database lookup, you could transform your points with something like this: mylocation.transform(3857) ...



Top 50 recent answers are included