<div dir="ltr"><div><div><div><div>How do you merge exactly?<br><br></div>You could use PostGIS trick, like droping the foreign key constraint, and trusting QGIS, but it would be a poor idea.<br><br></div>Another option would be to create triggers to clean the merging done by qgis, so no foreign key constraint is violated, but it would depend on what is this merge exactly.<br><br></div><div>Are you talking about the <br>vector/geoprocessing tools/Dissolve ?<br><br></div>Cheers,<br></div>RĂ©mi-C<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-03 11:14 GMT+01:00 Thibaut Gheysen <span dir="ltr"><<a href="mailto:gheysen.t@gmail.com" target="_blank">gheysen.t@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I would like to have your opinion in order to simplify as much as possible our current workflow.<br><br></div>We have a table parcel and a table operation. The table operation include a foreign key to the table parcel. We have 2 parcels (A and B) but only parcel A has operations link on it. I would like to merge the 2 parcels by keeping the attributes of the parcel A. The merge is doing properly but impossible to save the edit (Provider errors: PostGIS error while deleting feature: ERROR: update or delete table "parcel" violates foreign key constraint"fk_parcel" on table "operation"). I guess this is due to the fact the Qgis first delete the 2 parcels (A and B) before creating a new one (merged one). <br>This behaviour oblige us to export the table parcel into a shapefile and make the modifications on it. Once done, we import the shapefile into PostGIS and update the parcel geometry base on it. <br><br></div>Is there any chance to find an easier workflow, without developing a plug-in ?<br><br></div>Thank for your help.<br><br></div>Best regards,<br></div>Thibaut.<br><div><div><div><div><br><br><br><br><br><span style="font-size:12pt;font-family:"Times New Roman",serif" lang="EN-GB"></span></div></div></div></div></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>