Menu

#173 command line API

open
nobody
5
2017-01-04
2010-12-03
No

It would be wonderful to use MOBAC as a png generator for some other apps I have in mind.
If I could run it on the command line, feeding in the map source name, zoom factor, selection window coords, format and output name, that would do the trick.
Has this already been done?

Discussion

  • Felix Sipma

    Felix Sipma - 2017-01-04

    I would also be interested in a cli interface, so that I can do a mass convertion of a lot of maps.

     
  • r_x

    r_x - 2017-01-04

    The available command-line options are described in the wiki: http://mobac.sourceforge.net/wiki/index.php/Command-line

    If you want to process certain regions you have to provide a correspondant mobac-profile xml file.

     
  • Felix Sipma

    Felix Sipma - 2017-01-04

    The command line version is not very user friendly right now, for example if you want to use mobac to convert a format to another... What I had in mind would be a

    mobac convert --from ozyexplorer --to osmand-sqlite --output MyCustomMap.sqlitedb --name MyCustomMap my-map.png my-map.map
    

    equivalent.

    mobac download --from osm --to osmand-sqlite --name MyCustomMap --output MyCustomMap.sqlitedb
    

    would be another useful subcommand.

     
  • r_x

    r_x - 2017-01-04

    MOBAC is not a converter. Only some atlas formats can be used as input, e.g Oziexplorer can't be used at all. Only atlas formats mentioned as input for a xustom xml map source can be used:
    http://mobac.sourceforge.net/wiki/index.php/Custom_XML_Map_Sources

     

Log in to post a comment.