Skip to content

Commit

Permalink
Began work on the tag translator for Zoomstack
Browse files Browse the repository at this point in the history
  • Loading branch information
citizenfish committed Jan 31, 2024
1 parent a1a8533 commit c887068
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
11 changes: 11 additions & 0 deletions build/get_max_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os
import sys
sys.path.append(os.path.abspath('lib'))
from tools import GetMaxOSMID

filename=sys.argv[1]
mx = GetMaxOSMID()
mx.apply_file(filename)
print(f'Highest ID = {mx.max_id}')


4 changes: 2 additions & 2 deletions docs/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ sudo apt-get install osmium-tool gdal-bin libgdal-dev
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
ogrinfo --version
pip install GDAL-<VERSION>
pip install GDAL==<VERSION>
pip install -r requirements.txt
sudo apt-get install default-jre
sudo apt-get install osmosis
suod apt-get install osmctools
sudo apt-get install osmctools
```

7 changes: 7 additions & 0 deletions docs/prototyping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Manual process

```bash
ogr2ogr -f GPKG contours.gpkg OS_Open_Zoomstack.gpkg contours
python build/get_max_id.py /Volumes/Extreme\ Pro/mapping_data/osm/great-britain-latest.osm.pbf
ogr2osm /Volumes/Extreme\ Pro/mapping_data/zoomstack/contours.gpkg -f --pbf --no-memory-copy -e 27700 -o /Volumes/Extreme\ Pro/mapping_data/zoomstack/contours.osm.pbf -t translations/bikepack_translator.py --id 11571092201
```

0 comments on commit c887068

Please sign in to comment.