Create GeoPackage from scratch using python ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Create GeoPackage from scratch using python ?

Bo Victor Thomsen
Is there a method to create a GeoPackage file from scratch using QGIS
and python (but not manually creating a layer using "create layer" in
the user interface)

Perhaps using the PyQt 5 QtSQL.QSqlDatabase method ??


--
Med venlig hilsen / Kind regards

Bo Victor Thomsen

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Create GeoPackage from scratch using python ?

Alessandro Pasotti-2
You can try QgsVectorLayerExporter

Cheers



On Mon, Mar 9, 2020 at 11:53 AM Bo Victor Thomsen
<[hidden email]> wrote:

>
> Is there a method to create a GeoPackage file from scratch using QGIS
> and python (but not manually creating a layer using "create layer" in
> the user interface)
>
> Perhaps using the PyQt 5 QtSQL.QSqlDatabase method ??
>
>
> --
> Med venlig hilsen / Kind regards
>
> Bo Victor Thomsen
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



--
Alessandro Pasotti
w3:   www.itopen.it
_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user