Opened 2 years ago

#20406 new defect

Command Line Help: Update and additions

Reported by: Hb--- Owned by: team
Priority: trivial Milestone:
Component: Core Version: latest
Keywords: Cc:


The help text appearing in the terminal is partly outdated. Some info should be added to.

1) The openstreetmap URL scheme has changed to /#map=zoom/52/9. The old scheme lat=x&lon=y&zoom=z is bad because the command line breaks on the & parameter connectors. Also a shorter description for File/Open is suggested.

[--download=]<URL>           Download the location at the URL (with lat=x&lon=y&zoom=z)
[--download=]<filename>      Open a file (any file type that can be opened with File/Open)
--downloadgps=<URL>          Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS
[--download=]<URL>           Download the location at the OSM style URL
[--download=]<filename>      Open a file (any file type suitable for File/Open)
--downloadgps=<URL>          Download the location at the URL as raw GPS

2) Better show the debug possibilities, offspring from #20401. Announce the debug overlay in Mapview.

--debug                      Print debugging messages to console
--debug or --trace           Print debug info on Mapview and stdout

3) Change the example target areas to London with more variety in file names.

The current URL shown has 15 decimal places. Since r6453 it is generated by OsmUrlToBounds.getURL(43.2, 11.1, 13). I see a static URL example as better.

The searchfile on the ostertag server is 404. Furthermore I was not able to get an indirect search to work with a local file as stated in the wiki. This may be another bug.

java -jar josm.jar track1.gpx track2.gpx london.osm
java -jar josm.jar
java -jar josm.jar london.osm --selection=
java -jar josm.jar 43.2,11.1,43.4,11.4
java -jar josm.jar track1.gpx BigBen.jpg "london data.osm"
java -jar josm.jar
java -jar josm.jar 51.500,-0.126,51.502,-0.122 --selection="Big Ben"

4) Add an example line for proper logging including stderr

java -Duser.language=en -jar josm.jar --debug 1>logfile.txt 2>&1

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to Hb---
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.