# Evidenca dejanske rabe kmetijskih in gozdnih zemljišč

Actual use of agricultural and forest land in Slovenia, the national land use register (Evidenca dejanske rabe kmetijskih in gozdnih zemljišč) kept by the Ministry of Agriculture (MKGP): polygons of one land use class each, such as arable land, permanent grassland, vineyards, orchards, overgrown land, forest, built-up land and water, which the real estate cadastre's actual land use groups together. Mainly the control layer for the EU Common Agricultural Policy. Captured by photo-interpretation of orthophotos, with satellite images and field checks; about a third of the country is updated each year, so a polygon can reflect imagery up to three years old. This is the monthly snapshot from MKGP's archive. The `raba_id` codes and their names are in the column description; MKGP publishes the code list only as a PDF (RABA_Read_me.pdf).

| | |
|---|---|
| Collection | `mkgp_raba` |
| Release | `RABA_2026_11_30`, data as of 2026-11-30 |
| Producer | [Ministrstvo za kmetijstvo](https://www.gov.si/drzavna-uprava/ministrstva/ministrstvo-za-kmetijstvo/) |
| License | other ([terms of use](https://podatki.gov.si/dataset/evidenca-dejanske-rabe-kmetijskih-in-gozdnih-zemljisc1)) |
| Attribution | Ministrstvo za kmetijstvo, Evidenca dejanske rabe kmetijskih in gozdnih zemljišč, stanje 2026-11-30 |
| Source | [MKGP: archive of the land use register (RABA)](https://rkg.gov.si/arhiv/RABA/), [OPSI: Evidenca dejanske rabe kmetijskih in gozdnih zemljišč](https://podatki.gov.si/dataset/evidenca-dejanske-rabe-kmetijskih-in-gozdnih-zemljisc1) |
| Host | OSGeo Slovenija, klemen@lovenjak.si |
| Updated | 2026-12-05T11:17:32Z |

## License and attribution

The data is licensed other by Ministrstvo za kmetijstvo ([terms of use](https://podatki.gov.si/dataset/evidenca-dejanske-rabe-kmetijskih-in-gozdnih-zemljisc1)). Credit the producer wherever the data or anything made from it is published, with this line:

```
Ministrstvo za kmetijstvo, Evidenca dejanske rabe kmetijskih in gozdnih zemljišč, stanje 2026-11-30
```

## Provenance

This collection is a mirror: Ministrstvo za kmetijstvo publishes the data at [MKGP: archive of the land use register (RABA)](https://rkg.gov.si/arhiv/RABA/), [OPSI: Evidenca dejanske rabe kmetijskih in gozdnih zemljišč](https://podatki.gov.si/dataset/evidenca-dejanske-rabe-kmetijskih-in-gozdnih-zemljisc1). This is release `RABA_2026_11_30.zip` (data as of 2026-11-30). The osgeo-si ETL downloaded it, converted every layer from Shapefile to GeoParquet 2.0 (tables without geometry to plain Parquet) as described under Conversion, and published it only after the catalog passed rashid 0.5.1 (Portolan v0.3.0). There is no release history: the catalog always points to the latest release. Data file names carry a hash of their bytes, so a changed file gets a new name and a file is never replaced while someone reads it; follow the links in `collection.json` instead of keeping a file name. A file the catalog no longer points to is removed after a day. A file's `created` (First published under Files) is when those bytes were first published; `updated` (2026-12-05T11:17:32Z) is the last time the ETL checked the source, also when nothing had changed.

## Conversion

- Columns: only those listed under Columns, in that order (the spec's order, which can differ from the source file's). Column names are the source names in lower case.
- Rows of a table with geometry are sorted along a Hilbert curve of their bounding-box centres (null geometries last), so their order is not the source's. Tables without geometry keep the source order.
- `hilbert` (after the geometry column) is not in the source and not part of GeoParquet: the Hilbert key the rows are sorted on, for page-level spatial pruning. A reader that knows it compares the page minimum and maximum in the Parquet column index with the keys of an area; others can ignore it. Data pages hold at most 1,000 rows.
- Values are otherwise as in the source. Nulls: in a Shapefile's DBF, an empty field, a number field holding only `-` or only `*` (such as `****`) and the date `00000000` are null; trailing spaces (DBF padding) are removed, leading spaces of text are kept as in the source.
- Geometries have the type listed under Columns: a single part is written as a multi geometry of one part (a one-part multi as a single part where the type is single). A null shape is a null geometry.

## Personal data

Table `raba`: `user_id`, `user_id_za` and `manager` are numeric ids of the interpreters and managers who last changed or reviewed each polygon (no names).

These tables are published as Ministrstvo za kmetijstvo releases them: nothing is removed or added. Requests to remove personal data go to klemen@lovenjak.si.

## Files

| Layer | Rows | Geometry | Size | File | First published |
|---|---:|---|---:|---|---|
| `raba` | 1,795,280 | MultiPolygon, EPSG:3794 | 398.3 MB | [`raba.1b7d5c168806845c.parquet`](raba.1b7d5c168806845c.parquet) | 2026-12-05T11:17:32Z |

## Columns

| Column | Type | Source column | Description |
|---|---|---|---|
| `geom` | geometry(MultiPolygon, EPSG:3794) | `geom` |  |
| `hilbert` | int64 | none (see Conversion) | Hilbert sort key (see Conversion). |
| `raba_pid` | int64 | `RABA_PID` | Polygon id in the land use database. |
| `raba_id` | int32 | `RABA_ID` | Land use class (MKGP code list, RABA_Read_me.pdf / RABA_Beri_me.pdf, August 2026): 1100 Njiva (arable land), 1160 Hmeljišče (hop field), 1180 Trajne rastline na njivskih površinah (permanent crops on arable land), 1190 Rastlinjak (greenhouse), 1211 Vinograd (vineyard), 1212 Matičnjak (nursery), 1221 Intenzivni sadovnjak (intensive orchard), 1222 Ekstenzivni oz. travniški sadovnjak (extensive orchard), 1230 Oljčnik (olive grove), 1240 Ostali trajni nasadi (other permanent crop), 1300 Trajni travnik (permanent grassland), 1321 Barjanski travnik (swampy meadow), 1410 Kmetijsko zemljišče v zaraščanju (overgrown agricultural area), 1420 Plantaža gozdnega drevja (forest plantation), 1500 Drevesa in grmičevje (trees and shrubs), 1600 Neobdelano kmetijsko zemljišče (uncultivated agricultural land), 1800 Kmetijsko zemljišče, poraslo z gozdnim drevjem (forest trees on agricultural land), 2000 Gozd (forest), 3000 Pozidano in sorodno zemljišče (built-up area and related surface), 4100 Barje (swamp), 4210 Trstičje (reed), 4220 Ostalo zamočvirjeno zemljišče (other marshy area), 5000 Suho odprto zemljišče s posebnim rastlinskim pokrovom (dried open area with special vegetation), 6000 Odprto zemljišče brez ali z nepomembnim rastlinskim pokrovom (open area with little or no vegetation), 7000 Voda (water). |
| `vir` | utf8 | `VIR` | Not described by MKGP. Text such as `dof`, `Dof5`, `Baseline_2`, `Transparent` or `AKTRP_2019 za 1320`. |
| `area` | float64 | `AREA` | Not described by MKGP; equals the polygon's area in square metres (within 0.005 % on the first 20,000 polygons of 2026-11-30). |
| `status` | utf8 | `STATUS` | Not described by MKGP; `P` in every row of 2026-11-30. |
| `d_od` | date32 | `D_OD` | Date of the last change or review of the polygon. |
| `user_id` | int32 | `USER_ID` | Id of the interpreter or manager who last changed or reviewed the polygon. |
| `user_id_za` | int32 | `USER_ID_ZA` | USER_ID_ZAJEM, cut to 10 characters by the DBF: id of the interpreter who last changed or reviewed the polygon, usually in the first phase of interpretation. |
| `manager` | int32 | `MANAGER` | Id of the manager who reviewed the polygon (second phase: control, or review from other sources). |
| `stanje` | utf8 | `STANJE` | First update phase: `Upd` not yet marked as inspected, `End` inspected (first phase completed). |
| `verified` | utf8 | `VERIFIED` | Second update phase (control, post-production): `OK` update completed. `Teren` (field) also occurs, not described by MKGP. |

## Quick start

With DuckDB and its spatial extension, from this directory:

```sql
INSTALL spatial; LOAD spatial;
SELECT * FROM 'raba.1b7d5c168806845c.parquet' LIMIT 10;
```

Coordinates are in EPSG:3794 (Slovenia 1996 / Slovene National Grid), in metres; the extent in `collection.json` is WGS84. The geometry is Parquet's native `GEOMETRY` type (GeoParquet 2.0): readers that only know GeoParquet 1.x cannot read it.

## Limitations

- This is a copy. For anything with legal weight use Ministrstvo za kmetijstvo's own data and terms.
- The data is as Ministrstvo za kmetijstvo released it, including its known quirks.
- No public URL yet: links are relative to this catalog.
