I was trying to build some presets for JOSM (https://josm.openstreetmap.de/) few days back and thought it would be a good idea to automate the process. Read the some documentation that was available from http://josm.openstreetmap.de/wiki/TaggingPresets. The defaultpresets.xml contained in the JOSM package gave some very useful information in writing the script.
The idea was to have a text file with the preset data and generate the XML file using a script. I finally settled on a pipe separated file format with embedded key value pairs. When finished, it could generate presets with key value pairs, drop downs and lists.
The scripts and sample files are released under GPLv3 and available at https://github.com/primejyothi/JOSMPresetBuilder
Hope someone will find it useful.
The idea was to have a text file with the preset data and generate the XML file using a script. I finally settled on a pipe separated file format with embedded key value pairs. When finished, it could generate presets with key value pairs, drop downs and lists.
The scripts and sample files are released under GPLv3 and available at https://github.com/primejyothi/JOSMPresetBuilder
Hope someone will find it useful.
No comments:
Post a Comment