tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Parts of Woods and Water disappears on z14

Open gl0om opened this issue 3 months ago • 2 comments

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

https://github.com/user-attachments/assets/e32a6ddf-0280-4e68-b3f5-95afe6f32445

https://github.com/user-attachments/assets/9530c574-1bed-4ded-8559-5c4b9af1834d

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

gl0om avatar Aug 28 '25 10:08 gl0om

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.

SomeoneElseOSM avatar Aug 28 '25 11:08 SomeoneElseOSM

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

oberhamsi avatar Sep 19 '25 11:09 oberhamsi