[postgis-users] Saving a split polygon

Hugues François hugues.francois at irstea.fr
Mon Oct 7 01:32:33 PDT 2013


Hello,
 
I previously edited polygons from postgis within qgis and with no problem. If I remember well, before saving I also filled attribute data to give a new ID. Maybe if you just want to edit polygons without changing attributes, you may remove constraints on your postgis table (especially, uniques, not null and primary key) before editing (and then put the things right back to postgis).
 
Hugues.
 
 

________________________________

From: postgis-users-bounces at lists.osgeo.org [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Peter Brown
Sent: Monday, October 07, 2013 9:53 AM
To: postgis-users at lists.osgeo.org
Subject: [postgis-users] Saving a split polygon


In Quantum GIS (QGIS) there is a very useful facility for taking a polygon in a PostGIS database linked to QGIS and splitting it. HOWEVER, when one then tries to save the two portions, PostGIS puts up an error message that it cannot save the new portion because it does not have a new ID (it can save the existing portion, because this is only an edit of an existing ID).  
There are workarounds for this (e.g. convert to 'Shape' files) but they seem incredibly clumsy. Does anyone have a more direct solution?
Thanks
Peter Brown

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20131007/cc4dfdf8/attachment.html>


More information about the postgis-users mailing list