<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Escape the ampersands by using the "&amp;amp;" entity.</div><div><br></div><div><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Ken S. Elvehjem &lt;ets1@runestone.net&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sat, December 19, 2009 8:02:53 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] Accessing mapserver from Flash Script<br></font><br>


 
 
<style></style>


<div><font size="2" face="Arial"><span style="MARGIN:0.5em 0pt 0pt;" class="ul-threaded"><span class="connect "><span id="li4193425" class="li-threaded"><span class="threaded"><span class="post-middle"><span style="DISPLAY:block;" id="post4193425"><br>Hi, 
<br><br>I have set up a Mapserver which serves up aerial photography. 
&nbsp;Works better than "just great!" <br><br>Now, I'm trying to write some 
web/flash based software using the OpenLaszlo software. &nbsp;This product 
allows me to write a "script" in a kind of XML, which then gets compiled to a 
Flash .swf file. <br><br>With this tool, I can set an image(JPEG) on my page 
from anywhere on the web, simply by using the correct URL. &nbsp;However, I 
cannot understand how to create the URL to get a JPG file from the mapserver. 
&nbsp;The troubleshooting data suggests that the problem is with an "unescaped 
ampersand (&amp;) ... is there a way to escape this escape madness? &nbsp; 
<br><br>URL: <br><br><span><a target="_blank" href="http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\ND\ND_griggs-wms.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=NAIP2006&amp;STYLES=&amp;SRS=EPSG:4269&amp;BBOX=554649,5245688,557949,5248988&amp;WIDTH=1650&amp;HEIGHT=1650&amp;FORMAT=image/jpeg">http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\ND\ND_griggs-wms.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=NAIP2006&amp;STYLES=&amp;SRS=EPSG:4269&amp;BBOX=554649,5245688,557949,5248988&amp;WIDTH=1650&amp;HEIGHT=1650&amp;FORMAT=image/jpeg</a> 
</span><br><br>This URL is also problematic, tho it's not a "MapServer" url: <br><br><span><a target="_blank" href="http://cairo.gis.iastate.edu/server.cgi/Aerial.jpg?layer=naip_2007&amp;zoom=1&amp;X0=222375&amp;y0=4744771&amp;pwidth=858&amp;pheight=738&amp;format=jpg">http://cairo.gis.iastate.edu/server.cgi/Aerial.jpg?layer=naip_2007&amp;zoom=1&amp;X0=222375&amp;y0=4744771&amp;pwidth=858&amp;pheight=738&amp;format=jpg</a></span><br><br>Any 
ideas would be greatly appreciated! <br><br>sincerely, <br><br>Ken S. Elvehjem 
</span></span></span></span></span></span></font></div>
<div><font size="2" face="Arial">Ken S. Elvehjem<br>PO Box 37<br>Lowry MN&nbsp; 
56349</font></div>
<div>&nbsp;</div>
<div><font size="2" face="Arial">320.283.5684<br>320.424.1299 c<br>320.283.5247 
h</font></div>
</div></div></blockquote><div style="position:fixed"></div>


<!-- cg16.c2.mail.ac4.yahoo.com compressed/chunked Fri Dec 18 09:34:50 PST 2009 -->
</div><br>

      </body></html>