Giter Club home page Giter Club logo

opendata_bayern_download's Introduction

opendata_bayern_download

Opendata Bayern Download Documentation

Where to get an overview

https://geodaten.bayern.de/opengeodata/

Use aria2 to download und update downloaded data

Install aria2 (debian-based)

sudo apt install aria2

Search your wanted data and get the URL to to meta4-File

Search your meta4-Link (looks like https://geodaten.bayern.de/[...].meta4)

  • Click on the Map
  • Right-Click on Download (Metalink)
  • Copy URL to clipboard

download the data

# 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

automate the update process

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

TL;DR

Commands to download all data

3D Buildings LOD-2

Format: CITYGML
EPSG : 25832
Tile-Size: 2km x 2km

⚠️ Download-Size: about 150 GB

aria2c -V --dir=/data/on_big_hdd/lod2/ https://geodaten.bayern.de/odd/a/lod2/citygml/meta/metalink/09.meta4

DEM - Resolution 1m

Format: GeoTiff
EPSG : 25832
Tile-Size: 1km x 1km

⚠️ Download-Size: about 240 GB

aria2c -V --dir=/data/on_big_hdd/dem/ https://geodaten.bayern.de/odd/a/dgm/dgm1/meta/metalink/09.meta4

Ortho-Photo Resolution 40cm

Format : GeoTiff (RGB)
EPSG : 25832
Tile-Size: 1km x 1km

⚠️ ⚠️ ⚠️ Download-Size: about 1,2 TB == 1200 GB

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.