Re: [Qgis-developer] GEOS geometry from QgsGeometry with the Python API?

2012-04-18 Thread Sandro Santilli
On Wed, Apr 18, 2012 at 12:06:31AM +0200, G. Allegri wrote: Right, it would need some kung-fu across QGIS-GEOS python bindings. It was never really a top priority for me since QgsGeometry exposes the most important GEOS geometry algorithms. I would like to extend it, to include the

Re: [Qgis-developer] GEOS geometry from QgsGeometry with the Python API?

2012-04-18 Thread G. Allegri
Why don't you extent QgsGeometry API ? Because I'm not so much experienced with C++, and I'm scared :D But this could be a good occasion to get back to it ;) I will extend it on my github fork and send a push request as soon as I have it. giovanni --strk; ,--o-. | __/ |

Re: [Qgis-developer] GEOS geometry from QgsGeometry with the Python API?

2012-04-17 Thread Martin Dobias
On Mon, Apr 16, 2012 at 11:00 AM, G. Allegri gioha...@gmail.com wrote: Hi, I've just realized that the python api does't support the QgsGeometry.asGeos() method. I understand that it would require SIP to manage the marshalling and the bindings to GEOS too, so what is the best way to obtain a

Re: [Qgis-developer] GEOS geometry from QgsGeometry with the Python API?

2012-04-17 Thread G. Allegri
Right, it would need some kung-fu across QGIS-GEOS python bindings. It was never really a top priority for me since QgsGeometry exposes the most important GEOS geometry algorithms. I would like to extend it, to include the linearref methods exposed by the C API: - GEOSInterpolate (-

[Qgis-developer] GEOS geometry from QgsGeometry with the Python API?

2012-04-16 Thread G. Allegri
Hi, I've just realized that the python api does't support the QgsGeometry.asGeos() method. I understand that it would require SIP to manage the marshalling and the bindings to GEOS too, so what is the best way to obtain a GEOS geometry from the QgsGeoemtry? I mean, is there something better then