Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Pass edit coordinates via command line arguments #3036

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Pass edit coordinates via command line arguments #3036

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: KAMiKAZOW
[Submitted to the original trac issue database at 1.23am, Sunday, 6th June 2010]

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.

@openstreetmap-trac
Copy link
Author

Author: KAMiKAZOW
[Added to the original trac issue at 10.23pm, Sunday, 6th June 2010]

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=] Download the location at the url (with lat=x&lon=y&zoom=z)
[--download=] Open file (as raw gps, if .gpx)

Instead of --download= you may specify osm://

@openstreetmap-trac
Copy link
Author

Author: Koying
[Added to the original trac issue at 12.48am, Monday, 7th June 2010]

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:///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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant