Quantcast
Channel: OpenGeofiction diary entries
Viewing all articles
Browse latest Browse all 2382

Level0 Editor OR howto mass edits

$
0
0

Behold, here comes my first actually quite useful diary entry...

I implemented a Level0 Editor on my server (Thanks Thilo for the DNS-Entrys) and wanted to share with you how it can be useful.

How to use the Level0 editor to rename things

So, who doesn't know this, you set up a something, in my example a town, define it's adminstrative boundarys, name roads after it and use the name in quite a lot of other things. After a while you think that this name doesn't really fit anymore and you decide it needs a new one. The previous way was to wrangle with the bare .osm-files of JOSM, but now there is a much better way!

Step 1: Using Overpass to find stuff that contains the name

First you need to identify where the name is used so you zoom in on your country on the Overpass-Turbo, here you insert the name like this: ogf1.png

The name: tells the overpass API to look inside all name keys for your name, in my case it would find "Stadtwald Allerswarte" as well as "Allerswarter Verkehrsgesellschaft".

You make your query via the "build query"-button marked yellow in my picture. Next step is to make change it from exporting json to xml, here we click on "Export" and then on "JOSM". The overpass-page will kindly offer to fix the query, which we happily accept.

Your finished query will look like this: Who even reads these

Step 2: Exporting

You now run your query via the "Run"-Button in the top left corner, your results should kinda look like this: ogf2.png But your results obviously vary.

Next thing to do is to export the generated data via the "Export"-Button, a popup will appear, here you click on raw data. The page will offer you an export.osm which you save wherever you desire.

Step 3: Level0

So far, so good. Next thing you do: Visit http://nomi.opengeofiction.net/L0/ and log in. It will take you to the OGF page where you will have to allow the Level0 editor to read your settings (Username) and to alter the map (this is obviously what we are here for...). The Level0 Editor never sees your password, it all works thanks to the MAGIC of OAuth.

After you logged in you upload your previously generated .osm file and add it to the Editor. Results should look like this:

If you read this and send me a PM, i'll send you 0.0000001 BTC!

Now you can either edit the data directly in the field, or copy it out there and replace it all with a word processor of your choice (and obviously paste it back in afterwards). After you are done you write something useful in the Changeset comment-Field and press the Upload to OGF-Button. After a few minutes for replication between the OGF-Servers you can run the Overpass Query again to check if you missed anything.

You can use the Level0 for a lot more of things, this is just one of them, head over to the OSM-Wiki for more information about it.

Happy Mapping (And renaming)

Martin


Viewing all articles
Browse latest Browse all 2382

Trending Articles