Skip to content

A Docker based solution to download and prepare geo data

License

Notifications You must be signed in to change notification settings

calysteau/geo-assist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-assist

Overview

geo-assist is a Docker based solution to download and prepare geo data.

The basic system contains scripts that allow you to download datasets and convert them (Shapefiles, GeoJSON, MBTiles).

Building geo-assist

Build the geo-assist image from the Dockerfile.

Build the docker image

docker build -t geo-assist .

Use the docker image

docker run -ti -v $(pwd)/dataset:/calysteau/dataset geo-assist

How to use geo-assist

Following samples are based on Georisques data from https://www.georisques.gouv.fr/

Download an archive

./download.sh https://www.calysteau.fr/data/Georisques2020/georisques_tri_2020.zip fr-tri-2020
  • Argument 1 : Archive URL
  • Argument 2 : Dataset name
  • Result : downloaded dataset is available in /calysteau/fr-tri-2020

Convert all datasets shapefiles to GeoJSON files

./generate_geojsons.sh
  • No argument
  • Result : GeoJSON files are created for all shapefiles in /calysteau/dataset/ directory

Convert single dataset shapefiles to GeoJSON files

./generate_geojsons.sh fr-tri-2020
  • Argument 1 : Dataset name
  • Result : GeoJSON files are created for all shapefiles in in /calysteau/dataset/fr-tri-2020

Create specific layers toponyms in GeoJSON files

Works only with departements and regions in fr-admin-express dataset.

./generate_geojsons_toponyms.sh
  • No argument
  • Result : GeoJSON files are created for departements and regions in in /calysteau/dataset/fr-admin-express

Convert all datasets GeoJSON files to MBTiles files

./generate_mbtiles.sh
  • No argument
  • Result : MBTiles files are created for all GeoJSON files in /calysteau/dataset/ directory

Convert single dataset Geojson files to MBTiles files

./generate_mbtiles.sh fr-tri-2020
  • Argument 1 : Dataset name
  • Result : MBTiles files are created all GeoJSON files in /calysteau/dataset/fr-tri-2020

Merge MBTiles to a single dataset MBTiles file

./merge_mbtiles.sh fr-tri-2020
  • Argument 1 : Dataset name
  • Result : MBTiles file is created in directory /calysteau/dataset/

Available datasets

./download.sh https://www.calysteau.fr/data/Geoservices/admin-express.7z fr-admin-express
./download.sh https://files.georisques.fr/di_2020/tri_2020_sig_di.zip fr-tri-2020-full
  • Géorisques Metropolitan France TRI (TRI zones and municipalities concerned only)
./download.sh https://www.calysteau.fr/data/Georisques2020/georisques_tri_2020.zip fr-tri-2020
./download.sh https://www.calysteau.fr/data/CodesPostauxFrance/geoclip_codes_postaux_V5.zip fr-zipcode-v5
./download.sh https://www.calysteau.fr/data/CodesPostauxFrance/laposte_hexasmal.zip fr-zipcode-laposte
./download.sh https://naciscdn.org/naturalearth/packages/natural_earth_vector.zip world-naturalearth
./download.sh https://www.calysteau.fr/data/HighSeasMaster/HighSeasMaster.zip world-highseasports
./download.sh https://www.calysteau.fr/data/MileHighClub/MileHighClub.zip world-airports

About

A Docker based solution to download and prepare geo data

Resources

License

Stars

Watchers

Forks

Packages

No packages published