<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" color=#800000><SPAN class=697373518-06122006>No 
one answered this question, so I am resubmitting:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=697373518-06122006>----------------</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=697373518-06122006><FONT 
size=2>
<P>Hi,</P>
<P></P>
<P>I am trying to write a mapfile that will use javascript to dynamically sent 
EXTENT values to a .map file via POST parms. Concretely, when I select a county 
in MN from a dropdown, I want to send the appropriate values for the EXTENT bbox 
so that the selected county is rendered in it's specific bbox.</P>
<P></P>
<P>The beginning of my mapfile looks like this:</P>
<P>---</P>
<P>MAP</P>
<P>IMAGETYPE PNG</P>
<P>EXTENT %xmin% "%ymin%" "%xmax%" "%ymax%"</P>
<P>SIZE 880 660</P>
<P>...</P>
<P>---</P>
<P></P>
<P>the url i issue is:</P>
<P></FONT><A 
href="http://localhost/cgi-bin/mapserv.exe?map=C%3A%5Cms4w%5CApache%5Chtdocs%5Ctest_postgis2%5CDynSQL_ByCounty%5Cmap.map&amp;map_web_imagepath=C%3A%5Cms4w%5CApache%5Chtdocs%5Ctmp%5C&amp;mode=map&amp;xmin=439430.71875&amp;ymin=4959166&amp;xmax=486045.78125&amp;ymax=5010473.5&amp;coid=27"><U><FONT 
color=#0000ff 
size=2>http://localhost/cgi-bin/mapserv.exe?map=C%3A%5Cms4w%5CApache%5Chtdocs%5Ctest_postgis2%5CDynSQL_ByCounty%5Cmap.map&amp;map_web_imagepath=C%3A%5Cms4w%5CApache%5Chtdocs%5Ctmp%5C&amp;mode=map&amp;xmin=439430.71875&amp;ymin=4959166&amp;xmax=486045.78125&amp;ymax=5010473.5&amp;coid=27</U></FONT></A></P><FONT 
size=2>
<P></P>
<P></P>
<P>the error i get is:</P>
<P>getDouble(): Symbol definition error. Parsing error near (%):(line 7) </P>
<P></P>
<P>line 7 is the EXTENT line.</P>
<P></P>
<P>So, my questions are:</P>
<P>1. Does MapServer support variable substitition for extent values? If so, 
what am i doing wrong? If not, how do I dynamically set the extent for 
dynamically selected polygons with different bboxes?</P>
<P></P>
<P>2. Is there a better way to set the bbox rather than send it precalculated 
values in a GET? It seems natural that I should be able to leave the EXTENT line 
off and a default of the smallest bounding box that works for the returned 
geometry would be returned as a default.</P>
<P></P>
<P>tia,</P>
<P>Matt</P></FONT></SPAN></FONT></DIV></BODY></HTML>