Re: [mapserver-users] Accessing mapserver from Flash Script

2009-12-21 Thread Ken S. Elvehjem
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.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=554649,5245688,557949,5248988WIDTH=1650HEIGHT=1650FORMAT=image/jpeg
 

  to

  
http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:%5Cms4w%5CApache%5Chtdocs%5CND%5CND_griggs-wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=554649%2C5245688%2C557949%2C5248988WIDTH=1650HEIGHT=1650FORMAT=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.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=554649,5245688,557949,5248988WIDTH=1650HEIGHT=1650FORMAT=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_2007zoom=1X0=222375y0=4744771pwidth=858pheight=738format=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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Accessing mapserver from Flash Script

2009-12-20 Thread Dan Little
Escape the ampersands by using the amp; entity.




From: Ken S. Elvehjem e...@runestone.net
To: mapserver-users@lists.osgeo.org
Sent: Sat, December 19, 2009 8:02:53 PM
Subject: [mapserver-users] Accessing mapserver from Flash Script

 

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.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=554649,5245688,557949,5248988WIDTH=1650HEIGHT=1650FORMAT=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_2007zoom=1X0=222375y0=4744771pwidth=858pheight=738format=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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Accessing mapserver from Flash Script

2009-12-19 Thread Ken S. Elvehjem

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.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=554649,5245688,557949,5248988WIDTH=1650HEIGHT=1650FORMAT=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_2007zoom=1X0=222375y0=4744771pwidth=858pheight=738format=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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users