Skip to content

Missing Sudan boundaries #1250

Closed
OpenHistoricalMap/ohm-deploy
#669

Description

@1ec5

The 1956 and 2011 Sudan boundary relations are missing from the land_ohm_lines and land_ohm_centroids layers. For example, at this location, five features correspond to this way, but none of them go past 1958, even though the boundary line has been in continuous use into the present day.

Five features, none of them going beyond 1958.

The only thing that looks wrong is that the chronology relation lacks start and end dates, but I don’t think that would affect whether the member boundary relations show up in the tiles.

Originally reported in OSM World Discord.

Activity

  1. added theissue type on Jan 2, 2026
  2. Rub21 commented on Jan 2, 2026

    @Rub21
    Member

    I confirm that this relation https://www.openhistoricalmap.org/relation/2801037 is not appearing in the vector tiles.
    I checked the minutely replication files—the relation 2801037 is present in the minute file as modified:
    https://planet.openhistoricalmap.org/replication/minute/001/882/463.osc.gz, script to find it . The minutely replication system is working correctly and is emitting the data as expected.

    However, this relation is not present in the vector tile database. One thing to note: this replication file is unusually large—approximately 449 KB, whereas typical minutely diffs are usually under 100 KB. This size anomaly might be related to the import failure. I’m going to investigate further on the Imposm side to understand why this isn’t appearing in the vector tiles.

  3. Rub21 commented on Jan 5, 2026

    @Rub21
    Member

    I have been working on understanding why some boundaries were not being imported. I updated the data format and refreshed some outdated tags in imposm . After these changes, the boundary that was originally [missing]((https://www.openhistoricalmap.org/relation/2801037) for this issue now appears correctly in the tiler database, but while digging further I found other boundaries still do not appear.

    The relation https://www.openhistoricalmap.org/relation/2846275 (British Empire 1939-1940, type=boundary, admin_level=1, 1783 members) was not appearing in the PostgreSQL/PostGIS database. In contrast, the nearby relation https://www.openhistoricalmap.org/relation/2846273 (British Empire 1942-1943, similar tags, 1385 members) was imported correctly.

    Image

    At the same time, I created a filtered PBF containing only boundaries from the original planet extract, which produced a much lighter file with just boundary data, available at http://planet-staging.openhistoricalmap.org.s3.amazonaws.com/boundaries/boundaries_admin.osm.pbf. I ran an import using this file, and with this boundaries-only PBF both missing British Empire relations are now imported correctly, as well as relation 2801037 .This might also explain some of the other issues where certain objects are missing.

    This leads me to suspect that during the full data import Imposm may be running out of memory, causing some objects not to be imported. Right now we are using only a single Hetzner server for several services, including tiler-production and tiler-staging, so I am considering using a dedicated server with significantly more capacity specifically for the import process.

  4. Rub21 commented on Jan 9, 2026

    @Rub21
    Member
    • Before using a new, larger instance to import the data to tiler DB, I disabled the ohmx container since it’s another container that consumes a large amount of resources such as memory and CPU in the same server.
    • I’ve updated the imposm container with newer versions of Go, Python, and other dependencies.
    • I’ve removed the table generalization process for all layers. This is part of a strategic effort to reduce the load on imposm during import. As a replacement, I’ve created new hierarchical materialized views.

    With these changes, I ran the import again and confirmed that all administrative relations were successfully imported into the database.

    To verify whether all relations were included, I ran the following query:

    SELECT count(*) FROM osm_relation_members_boundaries WHERE member=201780625;
    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions