Hi Dan, The ogcserver does not currently support url-based variable substitution in the query string, but this is something that could be added.
I'd need to take a look at the code (after the holidays :)) to scope whether templating XML (then loading from a string) would be easier than trying to have the variable trickle down to the actual mapnik.Datasource object. Both would require some solid coding to get working. Dane On Dec 22, 2010, at 3:34 PM, Dan Lyke wrote: > So assuming I can get my other issue with projections or whatever it is > in my WMSFactory versus code saving to render_to_file, the next thing I > want is to serve up more complex queries. > > For instance, I've been tossing stuff into PostGIS and playing with > queries like: > > BUFFERED_TABLE = "(SELECT DISTINCT(par_parcels.the_geom) FROM > par_parcels , hyd_usgsstrm WHERE ST_DWithin(par_parcels.the_geom, > hyd_usgsstrm.the_geom, 1)) AS the_geom" > > lyr.datasource = mapnik.PostGIS( > dbname='sonoma', > table=BUFFERED_TABLE) > > to show me all parcels that lie within 1 meter of a stream (and, yes, I > do need to think a little bit about my query efficiency, and that space > after "FROM par_parcels" is necessary because Mapnik is doing some sort > of regular expression matching that doesn't do well with multiple > tables). > > I'd like to pass elements of that query through from the parent web > page. So: How do I get to the CGI query string, or, if I have to go > that way, cookie information, from the BaseWMSFactory subclass? Do I > need to go straight to the environment and decode it myself? > > Thanks! > > Dan > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

