Skip to content

t08094a/Hydrantenplaene

Repository files navigation

Hydrant maps

Hydrant maps for village Ipsheim (en) or Ipsheim (de) based on printmaps-osm.

Based on OpenStreetMap

All fire hydrants are implemented as features in OpenStreetMap. A rendered map can be seen at Hydrants Ipsheim.

Printmaps

The maps are rendered With help of printmaps-osm. The CLI client is stored as Linux amd64 binary in ./bin. For other operating systems you can find binaries at CLI-Clients.

Shared files

All shared files are referenced as symbolic links to each partial map.
If the symlinks are broken, they could be restored by

cd <partial map folder>

ls -d1 ../shared/* | while read f; do
  ln -sf "$(cat $f)" "$f"
done

How to position scale bar

Get start position with help of uMap. Create a marker at interested position with Ctrl+M and copy the values from coordinates.
With theese coordinates we could create the relevant data:

Usage:
  printmaps bearingline  lat       lon      angle length  linelabel     filename

$ printmaps bearingline  51.98130  7.51479  90.0  1000.0  "1000 Meter"  scalebar-1000

Install Python requirements

python3 -m venv venv # If not created, creating virtualenv
source ./venv/bin/activate # Activating virtualenv
pip3 install -r ./requirements.txt # Installing dependencies
deactivate # When you want to leave virtual environment

Generate map

printmaps ...

  • optional: edit 'map.yaml'
  • optional: create (only for the first time to create a map.id file)
  • update
  • optional: upload (if additional files changed)
  • order
  • state ... state
  • download

If the last creation is long ago, the map id gets deleted on the backend system. In that case the map.id file should be re-created: rm map.id && printmaps create

Releases

No releases published

Packages

No packages published

Languages