Skip to content

Parts of Woods and Water disappears on z14 #847

Open

Description

@gl0om

Some tiles loses wood and water polygons on z14.
At the same time, adjacent tiles usually do not lose these polygons. As the result there's a hole in the middle of the forest the size of one or two tiles.

I'm trying to debug this issue with such configs:

The complete config file code

{

	"layers": {
		"landcover":         { "minzoom": 6, "maxzoom": 15 }
	},
	"settings": {
		"minzoom": 4,
		"maxzoom": 14,
		"basezoom": 14,
		"include_ids": false,
		"name": "Tilemaker example",
		"version": "0.1",
		"description": "Sample vector tiles for Tilemaker",
		"compress": "gzip",
		"high_resolution": true
	}
}

The complete Lua file code

function way_function()
	if Find("natural")=="wood" then
		Layer("landcover", true)
		MinZoom(8)
		Attribute("class", "wood")
	end

end

Build

docker run -it --rm --memory="4g" -v $(pwd):/data -w /data ghcr.io/systemed/tilemaker:master /data/resources/region.osm.pbf --bbox 37.249146,55.802439,37.989349,56.030238 --output /data/resources/region.pmtiles --config /data/resources/config-example.json --process /data/resources/process-example.lua --store /data/resources/tmp

tilemaker1.mov
tilemaker2.mov

This issue was reproduced with full planet pbf and with a small region. This happens to water polygons too. Disappearing parts of Woods and Waters are always same between builds.

You may see this here: z14 lat: 55.85876 lng: 37.72924

Activity

  1. SomeoneElseOSM commented on Aug 28, 2025

    @SomeoneElseOSM
    Contributor

    Just to throw in something that may be an example of something similar, part of one of the polygons is missing from a tile at https://map.atownsend.org.uk/vector/index_svwd01.html#19/54.2651968/-0.9640996 . The underlying green forest https://www.openstreetmap.org/way/763248810#map=20/54.2651970/-0.9641000&layers=V is shown but the mixed tree cover of the wood https://www.openstreetmap.org/way/846976779#map=20/54.2651959/-0.9640986&layers=V is not.

    The top of the problem area corresponds to a tile boundary, but unfortunately it's not large enough to really see at vector zooms < 14. For style and spec see https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/tree/main/resources, but note that names and destinations etc. are parameterised.

  2. oberhamsi commented on Sep 19, 2025

    @oberhamsi

    this can also be observed with the shortbread versatiles style near athens, greece, at zoom=8

    one tile only has partial ocean. the original shapefiles for the ocean are correct.

    https://shortbread-tiles.org/styles/#versatiles

  3. dktue commented on Oct 28, 2026

    @dktue
    Contributor

    I tested both reports with the config and Lua from the first post (landcover, high_resolution: true), on current master (4e0f03d) and on 0ebc1d7 (master as of the original report).

    Original report (Moscow bbox): with today's Geofabrik central-fed-district extract I could not find any tile-sized holes at z14 in the bbox, on either build, in memory or with --store. Tile 14/9909/5113 (the location given) is fully covered. The OSM data may have changed since August 2025. If you still see it with current master and current data, the OSM id of a missing polygon would help.

    Second report (way 846976779, unchanged since 2020): reproduces. The part of the way in z14 tile 8148/5240, just across the tile edge (about 0.0125% of the tile), is dropped on master and on 0ebc1d7:

    build way 846976779 in 14/8148/5240
    master 4e0f03d missing
    master + #933 present (area matches the OSM geometry)
    master + #941 (coordinates_geom.cpp part) present (same result as #933)
    master + #946 missing

    So this looks like the ring-collapse-on-scaling problem that #933 and #941 both address. On the Moscow bbox, #933 and #941 also give identical output: compared to master they restore wood in 6 z14 tiles, up to 3.8% of a tile (14/9917/5115).

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions