GeoPackage

This work is being done under the GeoPackage Repo of SoilWise

This work builds on the work of EJP Soil project, which crafted a geopackage for soil data based on the INSPIRE model.

While testing the geopackage in real world scenario’s, some observations were made

Convert geopackage to GML using Hale Studio

A companion Hale Studio transformation converts the GeoPackage into an INSPIRE Soil (so 4.0.2) GML dataset in a single hale transform run, with no post-processing. See gpkg-to-inspire-soil-transformation/ for the transformation project, usage instructions, modelling decisions and known limitations.

Convert geopackage to SensorThings API using Hale Studio

A companion Hale Studio transformation converts the GeoPackage into a SensorThings API 2.0 batch request, ready to upload to a FROST server. See gpkg-to-sta-transformation/ for the transformation project, scripts, and usage instructions.

Visualize STA in QGIS

Sensor Things API recently arrived in QGIS. It brings a whole new type of vizualisations to QGIS (combination of data streams in maps and diagrams). We aim to find out if (and how) similar patterns can also be used on the INSPIRE GeoPackage for Soil data in QGIS.

Populate GeoPackage from QGIS

Bit off topic, but still interesting.

A need arose to populate a Soil Geopackage from QGIS.

Import data into GeoPackage from RDF

Soil Data in an RDF format would benefit from loading into a GeoPackage, so it can be used by users more comfortable with the geopackage format.

The rdf to rdb library aims to fullfill this scenario

Import using SQL in dbmanager

Import using copy-paste

A procedure commonly used to import geometries into existing layers within a GeoPackage using QGIS.

The import of geometries into an existing table of a GeoPackage with QGIS is structured in three main steps:

Let’s look at each step in detail.

Importing geometries

QGIS allows the import of geometries from various formats, such as CSV, Shapefile, or other GeoPackages. In this example, we will import data from a CSV file.

WARNING: For the copy-paste operation to work correctly, the source layer (from which geometries are copied) must have the same fields (name and data type) as the destination layer, or at least match the required fields. This check can be done during the import phase, later using QGIS tools, or by using an RDBMS to modify or remove unnecessary fields.

Copying geometries

Pasting geometries

To support this procedure, there is also a QGIS plugin that simplifies and extends the described steps.

It is called AppendFeaturesToLayer and is available at: https://github.com/gacarrillor/AppendFeaturesToLayer

The plugin includes two geoprocessing tools: