Skip to content

attribute_function: how to go from geojson -> shp -> mbtiles #552

Answered by systemed
BenOnTrack asked this question in Q&A
Discussion options

You must be logged in to vote

I believe I'm not sure to fully understand this part of this sentence ...as already filtered by source_columns, and the layer name....

See https://github.com/systemed/tilemaker/blob/master/docs/CONFIGURATION.md#shapefiles, in particular:

You can specify attribute columns to import using the source_columns parameter, and they'll be available within your vector tiles just as any OSM tags that you import would be. To import all columns, use "source_columns": true.

In other words, the source_columns parameter in the JSON controls which attributes from the shapefile are "let through". If you want attribute_function to be able to access all attributes, you need to set "source_columns": true.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@BenOnTrack
Comment options

@systemed
Comment options

Answer selected by BenOnTrack
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants