GeoPackage → INSPIRE Soil (so 4.0) transformation

A hale Studio project that converts the SoilWise GeoPackage into an INSPIRE Soil GML dataset (so 4.0.2, schema).

Usage

Requires hale Studio or the hale CLI 6.4.1+, and network access on first open to fetch the INSPIRE schemas.

cd transformation
hale transform -project SoilWise-GeoPackage-to-INSPIRE-Soil.halex \
  -source path/to/SoilWise.gpkg -target SoilWise-INSPIRE-Soil.gml \
  -preset INSPIRE-Soil-GML -reportsOut reports.xml

The INSPIRE-Soil-GML preset holds the writer settings; set the same in the GUI export wizard:

Check the hale report after each run. Data the transformation changes or leaves out is reported as a warning. A mandatory INSPIRE element with no value in the source, or an unexpected isderived / profileelementtype value, is reported as an error: the feature is still written, but is not INSPIRE-conformant until the source is fixed. For the SoilWise GeoPackage (SoilWise_with_data, 2026-10-07), expect 0 errors and 47 warnings (47 derivedProfilePercentageRange values above 100 %).

Project variables (in the .halex, editable in hale Studio):

What’s mapped

INSPIRE type from
SoilSite soilsite
SoilPlot soilplot
ObservedSoilProfile / DerivedSoilProfile soilprofile, by isderived (0 / 1)
SoilHorizon / SoilLayer profileelement, by profileelementtype (0 / 1)
SoilBody soilbody + soilbody_geom (one MultiSurface per body)
SoilDerivedObject soilderivedobject