Ok, thanks. I will keep this in mind when developping starts. 2015-11-16 13:20 GMT+01:00 Bernhard Ströbl <[email protected]>:
> Hi Christian, > > a layer is either editable or not editable (reason for splitting up the > datasource in two layers in my second workaround). > For a plugin you could connected some of QgsVectorLayer's signals [1] to > slots that undo changes depending on the selection status of the feature. > However you somehow must store the geometries of the unselected features as > the signals only contain the new geometry/geometries but not the old one/s > before the change (would be worth to enhance this behaviour IMHO). > > Bernhard > > [1] http://qgis.org/api/classQgsVectorLayer.html > > Am 16.11.2015 um 12:11 schrieb Christian Röttger: > >> Hi Bernhard, >> >> thanks for your answer. That are the solutions we also thought about. >> Further we want to implement an own plugin where we can handle this in a >> better way. >> >> It was possible that there was some build in function already, which i >> didn't find. Is there someone here, who already developed a plugin which >> only edits selected features? Maybe this is possible with direct api >> acces or is always the complete layer editable? >> >> cheers >> Christian >> >> >> 2015-11-16 11:33 GMT+01:00 Bernhard Ströbl <[email protected] >> <mailto:[email protected]>>: >> >> Hi Christian, >> >> marking features as editing finished can IMHO only be realized in >> the feature's attributes. Insert a boolean field "editing_finished" >> in the layer's attributes. With this I see two workarounds: >> 1) if you are on a database layer: Have a trigger that prevents the >> geometry from being changed if editing_finished = true >> 2) Should work on all data sources: Load the layer twice: Once with >> filter editing_finished = false (this is the layer you work in) and >> once with editing_finished = true. If you have finished editing a >> feature set its editing_finished attribute to true and save edits. >> The feature will be "moved" from the edit layer to the >> editing_finished layer >> >> Bernhard >> >> Am 16.11.2015 um 11:06 schrieb Christian Röttger: >> >> Hi, >> >> at the moment i try to convince my boss to change to qgis for a >> greater >> digitizing project. >> One question is, if it is possible to edit only one (maybe more) >> selected feature? >> As an example: I edit a polygon. When his is complete it >> shouldn't be >> touched anymore. Then i edit the neighbour polygon, maybe with >> "advanced >> editig" -> "Reshape Features" and digitize (unintentionally) over >> a >> corner or boarder of the first polygon. So both features are >> changed. >> >> Summarized, is it possible to edit only one selected feature or >> does >> anyone know a workaround? >> >> Thanks and cheers >> Christian >> >> >> _______________________________________________ >> Qgis-user mailing list >> [email protected] <mailto:[email protected]> >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> >> >> >> >> __________ Information from ESET Mail Security, version of virus >> signature database 12573 (20151116) __________ >> >> The message was checked by ESET Mail Security. >> http://www.eset.com >> >> >> _______________________________________________ >> Qgis-user mailing list >> [email protected] <mailto:[email protected]> >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> >> >> >> _______________________________________________ >> Qgis-user mailing list >> [email protected] >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> > > > __________ Information from ESET Mail Security, version of virus signature > database 12573 (20151116) __________ > > The message was checked by ESET Mail Security. > http://www.eset.com > > > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
