OpenLayers (at least as of 2.8) WFS requests always include the bbox, but that doesn't work if you specify a featureid (the two are defined as mutually exclusive). Here's a quick work-around for this problem using apache's mod_rewrite.
I'm using apache as an AJP proxy in front of geoserver, but there's no reason this wouldn't work with other WFS servers like mapserver, etc. Put this in the appropriate config file:
RewriteEngine On
RewriteCond %{QUERY_STRING} featureid=[^&]+ [NC]
RewriteCond %{QUERY_STRING} (.*)bbox=[^&]+(.*) [NC]
RewriteRule (.*) $1?%1%2 [P,L]
ProxyPass /geoserver/ ajp://localhost:8009/geoserver/
Saturday, September 26, 2009
Tuesday, September 8, 2009
Introducing....
In what may be a fit of foolishness, I thought I'd create this blog to post things that I find useful in my day-to-day work, coupled with the occasional random thoughts on a topic of interest, usually related to the world as I see it (however skewed that may be).
Expect to see stuff on Economic Development, Programming, and GIS work -- especially if it's related to open source GIS.
Expect to see stuff on Economic Development, Programming, and GIS work -- especially if it's related to open source GIS.
Subscribe to:
Posts (Atom)