Is it possible to create a prepared geometry object using the Python SWIG geos.ogr module? It seems that Shapely and GeoDjango both have this functionality, but I can't see any mention of it in the standard Python module source or documentation. Unless I'm missing something, this seems somewhat of an oversight.

http://toblerity.github.io/shapely/manual.html#prepared-geometry-operations https://docs.djangoproject.com/en/dev/ref/contrib/gis/geos/#prepared-geometries

1 Answer 1


"There's currently no access to GEOS prepared geometries in OGR. They are just internally used by OGR since GDAL 1.10 to evaluate the layer spatial filter."


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.