How can I query all my data within a distance of 5 meters?
问题 I am using GeoDjango with PostGIS. Then I am into trouble on how to query my postgres db table to get all data within a distance of 5 meters. UPDATES1 I am using GeoDjango 1.2.7 I found something from this url https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoquerysets/#std:fieldlookup-distance_lte Zipcode.objects.filter( poly__distance_lte =( geom , D (* m *=5))) But don't know on how to prepare the parameter and variables. what is poly_distance_lte ? is a function? what is geom ? is