Re: [QGIS-Developer] PyQGIS - how to handle primary keys in geopackage

2018-03-29 Thread Alexandre Neto
Thank you Nyall! That solved the problem. I failed to see that in the C++ code for split features tool, but it was there. The only small annoyance that I had was the need to convert the result of feature.attributes() into a dictionary. Once again, thanks! It solved a long-standing issue in the

Re: [QGIS-Developer] PyQGIS - how to handle primary keys in geopackage

2018-03-28 Thread Nyall Dawson
On 28 March 2018 at 08:32, Alexandre Neto wrote: > My multipart split plugin (which I am porting to 3), It breaks multipart > features and transforms each part in individual features, copying the > attributes from the original feature. > > In the process, I need to be

[QGIS-Developer] PyQGIS - how to handle primary keys in geopackage

2018-03-27 Thread Alexandre Neto
My multipart split plugin (which I am porting to 3), It breaks multipart features and transforms each part in individual features, copying the attributes from the original feature. In the process, I need to be careful with the autoincrement primary keys. For PostGIS and Spatialite, asking for the