0

On Django development server with SpatiaLite, I am trying to do a basic geographic query:

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

This causes a Segmentation error and the server dies. loc is an instance of the Location model:

from django.contrib.gis.db import models

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

    objects = models.GeoManager()

What do you think might be wrong?

onurmatik
  • 5,105
  • 7
  • 42
  • 67
  • Debugging through the lens of a web browser is a PITA. Try running this from a standalone script. If it still manifests, then you can run it under pdb (or debugger of choice) and dig a little more deeply. – Peter Rowell Oct 17 '12 at 20:19
  • Thanks. The stack trace does not tell much either. This may be an incompatibility with the installed libraries. I will check on other configurations and update the question. – onurmatik Oct 18 '12 at 08:19
  • it might be related to this: http://lists.osgeo.org/pipermail/geos-devel/2011-September/005419.html but still not resolved :( – onurmatik Oct 21 '12 at 20:57

0 Answers0