<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19412"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=167052808-07102013>Hello,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=167052808-07102013></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=167052808-07102013>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).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=167052808-07102013></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=167052808-07102013>Hugues.</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=left> </DIV><BR>
<DIV dir=ltr lang=fr class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> postgis-users-bounces@lists.osgeo.org
[mailto:postgis-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Peter
Brown<BR><B>Sent:</B> Monday, October 07, 2013 9:53 AM<BR><B>To:</B>
postgis-users@lists.osgeo.org<BR><B>Subject:</B> [postgis-users] Saving a split
polygon<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>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).
<DIV>There are workarounds for this (e.g. convert to 'Shape' files) but they
seem incredibly clumsy. Does anyone have a more direct solution?</DIV>
<DIV>Thanks</DIV>
<DIV>Peter Brown<BR>
<DIV> </DIV></DIV></DIV></BODY></HTML>