<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle19
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi MapServer Users,</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to embed a mapserver generated image inside an
ASP page and am having some problems.  I don’t even know if this is
possible, but here it goes.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to use the itemquerymap mode to produce a map of
the selected point.  I can get a map zoomed to the full extent of my map
file, but I can not get a map zoomed in on the point.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here is the image tag inside the asp page.  This
produces a map at full extent.</span></font></p>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'><img src="/mapserv35/cgi-bin/mapserv.exe?map=sitemap.map&mode=itemquerymap&layers=&qlayer=wqsites4-25-02&map_wqsites4-25-02_filter=%22<%=rsSiteMap("siteid")%>%22&item=SITEID&value=<%=rsSiteMap("siteid")%>"></span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>As soon as I put parameters in to zoom to the point, I get
an error. </span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><img src="/mapserv35/cgi-bin/mapserv.exe?map=sitemap.map&mode=itemquerymap&layers=&qlayer=wqsites4-25-02&map_wqsites4-25-02_filter=%22<%=rsSiteMap("siteid")%>%22&item=SITEID&value=<%=rsSiteMap("siteid")%>&mapxy=[shpmid]&buffer=50000"></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> I believe the reason why it does not work is because MapServer
isn’t replacing [shpmid] with it’s value.  I think this is a limitation
of the itemquerymap or I am simply using it wrong.  Has anyone done a similar
thing using only Mapserv CGI not mapscript?  Are there other modes I could
use to produce the same map?</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks,</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Brian</span></font></p>

</div>

</body>

</html>