Open ArtOshchepkov opened 1 year ago
@ArtOshchepkov thanks for the suggestion. I wonder how widespread this is? If you are already doing it in PSQL, why not simply create an MVT-generating function instead of auto-discovering it from a table/view? If you have a function, you can implement any kind of a tile generation with any structure.
Another option might be to introduce a temporary query - i.e. the same process as done by the table auto-discovery could be parametrized -- so a user can provide a full SQL query with some well defined query parameters. This would require some thinking of how to add it to the config
TLDR
Handle different properties of json type having the same structure.
Story
I count crime & health indicators compared to
country
andstates
. I keep my data in json in PSQL like following:My Martin's config describes both jsonb variables:
Requesting the tile, I got only one indicator in the feature:
Instead, I'd like to see both features:
Or actual jsons
My suggestions
Other
may be connected to #550 #222
Thank you for your work!