#8089 closed enhancement (fixed)
"nautical mile" (NM) as new system of measurement
| Reported by: | jjaf.de | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | tested |
| Keywords: | nautical mile Seemeile NM sm nmi | Cc: |
Description
In `/org/openstreetmap/josm/gui/NavigatableComponent.SystemOfMeasurement
there is ...
public static final SystemOfMeasurement METRIC_SOM = new SystemOfMeasurement(1, "m", 1000, "km"); public static final SystemOfMeasurement CHINESE_SOM = new SystemOfMeasurement(1.0/3.0, "\u5e02\u5c3a" /* chi */, 500, "\u5e02\u91cc" /* li */); public static final SystemOfMeasurement IMPERIAL_SOM = new SystemOfMeasurement(0.3048, "ft", 1609.344, "mi");
... but no "nautical mile" http://de.wikipedia.org/wiki/Seemeile which could be handy for maritime mapping like OpenSeaMap. To complete it with the JOSM-system of two measurements kbl http://de.wikipedia.org/wiki/Kabell%C3%A4nge could be used:
10 kbl = 1 NM = 1852 m
Maybe there should be something like the following to implement this:
public static final SystemOfMeasurement NAUTICAL_MILE_SOM = new SystemOfMeasurement(185.2, "kbl", 1852, "NM"); public static final Map<String, SystemOfMeasurement> SYSTEMS_OF_MEASUREMENT; static { [...] SYSTEMS_OF_MEASUREMENT.put(marktr("Nautical"), NAUTICAL_MILE_SOM); }
Attachments (0)
Change History (7)
comment:1 by , 13 years ago
follow-up: 4 comment:3 by , 12 years ago
Good. But applying it as system_of_measurement by default seems a bit rought. I don't know why it just changed from km to nautical mile!
comment:4 by , 12 years ago
Replying to anonymous:
Good. But applying it as system_of_measurement by default seems a bit rought. I don't know why it just changed from km to nautical mile!
This shouldn't happen, did you install any plugins lately?
comment:5 by , 12 years ago
Oh yes it does, and the least that can be done to spare everyone who lands here ½h search is to add:
Go to Edit menu, then Preferences (or press F12).
Click on the third icon down the side of the preferences window.
Then there's an option for System of measurement, you can set that to Metric / Imperial etc.
Thanks to Vclaw after my adding "in the Map Projection" tab.
comment:6 by , 12 years ago
Maybe you clicked on the display in bottom statistics line, which also changes the system of measurement?
comment:7 by , 12 years ago
Nice to follow up on this, thanks.
You mean the "length of segment being drawn" icon in that sort of status line.
That may well be and is even probable because I clicked around to try to find out how that measurement tool was working (didn't figure at first that this one only measures what you draw (OK with me)). I didn't notice a unit change.
Now I let you conclude after these two amazement reports.
I didn't even realize that "kbl" and "NM" were units and I was convinced of facing garbage.
Could something easy be done to prevent changing that unit inadvertently?



+1 Nautical measures can be a good aid and support in many cases, specially since I have a nautical background and do some mapping related to seamarks, sea borders, etc.