[mapserver-users] WMS problems in ESRI clients - bug in 5.2
Fischer, Brian
bfischer at houstonengineeringinc.com
Wed Oct 22 06:56:05 PDT 2008
Thanks everyone for your help, I added to the wms_onlineresource and
that worked. I can now view the WMS in ArcGIS 9.3.
Regards,
Brian
Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522
From: David Martinez Morata [mailto:damarmo at gmail.com]
Sent: Wednesday, October 22, 2008 8:41 AM
To: Smith, Michael
Cc: Fischer, Brian; ms4w-users at lists.maptools.org;
mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] WMS problems in ESRI clients - bug in 5.2
Hello
I solved this In ms4w 2.2.9 and Mapserver V5.2 adding to
wms_onlinresurce this
"wms_onlineresource" "
http://yourhost/cgi-bin/mapserv.exe?map=/your/map/file.map&SERVICE=WMS&"
And I test in ArcGIS 9.2 and not problem!
2008/10/22 Smith, Michael <Michael.Smith at maine.gov>
I did find the solution to this, with the help of Bob Bistrais, a
programmer here in Maine. It's a known bug in MapServer 5.2. I fixed
it by going back to MapServer 5.0 (from an earlier MS4W I had on a
separate machine). The bug is known and we found it discussed on a
MapServer list serv posting. Presumably to be fixed in the next
version. Link to the the bug discussion:
http://www.nabble.com/WMS-query-problems-in-Mapserver-5.2-td19256659.htm
l
The problem is that by default, MapServer 5.2 does not try such requests
in the order WMS-WFS-WCS as it should. It seems to try WFS first, and
when the service is not WFS, it looks like ArcGIS gives up (hence the
white screen). Other software such as QGIS would show the WMS service
correctly, but with a noticeable delay after each refresh (it presumably
tries adding the service parameter to the URL and resending it to
MapServer). MapInfo provided a hint by displaying a WFS error message
when trying to connect to the WMS service.
Using a previous release of MS4W works great, fixed it in just a few
seconds. Brian if you need the 5.0 release I can put the whole thing in
a zip file and get it to you, let me know off-list.
Another solution (which I did not try), might be to add the SERVICE=WMS
to the URL you use in ArcGIS, which presumably would force MapServer to
treat it as WMS right away.
*********
Michael Smith
State GIS Manager
Maine Office of GIS
________________________________
From: Fischer, Brian [mailto:bfischer at houstonengineeringinc.com]
Sent: Tuesday, October 21, 2008 3:18 PM
To: Smith, Michael; ms4w-users at lists.maptools.org
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [ms4w-users] WMS problems in ESRI clients
Has anyone found a solution to this problem? I am having the exact same
problem. I'm using MS4W 2.3.0 with MapServer 5.2 and IIS 6.0.
WMS Get Capabilities URL:
http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO
SE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUES
T=GetCapabilities
This is proof it works as a MapServer CGI request:
http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO
SE/douglas/maps_douglas/douglas_ogc.map&mode=map&layers=parcelwms
This is proof it works as an OGC WMS GetMap request:
http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO
SE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUES
T=GetMap&LAYERS=parcelwms&STYLES=&SRS=EPSG:26915&BBOX=276595,5065831,342
552,5113395&WIDTH=600&HEIGHT=500&FORMAT=image/png
ArcGIS 9.3 recognizes the service but displays a blank image. It even
will bring in the legend with the right symbology.
Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522
From: ms4w-users-bounces at lists.maptools.org [mailto:
ms4w-users-bounces at lists.maptools.org] On Behalf Of Smith, Michael
Sent: Friday, October 03, 2008 3:56 PM
To: ms4w-users at lists.maptools.org
Subject: [ms4w-users] WMS problems in ESRI clients
Greetings, I have a new MS4W server running with IIS, using the newest
MS4W on Windows 2003 server. It works fine if I look at it in QGIS. If
I consume it in ArcMap (I tried v 9.0 and 9.3) there is no output image,
just white. My layers turn on/off at appropriate scales, but nothing is
there. The WMS is just 3 levels of orthoimagery for part of Maine.
The URL is
http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/m
s4w/apps/wms/nw_doqs.map&
<http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/
ms4w/apps/wms/nw_doqs.map&>
I have a prototype box (which is internal to our WAN and so readers you
won't be able to see it) which has the same exact data and mapfile, but
it runs on Apache (the one distributed with MS4W) on Windows XP, and the
service works fine in ArcGIS 9.0 and 9.3.
My map file is shown below.
Any suggestions?
**********
Michael Smith
State GIS Manager
Maine Office of GIS
MAP
EXTENT 396000 5093000 501000 5261000
UNITS METERS
SHAPEPATH "C:/mapserver_data/nw_doqs"
RESOLUTION 96
CONFIG "PROJ_LIB" "C:\ms4w\proj\nad"
OUTPUTFORMAT
NAME PNG8
DRIVER "GD/PNG"
MIMETYPE "image/png"
EXTENSION PNG
IMAGEMODE PC256
TRANSPARENT ON
END
WEB
METADATA
"wms_title" "Northwest DOQs"
"wms_onlineresource" "
http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/m
s4w/apps/wms/nw_doqs.map&
<http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/
ms4w/apps/wms/nw_doqs.map&> "
"wms_srs" "EPSG:26919"
END
END
PROJECTION
"init=epsg:26919"
END
LAYER
NAME nw_doqs
MAXSCALEDENOM 50000
METADATA
"wms_title" "NW DOQs"
"wms_extent" "396000 5093000 501000 5261000"
"wms_srs" "EPSG:26919"
END
TILEINDEX "nw_doqs_index.shp"
TILEITEM "location"
TYPE RASTER
END
LAYER
NAME nw_doqs10m
MINSCALEDENOM 50000
MAXSCALEDENOM 500000
METADATA
"wms_title" "NW DOQs 10m overview"
"wms_extent" "396000 5093000 501000 5261000"
"wms_srs" "EPSG:26919"
END
TYPE RASTER
DATA doq_overview20.tif
END
LAYER
NAME nw_doqs100m
MINSCALEDENOM 500000
MAXSCALEDENOM 10000000
METADATA
"wms_title" "NW DOQs 100m overview"
"wms_extent" "396000 5093000 501000 5261000"
"wms_srs" "EPSG:26919"
END
TYPE RASTER
DATA doq_overview100.tif
END
END
_______________________________________________
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/20081022/87f74517/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 36044 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081022/87f74517/attachment.jpg>
More information about the MapServer-users
mailing list