[gdal-dev] Creating prepared geometries from Python

Even Rouault even.rouault at mines-paris.org
Tue Apr 30 11:09:05 PDT 2013


Le mardi 30 avril 2013 17:53:04, Joshua Arnott a écrit :
> Dear list,
> 
> 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-geomet
> ries

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.

> 
> Regards,
> 
> Josh


More information about the gdal-dev mailing list