Opendata Bayern Download Documentation
https://geodaten.bayern.de/opengeodata/
sudo apt install aria2
Search your meta4-Link (looks like https://geodaten.bayern.de/[...].meta4
)
- Click on the Map
- Right-Click on Download (Metalink)
- Copy URL to clipboard
# create your target-datadir
mkdir /path/to/local_geodata/
# use aria2 to download data
#
aria2c -V --follow-metalink=mem --dir=/path/to/local_geodata/ <paste here your copied url>
example
aria2c -V --follow-metalink=mem --dir=/tmp https://geodaten.bayern.de/odd/a/lod2/citygml/meta/metalink/09276115.meta4
use:
--follow-metalink=mem
not to write the meta4-file-V
to verify the downloaded data with the provided checksum--dir=/path/to/lod_data/
to save the data in this directory
If data is updated by the data-provider, you can use the previous command to update your local data. The provided parameters make aria2 to check if the remote data has changed and downloads only the updated data.
Just put the command from above into your crontab
Format: CITYGML
EPSG : 25832
Tile-Size: 2km x 2km
aria2c -V --dir=/data/on_big_hdd/lod2/ https://geodaten.bayern.de/odd/a/lod2/citygml/meta/metalink/09.meta4
Format: GeoTiff
EPSG : 25832
Tile-Size: 1km x 1km
aria2c -V --dir=/data/on_big_hdd/dem/ https://geodaten.bayern.de/odd/a/dgm/dgm1/meta/metalink/09.meta4
Format : GeoTiff (RGB)
EPSG : 25832
Tile-Size: 1km x 1km
for i in 1 2 3 4 5 6 7
do
aria2c -V --dir=/data/on_big_hdd/dop/ https://geodaten.bayern.de/odd/a/dop40/meta/metalink/09${i}.meta4
done