Opened 9 years ago

Closed 9 years ago

#3036 closed enhancement (fixed)

Pass edit coordinates via command line arguments

Reported by: KAMiKAZOW Owned by: cbro@…
Priority: major Milestone:
Component: merkaartor Version:
Keywords: Cc:


If the "merkaartor --help" command is correct, Merkaartor can't be told to download specific coordinates for manual editing via command line.

Considering that there are several virtual globe applications out there that use OSM, it would be great if those could have the ability for an "Edit" button that launches Merkaartor with the currently opened region to edit.

Change History (2)

comment:1 Changed 9 years ago by KAMiKAZOW

For the sake of compatibility, it would make sense to adopt JOSM's command line syntax (quoting from josm --help):

[--download=]minlat,minlon,maxlat,maxlon Download the bounding box [--download=]<url> Download the location at the url (with lat=x&lon=y&zoom=z) [--download=]<filename> Open file (as raw gps, if .gpx)

Instead of --download=<bbox> you may specify osm://<bbox>

comment:2 Changed 9 years ago by Chris Browet

Resolution: fixed
Status: newclosed

Note that as of recently (and in 0.16.0), you can pass a JOSM remote url on the command-line (with the osm: protocol), i.e.

merkaartor osm://<whatever>/load_and_zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&select=node413602999

merkaartor also implement a local server (like JOSM) on port 8111. That fulfills your "edit" request. You have to enable it in "Preferences", though.

Note: See TracTickets for help on using tickets.