3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
185 stars 55 forks source link

Make it easier to update JOSM presets #349

Open Gustry opened 3 years ago

Gustry commented 3 years ago

JOSM presets are released often, every months.

It would be nice to upgrade easily with a script or with CI

https://github.com/simonpoole/beautified-JOSM-preset/releases/tag/2.11.0

Gustry commented 3 years ago
#!/usr/bin/env bash

wget https://github.com/simonpoole/beautified-JOSM-preset/releases/download/2.12.0/vespucci_zip.zip -o /tmp/
unzip -o -d icons/josm/ /tmp/vespucci_zip.zip "*.png"
unzip -o -d JOSM_preset/ /tmp/vespucci_zip.zip "*.xml"
mv JOSM_preset/vespucci_preset.xml JOSM_preset/josm_preset.xml
mkdir /tmp/i18n/
unzip -o -d /tmp/i18n/ /tmp/vespucci_zip.zip "*.po"
zip -r /tmp/i18n.zip /tmp/i18n/
cp /tmp/i18n.zip .

I need to check between JOSM and Vespucci. The JOSM preset XML file is not in the ZIP where I can find PNG

Gustry commented 3 years ago

We need to add a mechanism to update i18n files when the XML is updated, otherwise, it won't be synchronized

Gustry commented 2 years ago

See https://github.com/3liz/QuickOSM/blob/master/QuickOSM/resources/JOSM_preset/directory.md