[mapserver-users] Accessing mapserver from Flash Script

Ken S. Elvehjem ets1 at runestone.net
Mon Dec 21 13:17:57 EST 2009


Bob, P Kishor, and Dan Little,

Thanks for the responses.

After reading the article at blooberry.com, it looks like other stuff needs to be fixed also.

Is there some other means of accessing the mapserver?  some of the documentation seemed to indicate that I should be generating a request in some kind of XML request.

I'd sure like to know if anyone is using Flash to actually access a mapserver.

Sincerely,

Ken


----- Original Message ----- 
  From: Bob Basques 
  To: Ken S. Elvehjem 
  Sent: Saturday, December 19, 2009 8:26 PM
  Subject: Re: [mapserver-users] Accessing mapserver from Flash Script


  Ken, 

  You could try to enocde the entire URL from stage one.  Read more here:

  http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

  Using the converter near the bottom of the page, your URL goes from :


  http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\ND\ND_griggs-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=554649,5245688,557949,5248988&WIDTH=1650&HEIGHT=1650&FORMAT=image/jpeg 

  to

  http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:%5Cms4w%5CApache%5Chtdocs%5CND%5CND_griggs-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=554649%2C5245688%2C557949%2C5248988&WIDTH=1650&HEIGHT=1650&FORMAT=image/jpeg


  You can even escape the "&" characters if needed using the same syntax.

  bobb


  Ken S. Elvehjem wrote: 

    Hi, 

    I have set up a Mapserver which serves up aerial photography.  Works better than "just great!" 

    Now, I'm trying to write some web/flash based software using the OpenLaszlo software.  This product allows me to write a "script" in a kind of XML, which then gets compiled to a Flash .swf file. 

    With this tool, I can set an image(JPEG) on my page from anywhere on the web, simply by using the correct URL.  However, I cannot understand how to create the URL to get a JPG file from the mapserver.  The troubleshooting data suggests that the problem is with an "unescaped ampersand (&) ... is there a way to escape this escape madness?   

    URL: 

    http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\ND\ND_griggs-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=554649,5245688,557949,5248988&WIDTH=1650&HEIGHT=1650&FORMAT=image/jpeg 

    This URL is also problematic, tho it's not a "MapServer" url: 

    http://cairo.gis.iastate.edu/server.cgi/Aerial.jpg?layer=naip_2007&zoom=1&X0=222375&y0=4744771&pwidth=858&pheight=738&format=jpg

    Any ideas would be greatly appreciated! 

    sincerely, 

    Ken S. Elvehjem 
    Ken S. Elvehjem
    PO Box 37
    Lowry MN  56349

    320.283.5684
    320.424.1299 c
    320.283.5247 h
----------------------------------------------------------------------------
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091221/53d96c58/attachment.html


More information about the mapserver-users mailing list