Spatialite assert when using intersection filter

50 views
Skip to first unread message

Fabian Schindler

unread,
Dec 9, 2011, 5:46:24 AM12/9/11
to geodjango
Hey geodjango users and devs,

I'm running into the following assert within spatialite when using the
intersection filter:

python: geos_ts_c.cpp:2605: int
GEOSCoordSeq_setOrdinate_r(GEOSContextHandle_HS*,
geos::geom::CoordinateSequence*, unsigned int, unsigned int, double):
Assertion `0 != cs' failed.

The application terminates (no exception or the like). With other
backends (tested with PostGIS), there is no such error.

I'm using the filter like this:

qs = MyModel.objects.filter(
footprint__intersects=poly
)

My gdb stacktrace (I could not find any debug symbols for spatialite,
and was not able to build them on my own):

#0 0x00007ffff69efba5 in raise (sig=<value optimized out>) at ../
nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff69f36b0 in abort () at abort.c:92
#2 0x00007ffff69e8a71 in __assert_fail (assertion=0x7ffff4eeae00
"0 != cs", file=<value optimized out>, line=2605, function=
0x7ffff4eebce0 "int GEOSCoordSeq_setOrdinate_r(GEOSContextHandle_HS*,
geos::geom::CoordinateSequence*, unsigned int, unsigned int, double)")
at assert.c:81
#3 0x00007ffff4ee2cf2 in GEOSCoordSeq_setOrdinate_r () from /usr/
lib/libgeos_c.so.1
#4 0x00007ffff0a0f29c in gaiaToGeos () from /usr/lib/
libspatialite.so.2
#5 0x00007ffff0a14c8a in gaiaGeomCollIntersects () from /usr/lib/
libspatialite.so.2
#6 0x00007ffff0a14db3 in ?? () from /usr/lib/libspatialite.so.2
#7 0x00007ffff5de9fed in ?? () from /usr/lib/libsqlite3.so.0
#8 0x00007ffff5dd75b0 in sqlite3_step () from /usr/lib/
libsqlite3.so.0
#9 0x00007ffff601b17d in pysqlite_step () from /usr/lib/python2.6/
dist-packages/pysqlite2/_sqlite.so
#10 0x00007ffff6019145 in _pysqlite_query_execute () from /usr/lib/
python2.6/dist-packages/pysqlite2/_sqlite.so
... (only Python calls here)


Which is kinda strange, since I could not find a call to
`GEOSCoordSeq_setOrdinate_r` in the `gaiaToGeos` function.

Any help is appreciated :)

Thanks,
Fabian

P.S: my system:

Ubuntu 10.10
libspatialite2 2.4.0~rc4-3~maverick1
django 1.3.1

Reply all
Reply to author
Forward
0 new messages