Skip to content

Commit 0b4a4ae

Browse files
docs: add BDTOPAGE section to README with hydrographic data processing instructions
1 parent f33ae72 commit 0b4a4ae

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,49 @@ This job relies on archive shape files from IGN and the [mapshaper](https://gith
102102

103103
https://geoservices.ign.fr/documentation/diffusion/telechargement-donnees-libres.html#bdpr
104104

105+
## BDTOPAGE
106+
107+
This job relies on :
108+
109+
- [7z](https://www.7-zip.org/download.html) to extract archive shape files from eaufrance
110+
- [mapshaper](https://github.com/mbloch/mapshaper) to convert shape files to GeoJson
111+
- [tippecanoe](https://github.com/felt/tippecanoe) to generate MBTiles (optional)
112+
113+
114+
115+
BDTOPAGE contains hydrographic data for the french territory and includes the following layers:
116+
- Watercourses
117+
- Water bodies
118+
- Elementary surfaces
119+
- Hydrographic sections
120+
- Hydrographic nodes
121+
- Land-sea boundaries
122+
- Hydrographic basins (medium scale)
123+
- Topographic watershed (medium scale)
124+
125+
126+
To select specific layers to process you can setup the `TOPAGE_LAYERS` environment variable with a comma-separated list of `<layer_name>=<output_name>` entries like this:
127+
128+
```bash
129+
export TOPAGE_LAYERS="BassinHydrographique_FXX=hydrographic-basins,BassinVersantTopographique_FXX=topographic-watersheds"
130+
```
131+
132+
Run the job with:
133+
```
134+
krawler --jobfile ../k-atlas/jobfile-bdtopage.js
135+
```
136+
137+
bash script to generate mbtiles from bdtopage data:
138+
```bash
139+
./generate-bdtopage-mbtiles.sh <output_dir> <geojson_file> <layer_name(optional)>
140+
```
141+
142+
Two directories will be created :
143+
- `bdtopage-output/geojson/` containing one geojson file per layer
144+
- `bdtopage-output/mbtiles/` containing one mbtiles file per layer
145+
- `bdtopage-output/shapefiles/` containing the original shapefiles unzipped
146+
- `bdtopage-workdir/` temporary working directory
147+
105148
## Development
106149

107150
To debug you can run this command from a local krawler install `node --inspect . ../k-atlas/jobfile-bdpr.js`.

0 commit comments

Comments
 (0)