Team:Terrain/Map Data Sources

From WHY2025 wiki
Revision as of 20:50, 25 September 2024 by Uglyhack (talk | contribs) (→‎BGT data)
Jump to navigation Jump to search

Current Map

Right now it's stored as a kart repository at Uglyhack's Gitlab. This is just the raw data, we haven't figured out the best way to share the styling yet.

Height Data

height of the terrain
height map

The terrain is interesting for terrain features. The rice fields in particular are hard to judge for height. But the team found a open data voxel height map data: Map Data

Puntenkaart.png

Link

This can be downloaded from here:

These files have also been put in the nextcloud.

Satelite data

The dutch government provides a bunch of data here: link. If you log in you can get a bunch more pictures, including some of previous events.

For general high-res images, pdok has nice layers. You can add them with this WMTS link in QGIS:

   https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0?request=GetCapabilities&service=wmts

Some relevant images have been saved on the nextcloud as Geo-referenced TIF files.

BGT data

This is available from the dutch government though their API: https://api.pdok.nl/lv/bgt/ogc/v1

The easiest way I have found to use it is to convert to geopackage.

For example, this script will get it all for the terrain:

#!/bin/bash

cat json | jq -r ".collections[].id" | while read -r dataset ; do
   echo "Download $dataset"
   ogr2ogr -overwrite -of GPKG -spat 110750 522600 112600 523600 -where "eind_registratie IS NULL" -s_srs EPSG:28992 -t_srs EPSG:28992 bgt.gpkg OAPIF:https://api.pdok.nl/lv/bgt/ogc/v1 $dataset
   echo "Resting..."
   sleep 5s
done

You may want to remove the empty layers. Just drag the whole file into QGIS, select all the layers, right click and select "Show feature count". Now remove all the layers with no features.

The API will return a maximum of 1000 objects, so if you want a larger area you may want to split it up like this:

#!/bin/bash
# These are the relevant data sets
for dataset in begroeidterreindeel begroeidterreindeel_kruinlijn gebouwinstallatie installatie kast kunstwerkdeel_lijn onbegroeidterreindeel onbegroeidterreindeel_kruinlijn ondersteunendwaterdeel ondersteunendwegdeel ondersteunendwegdeel_kruinlijn openbareruimtelabel overbruggingsdeel overigbouwwerk pand pand_nummeraanduiding put scheiding_lijn scheiding_vlak tunneldeel vegetatieobject_punt waterdeel wegdeel paal bord kunstwerkdeel_vlak
do
    echo "Download $dataset"
   ogr2ogr -overwrite -of GPKG -spat 110200 521900 111500 524000 -where "eind_registratie IS NULL" -s_srs EPSG:28992 -t_srs EPSG:28992 bgt.gpkg OAPIF:https://api.pdok.nl/lv/bgt/ogc/v1 $dataset
   sleep 1s
   ogr2ogr -upsert -of GPKG -spat 111500 521900 112500 524000 -where "eind_registratie IS NULL" -s_srs EPSG:28992 -t_srs EPSG:28992 bgt.gpkg OAPIF:https://api.pdok.nl/lv/bgt/ogc/v1 $dataset
   sleep 1s
   ogr2ogr -upsert -of GPKG -spat 112500 521900 113500 524000 -where "eind_registratie IS NULL" -s_srs EPSG:28992 -t_srs EPSG:28992 bgt.gpkg OAPIF:https://api.pdok.nl/lv/bgt/ogc/v1 $dataset
   sleep 1s
   ogr2ogr -upsert -of GPKG -spat 113500 521900 114500 524000 -where "eind_registratie IS NULL" -s_srs EPSG:28992 -t_srs EPSG:28992 bgt.gpkg OAPIF:https://api.pdok.nl/lv/bgt/ogc/v1 $dataset
   sleep 1s
done