Slovenia leaf type import - ZGS
Goal
Add leaf_type=* (broadleaved / needleleaved / mixed) to existing forest polygons (landuse=forest, natural=wood) in Slovenia. Most forests in Slovenia are mapped, but very few have leaf_type.
Only leaf_type=* and source:leaf_type=ZGS are added. No geometry is imported, no other attributes from the source are used, and existing leaf_type values are never changed.
Data source
- Provider: Zavod za gozdove Slovenije (ZGS, Slovenia Forest Service)
- Layer: forest stands (gozdni sestoji), public WFS
https://prostor.zgs.gov.si/geoserver/wfs, layerpregledovalnik:sestoji(350,457 stands, downloaded 2026-11-30) - Attributes used: growing stock of conifers and broadleaves per stand (
lzigl,lzlst, m³/ha), checked against the total (lzsku) - Data is maintained by ZGS as part of forest management plans. Stands carry no survey date; the validity period of the forest management plan of their unit (layer
gge, e.g. 2017–2026) is recorded as the best available proxy.
License
ZGS gave explicit written permission (e-mail, 2026-11-30) to use the data for this purpose and publish the derived data in OpenStreetMap under the ODbL 1.0, with attribution to Zavod za gozdove Slovenije:
Zavod za gozdove Slovenije dovoljuje uporabo podatkov o lesni zalogi iglavcev in listavcev iz podatkovnega sloja gozdnih sestojev za namen določitve vrste gozda ter vnos tako izpeljanih podatkov v podatkovno zbirko OpenStreetMap in njihovo objavo pod pogoji licence Open Database License (ODbL) 1.0, ob navedbi Zavoda za gozdove Slovenije kot vira podatkov.
— mag. Matjaž Guček, univ. dipl. inž. gozd. Vodja službe I - gozdarsko načrtovanje, Zavod za gozdove Slovenije
English: The Slovenia Forest Service permits the use of conifer and broadleaf growing stock data from the forest stands layer to determine the forest type, and the entry of the derived data into the OpenStreetMap database and its publication under the Open Database License (ODbL) 1.0, with attribution to the Slovenia Forest Service as the data source.
The original e-mail is kept by the import contact and can be forwarded to the Licensing Working Group on request.
Attribution: Contributors.
Method
Conifer share
For each ZGS stand: s = conifer growing stock / (conifer + broadleaf growing stock).
For each OSM forest polygon (areas in EPSG:3794 D96/TM; multipolygon holes excluded):
- c – valid coverage: area covered by stands with usable data ÷ full polygon area
- p – mean conifer share: the overlap-area-weighted mean of the stand shares within that coverage
This is a mean of stand-level ratios, so every hectare counts equally. Pooling volumes instead (Σ conifer m³ ÷ Σ total m³) would weight stands by how much timber they carry, so dense old stands would outweigh larger young ones.
Uncertainty from missing coverage
Part of a polygon may have no usable data (young stands without growing stock, invalid values, overlapping stands, land outside the ZGS layer). Its share is unknown, so the whole-polygon share lies between
- lower = c · p (the rest all broadleaf)
- upper = c · p + (1 − c) (the rest all conifer)
A polygon is tagged only if c ≥ 70 % and the whole interval falls into one class:
| Condition | Result |
|---|---|
| lower ≥ 0.75 | leaf_type=needleleaved
|
| upper ≤ 0.25 | leaf_type=broadleaved
|
| lower > 0.25 and upper < 0.75 | leaf_type=mixed
|
| otherwise | manual review, no tag |
The bounds cover missing coverage only, not measurement error in the source.
Caveats
- Growing stock is a proxy for leaf composition: it measures timber volume, not canopy. Whether it is suitable is an open question for ZGS and has not been confirmed.
- 25 % / 75 % are project thresholds, not values prescribed by OSM. They are being validated in the pilot and may change after review.
Not tagged
- Objects that already have leaf_type (they are compared with the prediction for information only, never changed)
- Polygons larger than 100 ha (usually several forest types; can be split manually and tagged in a later run)
- Polygons without ZGS stands, or with stands without growing stock only
- Review cases: coverage below 70 %, interval crossing a threshold, overlapping source stands (> 1 % of the polygon), invalid geometry in the source or in OSM, a forest way that is also a member of a forest relation (to avoid tagging the same forest twice)
- Objects tagged earlier by this import (see Reruns)
Script, tests and documentation: https://github.com/b4d/osm-zgs-leaf-type
Test run, whole Slovenia (OSM extract 2026-11-29): see Statistics.
Tags
On objects:
On changesets:
source=ZGSimport=yescomment=Slovenia leaf_type import - ZGS, region <name>url=https://wiki.openstreetmap.org/wiki/Slovenia_leaf_type_import_-_ZGS
Workflow
- A fresh OSM extract and the ZGS data are processed per forest management region (GGO, 14 regions). Each object is processed once, even if it crosses a region border.
- The proposed edits are reviewed in JOSM against imagery. Doubtful polygons are left out.
- Right before upload, every proposed object is fetched again from the OSM API. It is dropped if it was edited since the extract, was deleted, or has meanwhile got leaf_type.
- Upload with the dedicated account
zgs_import (on OSM · edits · contribs · heatmap · comments), one region at a time, changesets of max. ~1,000 objects.
- The uploaded objects are recorded in a ledger in the repository (object, value, changeset, version). Each run keeps a manifest with tags before and after, the parameters, the script version and the source download dates.
- After each region a note is posted on the forum thread so others can check the result.
Reruns
Objects in the ledger are never proposed again. If a mapper later removes or changes an imported value, a rerun does not restore it. Objects with any leaf_type are never touched.
Recovery
If imported values turn out to be wrong, they are removed without a whole-changeset revert, which would also undo other mappers' later edits:
- Take the affected objects from the ledger and fetch their current state.
- Remove leaf_type and source:leaf_type only where both still have exactly the imported values. Nothing else is changed.
- Objects changed by others since the import are left alone and listed for manual checking.
- Upload with
zgs_import (on OSM · edits · contribs · heatmap · comments) with a comment referencing the original changeset, and note it on the forum and this page.
Validation
The pilot (Starod area) uses a reproducible review sample covering all predicted classes, polygon sizes (< 1, 1–10, ≥ 10 ha), coverage levels and cases near the thresholds. Reviewers record their own class, agreement and uncertainty, and the results are summarised here once the review is done. Existing leaf_type tags are compared separately and are not treated as ground truth.
Pilot results: pending review.
Statistics
Test run on the whole of Slovenia (OSM extract 2026-11-29, ZGS data 2026-11-30, script 0.3.0). Nothing uploaded.
| Objects | Area | |
|---|---|---|
| Forest objects | 169,634 | 1,212,436 ha |
| Would be tagged | 54,064 | 274,048 ha (23 %) |
| – broadleaved | 33,940 | 137,177 ha |
| – needleleaved | 5,999 | 19,498 ha |
| – mixed | 14,125 | 117,373 ha |
| Manual review: coverage < 70 % | 24,690 | |
| Manual review: interval crosses a threshold | 6,035 | |
| Manual review: forest way inside forest relation | 882 | |
| Skipped: larger than 100 ha | 2,966 | most of the forest area |
| Skipped: no ZGS stands / only stands without growing stock | 76,487 / 652 | |
| Skipped: existing leaf_type | 3,858 |
Source checks: 350,457 stands, 313,720 with growing stock, 36,737 without (young stands); no invalid values, inconsistent totals or invalid geometries were found. Forest management plan periods of the stands used range from 2016–2025 to 2025–2034.
Existing leaf_type compared with the prediction (for information; existing tags are not ground truth and are never changed): where a class was predicted, broadleaved agreed in 308 of 343 cases, needleleaved in 39 of 57, mixed in 176 of 547 (mostly predicted broadleaved or needleleaved instead).
Review
Following Import/Guidelines:
- Local discussion on the OSM Slovenija forum (since 2026-11-15).
- Review post in the Community Forum with the tags
importandimport-proposal: pending. - At least 14 days after the review post, and only after all concerns raised there and in the local thread have been addressed and documented on this page.
- Pilot upload (Starod) only after that; regions follow one at a time.
Discussion
- OSM Slovenija forum: https://community.openstreetmap.org/t/predlog-vrsta-gozda-leaf-type-iz-podatkov-zgs-o-sestojih
- Import review post: pending
Open questions
- ZGS: is growing stock a suitable proxy for leaf composition, and where would ZGS put the class boundaries?
- Thresholds (25 % / 75 %), minimum coverage (70 %) and the 100 ha limit: to be confirmed by the pilot review.
Status
- 2026-11-15: proposal on the forum
- 2026-11-30: written permission from ZGS
- 2026-11-30: method updated (uncertainty interval, stale-object check, ledger); pilot review sample prepared
- Pilot region: Starod (pending review period)