<div dir="ltr">Ok, thanks. I will keep this in mind when developping starts.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-16 13:20 GMT+01:00 Bernhard Ströbl <span dir="ltr"><<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Christian,<br>
<br>
a layer is either editable or not editable (reason for splitting up the datasource in two layers in my second workaround).<br>
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).<br>
<br>
Bernhard<br>
<br>
[1] <a href="http://qgis.org/api/classQgsVectorLayer.html" rel="noreferrer" target="_blank">http://qgis.org/api/classQgsVectorLayer.html</a><br>
<br>
Am 16.11.2015 um 12:11 schrieb Christian Röttger:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Bernhard,<br>
<br>
thanks for your answer. That are the solutions we also thought about.<br>
Further we want to implement an own plugin where we can handle this in a<br>
better way.<br>
<br>
It was possible that there was some build in function already, which i<br>
didn't find. Is there someone here, who already developed a plugin which<br>
only edits selected features? Maybe this is possible with direct api<br>
acces or is always the complete layer editable?<br>
<br>
cheers<br>
Christian<br>
<br>
<br>
2015-11-16 11:33 GMT+01:00 Bernhard Ströbl <<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a><br>
<mailto:<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>>>:<br>
<br>
    Hi Christian,<br>
<br>
    marking features as editing finished can IMHO only be realized in<br>
    the feature's attributes. Insert a boolean field "editing_finished"<br>
    in the layer's attributes. With this I see two workarounds:<br>
    1) if you are on a database layer: Have a trigger that prevents the<br>
    geometry from being changed if editing_finished = true<br>
    2) Should work on all data sources: Load the layer twice: Once with<br>
    filter editing_finished = false (this is the layer you work in) and<br>
    once with editing_finished = true. If you have finished editing a<br>
    feature set its editing_finished attribute to true and save edits.<br>
    The feature will be "moved" from the edit layer to the<br>
    editing_finished layer<br>
<br>
    Bernhard<br>
<br>
    Am 16.11.2015 um 11:06 schrieb Christian Röttger:<br>
<br>
        Hi,<br>
<br>
        at the moment i try to convince my boss to change to qgis for a<br>
        greater<br>
        digitizing project.<br>
        One question is, if it is possible to edit only one (maybe more)<br>
        selected feature?<br>
        As an example: I edit a polygon. When his is complete it<br>
        shouldn't be<br>
        touched anymore. Then i edit the neighbour polygon, maybe with<br>
        "advanced<br>
        editig" -> "Reshape Features" and digitize (unintentionally) over a<br>
        corner or boarder of the first polygon. So both features are<br>
        changed.<br>
<br>
        Summarized, is it possible to edit only one selected feature or does<br>
        anyone know a workaround?<br>
<br>
        Thanks and cheers<br>
        Christian<br>
<br>
<br>
        _______________________________________________<br>
        Qgis-user mailing list<br>
        <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>><br>
        List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
        Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
<br>
<br>
    __________ Information from ESET Mail Security, version of virus<br>
    signature database 12573 (20151116) __________<br>
<br>
    The message was checked by ESET Mail Security.<br>
    <a href="http://www.eset.com" rel="noreferrer" target="_blank">http://www.eset.com</a><br>
<br>
<br>
    _______________________________________________<br>
    Qgis-user mailing list<br>
    <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>><br>
    List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
    Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
</blockquote>
<br>
<br>
<br>
__________ Information from ESET Mail Security, version of virus signature database 12573 (20151116) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" rel="noreferrer" target="_blank">http://www.eset.com</a><br>
<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><br></div>