[Qgis-developer] Show area of a polygon while editing with node tool

Luigi Pirelli luipir at gmail.com
Thu Oct 16 01:38:48 PDT 2014


you can always get the geometry from the rubber band with asGeometry()

http://qgis.org/api/classQgsRubberBand.html#aecb438a7c6e7c284d6a601d88985b66a

and calc the area.

Regards, Luigi Pirelli

On 16 October 2014 09:38, Michael Pfeiffer <Michael.Pfeiffer at bd.so.ch> wrote:
> Hi everybody,
>
> I'm developing a python plugin.
> Now the users of the plugin want to see the area of a polygon while editing
> it with the node tool because they need to have polygons with a specific
> area.
> Means they move a node and the area changes while moving the node.
> Is there an easy way to manage this? Are there already any examples?
>
> Thx for your help
>
> regards
>
> Michael
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Show-area-of-a-polygon-while-editing-with-node-tool-tp5167750.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list