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