[Qgis-developer] synchronization function suggestion

Maxim Dubinin sim at gis-lab.info
Fri May 1 10:39:45 EDT 2009


great! We're ready to work on that and send patch to trac.
Actually it is already implemented locally (but not sent to trac yet). Just
want to make sure, that nobody is currently working on this.

Maxim

Вы писали 1 мая 2009 г., 5:49:55:

MD> On Fri, May 1, 2009 at 10:02 AM, Hugentobler  Marco
MD> <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)

MD> +1

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

MD> Martin



More information about the Qgis-developer mailing list