On Mon, 20 May 2019 at 22:03, RenĂ©-Luc Dhont <[email protected]> wrote:
>
> Hi devs,
>
> I'd like to save data in a Geopackage by defining the layername, the
> geometry column and the primary key field with a processing parameter
> feature sink.
>
> I have found in the processing tests, that a feature sink value can be :
> ogr:dbname='/me/a.gpkg' table="d" (geom) sql=
> Is it possible to define the primary key field ?

Everything after "ogr:" is just a standard vector layer url -- looking
at QgsOgrProvider, I can't see any existing way to manually specify a
primary key, so that would need to be added first.

Nyall
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to