Skip to content

Country borders disappear at low zoom levels #144

Closed

Description

@hroest

Bug description
Some country borders disappear at high zoom level (z=3) while others dont.

Country boundaries should be displayed at all zoom levels.

Repro Steps
Steps to reproduce the behavior:

  1. Go to https://www.openhistoricalmap.org/#map=4/14.43/15.07&layers=O
  2. Compare with https://www.openhistoricalmap.org/#map=3/18.31/20.48&layers=O
  3. See error

Screenshots & URL
Countries with borders:
image

Now at zoom=3, most African countries and the Ottoman empire is gone (strangely American states are still there)
image

Activity

  1. geohacker commented on Aug 25, 2020

    @geohacker

    This is strange one @hroest, thank you for catching. I looked at the tiles closely and realized that it's coming from tile 2/2/1. The tile server throws this error 2020/08/25 15:16:00 map.go:263: err fetching tile (z: 2, x: 2, y: 1) features: ERROR: Not a valid date 1917, 4, 31 (SQLSTATE P0001)

    I will dig into this further and find the feature that has invalid date.

  2. self-assigned this
    on Aug 25, 2020
  3. geohacker commented on Aug 27, 2020

    @geohacker

    I've identified two features that are causing this problem:

    @danrademacher @jeffreyameyer just to put this on your radar. I think the immediate fix would be to just edit the feature attribute and things would get fixed. But this might need further validation at the editor side.

    @danrademacher I don't know much about the date parsers, perhaps they can handle this a bit more gracefully so tiles don't break?

    cc @batpad

  4. geohacker commented on Aug 27, 2020

    @geohacker

    Fixed the dates through two changesets 1 and 2

    Will close once the tiles are updated properly.

  5. hroest commented on Aug 27, 2020

    @hroest
    Author

    @danrademacher I don't know much about the date parsers, perhaps they can handle this a bit more gracefully so tiles don't break?

    that sounds like a good idea, potentially should be tracked in another issue?

  6. geohacker commented on Aug 28, 2020

    @geohacker

    There are more:

    tiler-osm=# SELECT osm_id from osm_admin_areas where tags->'end_date' = '1917-04-31';
      osm_id
    ----------
     -2660404
     -2660400
     -2660428
    
  7. geohacker commented on Aug 28, 2020

    @geohacker

    Few more:

    tiler-osm=# SELECT osm_id from osm_admin_areas where tags->'end_date' = '1911-09-31' or tags->'start_date' = '1911-09-31';
      osm_id
    ----------
     -2660405
     -2660407
    
  8. geohacker commented on Aug 28, 2020

    @geohacker
  9. hroest commented on Aug 28, 2020

    @hroest
    Author

    @danrademacher I don't know much about the date parsers, perhaps they can handle this a bit more gracefully so tiles don't break?

    what about some heuristics, if the date cannot be parsed then maybe try to parse only the first four characters (the year presumably) and retry? that would at least get the year right

  10. geohacker commented on Sep 1, 2020

    @geohacker

    This issue is fixed. I've opened a ticket to track the date handling.

  11. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions