I'm building a mapping application, where shapes and colours go along this path:
PostGIS > Mapserver > TileChache > OpenLayers
Everything works fine when all parameters are hard coded. But I need users to be able changing paramaters, for example, select features with population greater, than "X", and area under "Y".
I presume, parameters can be passed to Mapserver as a query, attached to mapfile, like this:
.../mapfile.map?area=123&population=456
But I can't find a way to pass that through TileCache. For now - the only workaround I see - is to define a separate layer for any possible combination of X and Y in tilechache.cfg, which does not seem to be a good way. And there must be some limit for number of layers defined in tilechache.cfg
Any solutions?