External Tools

From MOBAC Wiki
Jump to: navigation, search

Starting external tools from within MOBAC

Create a new menu with items you must create a subdirectory from MOBAC Root .../tools and create a xml file for each new menu item like this:

tool_1.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExternalTool>
 <name>Name shown in tools menu</name>
 <command>cmd.exe /c start .\tools\mybatch.cmd</command>
 <parameters>MIN_LON MIN_LAT MAX_LON MAX_LAT MIN_ZOOM MAX_ZOOM MAPSOURCE_NAME MAPSOURCE_DISPLAYNAME NAME_EDITBOX </parameters>
 <debug>true</debug>
</ExternalTool>
  • MAX_LAT, MIN_LAT, MAX_LON, MIN_LON, //Corners off the selected area
  • MIN_ZOOM, MAX_ZOOM, // minimum and maximum of selected zoom levels check-boxes
  • MAPSOURCE_NAME, MAPSOURCE_DISPLAYNAME, // Currently select map source internal or display name
  • NAME_EDITBOX // content of the edit box "Name" in the side panel "Atlas Content"

tool_2xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExternalTool>
 <name>Name shown in tools menu</name>
 <command>[path]program.exe</command>
 <parameters>MIN_LON MIN_LAT MAX_LON MAX_LAT MIN_ZOOM MAX_ZOOM MAPSOURCE_NAME MAPSOURCE_DISPLAYNAME NAME_EDITBOX </parameters>
 <debug>true</debug>
</ExternalTool>

...and so on. It is possible to create your own maps with tools like OSMFILTER,OSMCONVERT,MAPERITIVE...etc