On Dec 9, 2007 12:50 PM, Richard Duivenvoorde <[EMAIL PROTECTED]> wrote: > Question: is there some possibility to do buffering of geometries (via > the python interface)? I found something like: QgsDlgPgBuffer. Is that > using postgis functionality? > There is also in qgsgeometry some links to a geos-thing. Could I use > that for using geos to buffer stuff? > Or can I use grass functionality for such things (via python interface)
Hi, AFAIK QgsDlgPgBuffer is a class from geoprocessing plugin which uses PostGIS. For a general solution you could use GEOS - since buffering is not currently supported by QGIS (but would be rather easy to add!). I think there are several possibilities: using GEOS SWIG bindings or using Shapely. I've heard that SWIG bindings are not maintained anymore and Shapely depends on PCL. There's also GeoDjango's ctypes interface for GOES - I'm not sure whether it's not the same interface as in shapely just without dependency on PCL. In fact probably easiest way (to avoid other 3rd party stuff) would be to add this small functionality directly to QGIS libs (one more function to QgsGeometry class) - patches are welcome :-) or if I will have some time I'll look into it. Martin _______________________________________________ Qgis-user mailing list [email protected] http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
