[mapserver-users] Re: Connecting to MapServer WMS service with NASA World Wind

Roger André randre at gmail.com
Fri Nov 6 13:49:10 EST 2009


I pursued the idea of the request being malformed, and implemented the small
Python cgi script located at http://mapserver.org/ogc/wms_server.html to
mask mapfile locations.  This eliminated the need to specify the mapfile in
the request URL, and the the GetCapabilities request changed from this:

"
http://10.10.10.143/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&<http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&>
"
to this:
"http://10.10.10.143/cgi-bin/precip.cgi?REQUEST=GetCapabilities&SERVICE=WMS&<http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&>
"

The MapServer layers are now visible by World Wind.  To me this indicates
that World Wind is improperly parsing the WMS URL's that are entered.

Anyhow, in case anyone else decides to play around with the new World Wind
java apps, that's how you can view your MapServer projects.

Roger
--



On Thu, Nov 5, 2009 at 9:51 AM, Roger André <randre at gmail.com> wrote:

> Anyone had any luck making this sort of connection?  I have a WMS service
> that I can connect to in uDig, but which resists every attempt I make in
> World Wind.  I'm beginning to wonder if World Wind sends weird requests to
> WMS servers.
>
> This WMS URL works in uDig, "
> http://10.10.10.143/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&<http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&>".
> It generates requests that look like this in my apache2 logs:
>
> 10.10.10.143 - - [05/Nov/2009:09:48:54 -0800] "GET
> /cgi-bin/mapserv?SERVICE=WMS&LAYERS=imagery,precip&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&HEIGHT=557&TRANSPARENT=TRUE&MAP=/var/www/mapfiles/precip/precip.map&REQUEST=GetMap&BBOX=-162.95165202579437,-90.0,162.95165202579437,90.0&WIDTH=1010&STYLES=,&SRS=EPSG:4326&VERSION=1.1.1
> HTTP/1.1" 200 296814 "-" "uDig 1.1.1 (http://udig.refractions.net)
> Java/1.6.0_02"
>
>
> However, when I put the same URL into the, "Enter wms server URL" window of
> the  WMSLayerManager.jnlp<http://worldwind.arc.nasa.gov/java/demos/WMSLayerManager.jnlp>World Wind application, I get a weird looking request in the log that looks
> like this:
>
> 10.10.10.143 - - [05/Nov/2009:09:51:37 -0800] "GET
> /cgi-bin/mapserv?EXCEPTIONS=application/vnd.ogc.se_xml&REQUEST=GetCapabilities&SERVICE=WMS&
> HTTP/1.1" 200 539 "-" "Java/1.6.0_07"
>
> It's like ALL of the map-specific info has been stripped.
>
> Any ideas how to make this work?
>
> Roger
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091106/1fd41297/attachment.html


More information about the mapserver-users mailing list