Generate Layer with Countries names #756
Replies: 4 comments 10 replies
-
Step 1: Is tilemaker emitting the data? If you are unsure, you can:
If you don't see the object in step 3, then tilemaker is not emitting anything. Put a If you see the object in step 3, but don't see the expected attributes in step 4, then tilemaker's emitting the shape, but not the attributes. If either case applies, further debugging will require that you also include the relevant portion of your |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick feedback.
I've been working with .mbtiles and can't find any 'debugging' tool that would be able to analyse the file without the need to generate a style.json.
I'll then try to output a .pmtiles to check if the data is actually output.
I'm not entirely sure about the .process file if I need to code anything in the 'node_function' but it doesn't look like I should since I'm requesting all tables from the initial .shp to be printed out.
It might as well be that the natural earth data I'm using is actually not including the name of the countries (but then it would mean that their description of the content of the file is wrong though...)
…On Sep 11, 2024, 08:43 +0900, Colin Dellow ***@***.***>, wrote:
Step 1: Is tilemaker emitting the data?
If you are unsure, you can:
1. output a .pmtiles file
2. open PMTiles Viewer and point it at your local PMTiles file
3. zoom in to the zoom level where you expect to see it - maybe disable other layers in the viewer to make it more obvious
4. enable show attributes option and hover over the tile
If you don't see the object in step 3, then tilemaker is not emitting anything. Put a print(...) in your attribute_function to see if it's even getting called.
If you see the object in step 3, but don't see the expected attributes in step 4, then tilemaker's emitting the shape, but not the attributes.
If either case applies, further debugging will require that you also include the relevant portion of your config.json -- the layers entry and the overall minzoom / maxzoom values.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, the process.lua file looks fine. If there's an issue it'll be in the config.json or the style file. This is what I see when I use the pmtiles inspector on that NE data, just passing through the data from the shapefile untransformed, as you are trying to do: Annoyingly, the inspector doesn't seem to sort the attributes, but |
Beta Was this translation helpful? Give feedback.
-
The remaining issue though is the way it's logged within the tiles - it looks like it's a polygon text rather than a node. So i'm stil convinced there's a better way to do ? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the ne_10m_admin_0_countries from Natural Earth Data, which is supposed to contain countries name (and ISO) according to the .dbf file.
I've added
"source_columns":true
in my tilemaker file .config while my tilemaker .process isand then create a style in my maplibre-gl style
but got nothing rendered... any hints ?
Beta Was this translation helpful? Give feedback.
All reactions