Level0 Editor OR howto mass edits

Posted by martinum4 on 4 March 2017 in English (English)

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 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)


Location: Domäne Mittelhof, Grenzermarkgemeinde, Markkreis, Regierungsbezirk West-Westannex, Westannex, United Republic of Lapistan and Azurea

Comment from Luciano on 4 March 2017 at 00:48

Indeed I am intrigued by this. There have been times when I wanted do "find-replace" operations on my OGF data. This offers exactly that.

I am confused by one thing: I thought we didn't have OAuth on OGF? Has this changed?

Hide this comment

Comment from martinum4 on 4 March 2017 at 00:56

Yes, we apparently have OAuth now, but i haven't tested it in JOSM, only here with the Level0.

Hide this comment

Comment from martinum4 on 4 March 2017 at 01:02

General Question towards all future commenters, what should my next diary entry about, the options are: * Routing and what tag combinations to use for it * How to properly set up states, countys, cities and suburbs regarding nominatim * How to find more stuff with overpass

These are mainly the things i'm interested in right now, but if you have another topic just throw it in here, i might get back on it.

The other next BIG project i'll tackle is either OGFRM (Opengeofiction-RailwayMap, just like OpenRailwayMap for the real world) or taginfo, but i'm not sure yet

Hide this comment

Comment from eklas on 4 March 2017 at 06:15

This is so cool, especially to someone like me with no computer skills. I might have to learn (how) to use this, the Mediadata extension and stuff.

I honestly have no idea what 'routing' is and neither did i know you have to tag differently for nominatim, so I'd like to read these.

Thanks for the work.

Hide this comment

Comment from Luciano on 4 March 2017 at 10:04

I would be interested to learn more about:

  • How to properly set up states, countys, cities and suburbs regarding nominatim

So that's my vote. I have not had many pleasant experiences trying to use nominatum (just as an "end user" on the real world OSM data), so I have always been somewhat skeptical that it is really that useful or user-friendly. I have always assumed this is due to poor data quality in the real-world areas where I've been interested in finding information.

I'd be curious to see what it can do if the data is properly configured.

Hide this comment

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

  • Image

    ![Alt text](URL)

Login to leave a comment