[Qgis-developer] synchronization function suggestion

Martin Dobias wonder.sk at gmail.com
Fri May 1 06:49:55 EDT 2009


On Fri, May 1, 2009 at 10:02 AM, Hugentobler  Marco
<marco.hugentobler at karto.baug.ethz.ch> wrote:
> Hi Maxim
>
> I'm also in favour of such a function. To change attribute values, there is already a function in QgsVectorLayer. But to change geometries, there is no such function (as you pointed out).
> My suggestion is to call the function changeGeometry and to pass feature id and geometry as arguments, since the function does not do anything with attributes:
>
> bool QgsVectorLayer::changeGeometry(int featureId, QgsGeometry* geom)

+1

Actually yesterday I've encountered the same problem :-)
We should also deprecate the vector layer functions like insertVertex
or moveVertex (which just modify the geometry) in favour of this new
one.

Martin


More information about the Qgis-developer mailing list