Re: [Qgis-developer] PostGIS warning details in QGIS master

2014-10-03 Thread Pedro Venâncio
Hi Denis, This is even more strange. "Paste features: no features could be successfully pasted." warning only appears when selecting more than one feature. Please see the screencast: https://dl.dropboxusercontent.com/u/5772257/qgis/copy_paste/qgis_copy_paste.avi Test data: https://dl.dropboxuser

Re: [Qgis-developer] PostGIS warning details in QGIS master

2014-10-03 Thread Rouzaud Denis
QGIS is not pasting the field of the primary key to avoid conflict. I am not sure to understand your problem. I tested with two postgis layers having a primary key. In both layers, I have a feature with pkey = 1. I copy/paste from layer 1 to layer 2, and at end I have two features in layer 2, o

Re: [Qgis-developer] PostGIS warning details in QGIS master

2014-10-02 Thread Rouzaud Denis
Hi Pedro, As said, copy/paste only tries to convert geometries and will paste if possible. Foreign key violation is only detected by Postgis, so the reason why QGIS is not actually pasting is not due to a FKey violation. Do you have a debugging environment or can you provide some demo data? Be

Re: [Qgis-developer] PostGIS warning details in QGIS master

2014-10-01 Thread Pedro Venâncio
Hi Denis, Now copy/paste tries to convert geometries to match layer destination. So, > you probably had incompatible geometries like trying to paste lines in a > point layer. > > Not in this case. Both layers were geometry (MultiLineString,20790). In previous versions the only problem that the wa

Re: [Qgis-developer] PostGIS warning details in QGIS master

2014-10-01 Thread Denis Rouzaud
Hi, Now copy/paste tries to convert geometries to match layer destination. So, you probably had incompatible geometries like trying to paste lines in a point layer. I can try to provide a better feedback, but as I remember it was not so easy. Greetings Denis Le 1 oct. 2014 15:58, "Pedro Venânci

[Qgis-developer] PostGIS warning details in QGIS master

2014-10-01 Thread Pedro Venâncio
It seems that there were changes in warning messages in QGIS master. When trying to copy features from a PostGIS layer in QGIS master to another, in the moment of pasting to the destination layer, I get the warning message "Paste features: no features could be succesfully pasted.", however it does