Add whitelist functionality to osm2pgsql.make_clean_tags_func #1955
asciibeats
started this conversation in
Flex Recipes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use PostGIS and it's built-in function ST_AsMVT to provide my application client with tile data. My app is not a general purpose map and it uses only a specific set of tags. By whitelisting tag keys instead of blacklisting them i can be sure that nothing i do not need unnecessarily wastes any resources and i do not need to know every key there is and maintain a complete list.
Add this function to your flex config and call it with whitelist set to
true
to filter out tags with keys not present in the keys list. With whitelist set tofalse
or not set at all it behaves exactly like the built-in function.Look at the changes to the built-in function if you like.
Beta Was this translation helpful? Give feedback.
All reactions