[mapserver-users] WMS Config for ESRI Clients
Joshua McNary
jmcnary at spatialcloud.com
Thu Sep 2 10:49:44 PDT 2010
I am working with the technical team at SpatialCloud to try to get our image based TMS-to-WMS output working fully (via MapServer/MS4W [http://www.spatialcloud.com/index.cfm?event=home.WMTStoWMS]). The current iteration will work with some WMS clients, but others, like ESRI ArcGIS Suite, do not work.
This original Mapfile we had will allow it to work with some clients; GetCapabilities works for all clients we have tested:
---Start Mapfile #1---
MAP
NAME SPATIALCLOUD_WMS
STATUS ON
SIZE 800 500
IMAGETYPE JPEG
IMAGECOLOR 240 240 240
EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
UNITS METERS
PROJECTION
"init=epsg:900913"
END
LAYER
DATA "tmsgdal.xml"
NAME "SpatialCloudTMS"
# PROJECTION
# "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs"
# END
STATUS ON
TYPE RASTER
UNITS METERS
END
END
---End Mapfile #1---
But an was error produced in ESRI ArcMap 9.3 when trying to draw the image:
---Start ESRI Error #1---
One or more layers failed to draw:
SPATIALCLOUD_WMS: WMS service exceptions:-Service Error Code:InvalidSRS
Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers.
-Service Error Code:InvalidSRS
---End ESRI Error #1---
We realized the Mapfile was malformed and we had an SRS issue so we created this variation which seemed to be more to spec:
---Start Mapfile #2---
MAP
NAME SpatialCloud
STATUS ON
SIZE 512 512
IMAGETYPE PNG24
OUTPUTFORMAT
NAME PNG24
DRIVER "GD/PNG"
MIMETYPE "image/png"
EXTENSION PNG
IMAGEMODE RGB
TRANSPARENT ON
END
IMAGECOLOR 240 240 240
EXTENT -180.00 -90.00 180.00 90.00
# EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
UNITS DD
PROJECTION
"init=epsg:4326"
END
WEB
METADATA
"wms_title" "SpatialCloud TMS via WMS"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/sccustomserver/tms.map"
"wms_srs" "EPSG:4326"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
END
END
LAYER
DATA "tmsgdal.xml"
NAME "SpatialCloudWMS"
METADATA
"wms_title" "Put your layer title here"
"wms_extent" "-20037508.34 -20037508.34 20037508.34 20037508.34"
"wms_srs" "EPSG:900913"
END
PROJECTION
"init=EPSG:900913"
END
STATUS ON
TYPE RASTER
UNITS METERS
END
END
---End Mapfile #2---
GetCapabilities continued to works for all clients, but this led to our test WMS clients ceasing to draw and a new error in ESRI software:
---Start ESRI Error #2---
One or more layers failed to draw:
SpatialCloud TMS via WMS: WMS service exceptions:Service Error Description: msDrawMap(): Image handling error. Failed to draw layer named
Service Error Description: '
Service Error Description: SpatialCloudWMS
Service Error Description: '
Service Error Description: .
IReadBlock failed at X offset 98, Y offset 98: Unable to access file. GDALDatasetRasterIO() failed: drawGDAL()
---End ESRI Error #2---
We have tried variations on both of these Mapfiles, focusing on the projections. We have never been able to get our WMS feed to draw in ESRI software, but can do so with other (OS) clients.
Can anyone provide any suggestions? Assistance? Comment?
Thank you.
Joshua McNary
Marketing Manager
jmcnary at spatialcloud.com
SpatialCloud.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100902/1f4fadbc/attachment.htm>
More information about the MapServer-users
mailing list