• Blog posts

    Bio

    By David Crowther

    30.png

    Question:

    What is the best way to create GeoPackage Layers?

    Answer:

    If you already have the datasets as another source format e.g. a Shapefile, you can use the new Package Layers GeoProcessing tool to package individual source files into a GeoPackage. Follow the steps below to create your own GeoPackage File. 

    In QIS choose the Processing menu > Toolbox to open the GeoProcessing Toolbox/Pane.

    31.jpg

    From the Database toolbox choose Package Layers. In the Package Layers window, firstly choose the Input Layers and select multiple layers if required e.g. here I have chosen 3 Roads Shapefiles.

    32.jpg

    If the Source files are not already open in QGIS you can choose Add Files to find their location.

    33.jpg

    Having pressed OK to load the input files, now choose the Destination GeoPackage. Choose to Save to File and specify a Name and location for the GeoPackage file. Now Press RUN and the GeoPackage routine will start.

    34.jpg

    Once completed, choose the Data Source Manager and make a Connection to the GeoPackage File, choosing to load each of the individual Layers by selecting them from the list and then choose ADD.

    35.jpg

    The GeoPackage Layers will then be opened into QGIS.

    36.jpg