azavea / tilegarden

Serverless raster and vector map tile generation using Mapnik and AWS Lambda
https://azavea.github.io/tilegarden/
Other
98 stars 7 forks source link

Feature/client side filtering #93

Closed mattdelsordo closed 6 years ago

mattdelsordo commented 6 years ago

Overview

This PR modifies the layer querying API to accept a JSON array rather than a comma-separated list of layer names, in order to allow for higher degrees of filtering to be done through the API. Filters applied via the API are templated around a layer's existing SQL query in the form of SELECT * FROM <existing query> WHERE <column> <operator> <value>. Multiple WHERE clauses can be strung together with AND and OR. The reasoning for these decisions is as follows:

Demo

filter-by-query-demo

Notes

Caveats:

Testing Instructions

Resolves #89