【发布时间】:2015-08-07 11:59:11
【问题描述】:
如果我有如下所示的 max-min lng 和 lat,我如何获取给定区域中的所有位置。
models.py
class Location(models.Model):
......
point = models.PointField(srid=4326, blank=True, null=True)
现在如何使用给定的 min_lat、max_lat 和 min_lng、max_lng 过滤所有位置
观看次数
Location.objects.filter(point__in=())
【问题讨论】:
-
我没有答案,但是搜索“信封”和/或“边界框”,您可能会看到一些技巧
-
@MikeT 你能看看我的trouble with GeoDjango吗?