# Digitalni model višin 5 m (DMV 5)

The digital elevation model of GURS (Digitalni model višin, DMV 5): heights of the relief at the nodes of a 5 m square grid over all of Slovenia, in D96/TM (EPSG:3794). It is the photogrammetric model, not lidar; GURS dates the data 2007-2016. Published here as one Cloud Optimized GeoTIFF of the whole country and, derived from it, Terrarium-encoded terrain tiles in a PMTiles for web maps.

| | |
|---|---|
| Collection | `gurs_dmv` |
| Release | JGP group 113 as listed on 2022-07-03, data dated 2007-2016 |
| Producer | [Geodetska uprava Republike Slovenije](https://www.gov.si/drzavni-organi/organi-v-sestavi/geodetska-uprava/) |
| License | CC-BY-4.0 ([terms of use](https://www.e-prostor.gov.si/en/access-to-geodetic-data/)) |
| Attribution | Geodetska uprava Republike Slovenije, Digitalni model višin 5 m (DMV 5), 2007-2016 |
| Source | [GURS: Javni geodetski podatki (JGP)](https://ipi.eprostor.gov.si/jgp/data), [GURS: metadata of the Digitalni model višin](https://eprostor.gov.si/imps/srv/slv/catalog.search#/metadata/4ac9a90e-7694-42eb-870a-c11ef93783c4) |
| Host | OSGeo Slovenija, klemen@lovenjak.si |
| Updated | 2026-12-05T04:44:03Z |

## License and attribution

The data is licensed CC-BY-4.0 by Geodetska uprava Republike Slovenije ([terms of use](https://www.e-prostor.gov.si/en/access-to-geodetic-data/)). Credit the producer wherever the data or anything made from it is published, with this line:

```
Geodetska uprava Republike Slovenije, Digitalni model višin 5 m (DMV 5), 2007-2016
```

## Provenance

This collection is a derived product of the Digitalni model višin 5 m (DMV 5), made and licensed by Geodetska uprava Republike Slovenije. Geodetska uprava Republike Slovenije publishes it in the JGP, group 113, as 4 ASCII XYZ files in zips: `DMV0050_JV.ZIP` (JGP file 516), `DMV0050_JZ.ZIP` (JGP file 517), `DMV0050_SV.ZIP` (JGP file 518) and `DMV0050_SZ.ZIP` (JGP file 469). GURS dates the data 2007-2016; the listing dates the files 2022-07-03. The osgeo-si ETL downloaded these files, joined their grid sheets into one mosaic and wrote it as a Cloud Optimized GeoTIFF with GDAL 3.10.3, released 2025/04/01, then derived the terrain tiles from that COG, as described under Conversion. The catalog was published only after it passed rashid 0.5.1 (Portolan v0.3.0), data included. Nothing is added to Geodetska uprava Republike Slovenije's heights; the terrain tiles are a resampled copy of them.

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` is when those bytes were first published; `updated` (2026-12-05T04:44:03Z) is the last time the ETL checked the source, also when nothing had changed.

## Conversion

- Grid: each line of a sheet is one node `e n z` in EPSG:3794 on a 5 m grid. A node is the centre of a pixel, so the pixel edges lie 2.5 m off the node coordinates. Nodes missing from the files have no data (-9999).
- `DMV0050_JV.ZIP`: 44 nodes of exactly 0 m set to no data, as an artefact of the source, at e 555640 to 555660, n 96775 to 96985 (the value is data elsewhere).
- `DMV0050_SV.ZIP`: 13 nodes of exactly 0 m set to no data, as an artefact of the source, at e 553640 to 553660, n 103485 to 103535 (the value is data elsewhere).
- Mosaic: 3,295 sheets, 49,872 x 32,583 px, 823,785,313 pixels with data (50.7 %), heights -2.6 to 2864.7 m. Values are the source's, as Float32.
- COG: GDAL's COG driver, deflate with the floating point predictor, 512 px tiles, internal overviews by averaging.
- Terrain tiles: for each zoom 0 to 14, GDAL warps the COG to Web Mercator at that zoom's resolution, averaging the source pixels (z14 is 9.55 m at the equator, about 6.6 m in Slovenia). Each 256 px tile is a PNG with the height encoded as Terrarium: metres = R * 256 + G + B / 256 - 32768, so steps of 1/256 m. Terrarium has no no-data value and MapLibre ignores alpha, so inside a tile with data the pixels without data are filled by extending the nearest heights outwards (ring by ring, each pixel the mean of its already filled neighbours, over the tile and the tiles around it). The COG keeps them as no data. Tiles without any data are left out.

## Files

| File | What | Size | First published |
|---|---|---:|---|
| [`dmv0050.2247da10748996e4.tif`](dmv0050.2247da10748996e4.tif) | COG, Float32 heights in m | 1.63 GB | 2026-12-05T04:44:03Z |
| [`dmv0050.0ce18e0350a982eb.pmtiles`](dmv0050.0ce18e0350a982eb.pmtiles) | Terrain tiles derived from the COG: Terrarium PNG, z0 to z14, 10,306 tiles | 1.00 GB | 2026-12-05T04:44:03Z |
| [`styles/terrain.json`](styles/terrain.json) | MapLibre style: hillshade of the terrain tiles | | |
| [`thumbnail.666c564db9a63e9c.png`](thumbnail.666c564db9a63e9c.png) | Preview (hillshade) | 64.5 kB | 2026-12-05T04:44:03Z |

## Quick start

With GDAL, from this directory (or over HTTP with `/vsicurl/<url>`):

```sh
gdalinfo -stats dmv0050.2247da10748996e4.tif
gdallocationinfo -valonly -geoloc dmv0050.2247da10748996e4.tif 462000 101000
```

In MapLibre GL JS with the `pmtiles` protocol, as a `raster-dem` source (the style in `styles/terrain.json` does this with a hillshade layer):

```js
map.addSource("terrain", {
  type: "raster-dem",
  url: "pmtiles://<url of this directory>/dmv0050.0ce18e0350a982eb.pmtiles",
  encoding: "terrarium",
  tileSize: 256,
});
```

## Limitations

- This is a copy. For anything with legal weight use Geodetska uprava Republike Slovenije's own data and terms.
- It is GURS's photogrammetric model (data dated 2007-2016), not lidar: smoother than the terrain in steep or forested areas.
- The data is as Geodetska uprava Republike Slovenije released it, including its known quirks.
- Outside the data (beyond the national border, the sea) the terrain tiles show the border heights extended flat, not real terrain: use them for maps, not for values there. Tiles wholly outside are absent and show no terrain.
- No public URL yet: links are relative to this catalog.
