<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=157110919-06122006><FONT face=Arial color=#0000ff size=2>Matt,
</FONT></SPAN></DIV>
<DIV><SPAN class=157110919-06122006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=157110919-06122006><FONT face=Arial color=#0000ff size=2>Can
you post the text of your map file? What is in line 8?</FONT></SPAN></DIV>
<DIV><SPAN class=157110919-06122006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=157110919-06122006><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Matt
Pettis<BR><B>Sent:</B> Wednesday, December 06, 2006 12:37 PM<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS]
Resubmit Question: ms4w, variable substitution, mapfile EXTENT object
attr<BR><BR></FONT></DIV>
<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&map_web_imagepath=C%3A%5Cms4w%5CApache%5Chtdocs%5Ctmp%5C&mode=map&xmin=439430.71875&ymin=4959166&xmax=486045.78125&ymax=5010473.5&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&map_web_imagepath=C%3A%5Cms4w%5CApache%5Chtdocs%5Ctmp%5C&mode=map&xmin=439430.71875&ymin=4959166&xmax=486045.78125&ymax=5010473.5&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></BLOCKQUOTE></BODY></HTML>