[mapserver-users] Need to understand CGI mapext=shapes

Burgholzer, Robert (DEQ) Robert.Burgholzer at deq.virginia.gov
Tue Nov 8 10:42:59 EST 2011


I wish to have a map displayed with the extent automatically zoomed to the extent of the active layers, my thought was that using "mapext=shape" or "mapext=shapes" in the CGI URL would do the trick, but it seems to be only interested in the extent that is in the .map file (as reported in the mapserv log, see below).  Any help would be appreciated.

Thanks!

URLCGI request:
http://deq2.bse.vt.edu/cgi-bin/mapserv?map=/var/www/html/wooommdev/nhd_tools/nhd.map&layer=nhd_fulldrainage&mode=map&mapext=shapes 

Relevant log info (I think):
[Tue Nov  8 10:40:15 2011].745182 msPostGISLayerWhichShapes query: select encode(ST_AsBinary(ST_Force_2D("shape"),'NDR'),'hex') as geom,"oid" from (select a.the_geom AS shape, a.comid, gid as oid from nhd_fulldrainage as a) AS foo where shape && GeomFromText('POLYGON((-78.8392602660197 38.3490447998047,-78.8392602660197 38.7100791931152,-78.2368658326131 38.7100791931152,-78.2368658326131 38.3490447998047,-78.8392602660197 38.3490447998047))',4269) and (comid in (4505206))
[Tue Nov  8 10:40:15 2011].867114 msPostGISLayerWhichShapes got 0 records in result.

Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/



More information about the mapserver-users mailing list