JOSM/Plugins/ExtTools

From OpenStreetMap Wiki
Jump to: navigation, search

ExtTools plugin allows to use external scripts in JOSM

History

ExtTools is generalization of Fuzzer plugin which uses external python script for tracing satellite imagery. With ExtTools you can create your own tools that uses external scripts.

Usage

The plugin adds the new icon to JOSM preferences:Ext tools.png. There one can create tools that use external scripts. To do this, click on "New tool" button and input tool name and command line. Tool scripts should be placed into %AppData%\JOSM\plugins\ext_tools on Windows or into ~/.josm/plugins/ext_tools on *nix.

Currently following parameters in command line are available:

Parameter Description
{lat} Latitude of clicked point
{lon} Longitude of clicked point
{PPD} Zoom of current map view in PPD(Pixel per degree)
{TZoom} TMS-Zoomlevel (added in version 25274) WARNING: This can be a float value (13.2)

Output of the script must be a regular JOSM .osm file. Currently plugin supports only adding new objects so output file must contain only objects with negative IDs.

Features

Personal tools
Namespaces
Variants
Actions
site
Toolbox