0

在带有 SpatiaLite 的 Django 开发服务器上,我正在尝试进行基本的地理查询:

Location.objects.filter(geom__within=loc.geom)

这会导致 aSegmentation error和服务器死亡。locLocation模型的一个实例:

from django.contrib.gis.db import models

class Location(models.Model):
    geom = models.GeometryField()

    objects = models.GeoManager()

你认为可能有什么问题?

4

0 回答 0