[Qgis-developer] Spatial operators for style rules via QGIS Expression

rldhont rldhont at gmail.com
Mon Nov 12 09:41:54 PST 2012


Hi Martin,

I made the update. QgsGeometry object is directly stored.

I also updated the list of NodeFunction :
* buffer
* intersection
* distance
* exportToWKT
* and other geometruc method
I also add test.

Regards,
René-Luc

Le 12/11/2012 10:39, Martin Dobias a écrit :
> Hi Rene-Luc
>
> On Wed, Nov 7, 2012 at 9:42 AM, rldhont <rldhont at gmail.com 
> <mailto:rldhont at gmail.com>> wrote:
>
>     Hi all,
>
>     As Martin Dobias asked me, I updated my code and implemented
>     Spatial Operator in QgsExpression as NodeFunction.
>     You can review the code here :
>     https://github.com/rldhont/Quantum-GIS/tree/6535
>
>
> Thanks for the update. I went through the code and things look good. I 
> have only one concern: QgsGeometry instances stored in QVariant do not 
> seem to be released... When "$geometry" is used, then it's returning 
> the instance from the feature (which should not be deleted), but 
> temporary geometries constructed from wkt/gml must be deleted.
>
> Maybe we should store directly QgsGeometry object instead of just a 
> pointer inside?
>
> Regards
> Martin
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121112/80ec9b3b/attachment.html>


More information about the Qgis-developer mailing list