Scripts zur Darstellung der DGM1 Topografie Kacheln in Schleswig-Holstein.
cd tools/python
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 dgm1_hvd_downloader.py --src ../data/DGM1_SH__Massendownload.geojson --dst /data/raw/sh/dgm1 --verbose
deactivate- Navigate to the directory containing the Go tools:
cd tools/go- Run the program with the -help flag to display usage information:
go run dgm1_hvd_downloader.go -help- Run with Download Mode enabled, using the specified source and destination file paths. This will download all files:
- Replace
/your-src-path/your-file.geojsonwith the path to the GeoJSON file containing the downloadable features (e.g., ../data/DGM1_SH__Massendownload.geojson). - Replace
your-dst-path with the pathto the directory where the downloaded files should be saved (e.g., /data/raw/sh/dgm1).
go run dgm1_hvd_downloader.go -v --download --src "/your-src-path/your-file.geojson" --dst "/your-dst-path"Optionally, you can define start and end indices to specify a range of files to download:
go run dgm1_hvd_downloader.go -v --download --start 1000 --end 1999 --src "/your-src-path/your-file.geojson" --dst "/your-dst-path"- Run with Verify Mode enabled to check the downloaded files:
- Replace your-src-path with the path to the directory where the downloaded files are stored.
- Replace your-log-path/your-log-file.log with the path where you want the log file to be saved.
go run dgm1_hvd_downloader.go -v -verify --src "/your-src-path" --log "your-log-path/your-log-file.log"psql -U oklab -h localhost -d oklab -p 5432 < ../data/sh_dgm1_meta_schema.sqlcd tools
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 insert_epsg_csv.py --env ../.env --src ../data/sh_dgm1_tiles.csv --verbose
deactivateContributions are welcome! Please refer to the CONTRIBUTING.md guide for details on how to get involved.
This repository is licensed under CC0-1.0.