OHMapper (OpenHistoricalMap editor) plugin for JOSM. This is designed to facilitate editing of OpenHistoricalMap data using JOSM, and isn't going to be very useful for OpenStreetMap. So make sure you're signed up for OHM and pointed at OHM data.
Initially this is just a set of search/filter predicates on the "start_date" and "end_date" tags.
startsbefore
startsafter
endsbefore
endsafter
existsduring
mightexistduring
(when a range is given for "start_date" or "end_date"
the other predicates interpret the range as narrowly as possible; this
interprets the range as widely as possible.)Each takes a single date as its argument, which may be YYYY, YYYY-MM, YYYY-MM-DD... any of these formats essentially. That looks like, for example:
This is particularly useful in the "filter" pane. Since JOSM filters are negative, to see what just what might exist at any point in 1915, use "-mightexistduring:1915".
Download "ohmapper.jar" from a release and copy to your JOSM plugins directory. For a per-user location:
${HOME}/Library/JOSM/plugins
${HOME}/.josm/plugins
seems to get first priority;
${HOME}/.local/share/JOSM/plugins
also works (assuming your
{$XDG_DATA_HOME}
is normal).I've tested on Mac and Linux. If I start doing real UI features I might get my Windows VM running again. Feel free to submit issues if something is broken or find me on OpenHistoricalMap slack.
The release JARs are built by me (Al Dimond). For each ".jar" I will provide SHA sums and GPG signatures. To verify a SHA sum:
shasum -c ohmapper.jar.shasum
This verifies integrity of the JAR (as long as you trust me, GitHub, and my ability to keep my dev machines and GitHub account secure). I'll keep an independent store of release bits and checksums in case you trust some other means of contacting me more.
If you want to use GPG verification you can additionally be assured that the releases are built by someone with access to my keys, and that they aren't changing too often. You still have to trust GitHub a bit (that's where you'll download the public keys from initially) -- if you can chase me down by email or OSM Slack and establish some communication you trust I'll verify key IDs/signatures that way; by this point you should probably have the code reviewed in triplicate :-).
curl
.curl https://github.com/aldimond.gpg | gpg --install
.
gpg --verify ohmapper.jar.asc ohmapper.jar
.This is a bit rough for now but it's just the initial code dump -- it will get better soon :-). The basic plot is to check out JOSM source, copy our plugin into the JOSM plugin directory, then follow JOSM Plugin Development instructions.
You will need OpenJDK, Ant, and Subversion installed and working (links below or, preferably, consult your package manager).
Check out JOSM source into an empty directory outside this repo called "josm". Starting from this directory:
cd ..
svn co https://josm.openstreetmap.de/osmsvn/applications/editors/josm
Copy the "ohmapper" directory sitting next to this README file into the JOSM checkout, under "josm/plugins".
cd -
, thencp -r ohmapper ../josm/plugins/
IIRC you have to build JOSM core first:
cd ../josm
ant clean dist
Then you can build the plugin:
cd plugins/ohmapper
ant dist
cd ../..
(get back to "josm" dir)Copy the built plugin ("dist/ohmapper.jar") to your JOSM plugins directory (see here), run JOSM, and you'll be able to find the "ohmapper" plugin in the plugin page of preferences.