Skip to content

Set up a Level0 instance #472

Closed
Closed

Description

@1ec5

Level0 is a good alternative to JOSM for bulk editing. Instead of having to bend JOSM to your will using a script, Level0 will happily take the text input that you’ve already done text processing on. I’m no JOSM expert, but here are some things I’ve needed to do recently that are more difficult to do with JOSM than Level0:

  • Add a place POI to 1,172 boundary relations with the role label
  • Sort the 1,172 members of a chronology relation by start_date

These tasks are very unlikely in OSM but much more likely in OHM, where anything can be duplicated arbitrarily many times due to the time dimension.

Part of the problem is that JOSM uploads a full OSM XML file that includes any element referenced by other elements in the file, whereas these operations normally only require a sparse XML file that omits elements that are unchanged. The OHM API is unprepared for the extra hundreds of megabytes of overhead. I’ve been working around this issue by doing text processing on an OSM XML file before uploading it using JOSM, but Level0’s file format is a lot easier to process than XML.

Activity

  1. batpad commented on Oct 7, 2022

    @batpad

    This sounds great, thanks @1ec5 ! This seems like it should be relatively easy to setup.

    The source code for level0 is here: https://github.com/zverik/level0 and from the looks of it, should just require a change to the config to get it to point to the OHM API: https://github.com/Zverik/Level0/blob/master/www/config.php#L8

    @jeffreyameyer @danrademacher this seems like a pretty low lift. @Rub21 do you see anything here that seems like it might make it complex? We'd just need to make a Docker file that can run php, pull in the code, modify the config, and hope it all works :)

  2. added
    infrastructure
    on Dec 28, 2022
  3. cascafico commented on Jan 11, 2024

    @cascafico

    This sounds great, thanks @1ec5 ! This seems like it should be relatively easy to setup.

    The source code for level0 is here: https://github.com/zverik/level0 and from the looks of it, should just require a change to the config to get it to point to the OHM API: https://github.com/Zverik/Level0/blob/master/www/config.php#L8

    Anybody was able to set config.php for authentication?

  4. danrademacher commented on Mar 27, 2024

    @danrademacher

    Note that Level0 doesn't currently support OAUTH2

  5. moved this from Todo - Known Path to Parking Lot in OpenHistoricalMap Dev Planningon Mar 27, 2024
  6. 1ec5 commented on Apr 15, 2024

    @1ec5
    MemberAuthor

    Zverik/Level0#71 tracks OAuth 2 support.

    @Zverik FYI in case you’d prefer to set up an OHM instance on your own infrastructure.

  7. 1ec5 commented on Feb 13, 2025

    @1ec5
    MemberAuthor

    Zverik/Level0#71 tracks OAuth 2 support.

    This is done by the way, so this issue is unblocked.

  8. added theissue type on Mar 16, 2025
  9. Rub21 commented on Jul 22, 2026

    @Rub21
    Member
  10. 1ec5 commented on Jul 23, 2026

    @1ec5
    MemberAuthor
  11. moved this from Parking Lot to In Production in OpenHistoricalMap Dev Planningon Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Level0infrastructure

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions