<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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 [<a href="http://www.spatialcloud.com/index.cfm?event=home.WMTStoWMS]">http://www.spatialcloud.com/index.cfm?event=home.WMTStoWMS]</a>). The current iteration will work with some WMS clients, but others, like ESRI ArcGIS Suite, do not work.</div><div><br></div><div>This original Mapfile we had will allow it to work with some clients; GetCapabilities works for all clients we have tested:</div><div><br></div><div><br></div><div>---Start Mapfile #1---</div><div><br></div><div><i>MAP<br> NAME SPATIALCLOUD_WMS<br> STATUS ON<br> SIZE 800 500<br> IMAGETYPE JPEG<br> IMAGECOLOR 240 240 240<br> EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34<br> UNITS METERS<br> PROJECTION<br> "init=epsg:900913"<br> END<br><br> LAYER<br> DATA "tmsgdal.xml"<br> NAME "SpatialCloudTMS"<br># PROJECTION<br># "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"<br># END<br> STATUS ON<br> TYPE RASTER<br> UNITS METERS<br> END<br></i><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i><br>END</i><br></div><div><br></div><div><div>---End Mapfile #1---</div></div><div><br></div><div><br></div><div>But an was error produced in ESRI ArcMap 9.3 when trying to draw the image:</div><div><br></div><div><br></div><div><b><div style="font-weight: normal; ">---Start ESRI Error #1---</div><div><br></div></b></div><div><i>One or more layers failed to draw:<br><br>SPATIALCLOUD_WMS: WMS service exceptions:-Service Error Code:InvalidSRS<br>Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers.<br>-Service Error Code:InvalidSRS</i></div><div><br></div><div><b><div style="font-weight: normal; ">---End ESRI Error #1---</div><div><br></div><div><br></div></b></div><div>We realized the Mapfile was malformed and we had an SRS issue so we created this variation which seemed to be more to spec:</div><div><br></div><div><br></div><div><b><div style="font-weight: normal; ">---Start Mapfile #2---</div><div><br></div></b></div><div><div><i>MAP</i></div><div><i> NAME SpatialCloud</i></div><div><i> STATUS ON</i></div><div><i> SIZE 512 512</i></div><div><i> IMAGETYPE PNG24</i></div><div><i> OUTPUTFORMAT</i></div><div><i> NAME PNG24</i></div><div><i> DRIVER "GD/PNG"</i></div><div><i> MIMETYPE "image/png"</i></div><div><i> EXTENSION PNG</i></div><div><i> IMAGEMODE RGB</i></div><div><i> TRANSPARENT ON</i></div><div><i> END </i></div><div><i> IMAGECOLOR 240 240 240</i></div><div><i> EXTENT -180.00 -90.00 180.00 90.00</i></div><div><i> # EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34</i></div><div><i> UNITS DD</i></div><div><i> PROJECTION</i></div><div><i> "init=epsg:4326"</i></div><div><i> END</i></div><div><i><br></i></div><div><i>WEB</i></div><div><i> METADATA</i></div><div><i> "wms_title" "SpatialCloud TMS via WMS"</i></div><div><i> "wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/sccustomserver/tms.map">http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/sccustomserver/tms.map</a>"</i></div><div><i> "wms_srs" "EPSG:4326"</i></div><div><i> "wms_format" "image/png"</i></div><div><i> "wms_server_version" "1.1.1" </i></div><div><i> END</i></div><div><i>END</i></div><div><i> </i></div><div><i>LAYER</i></div><div><i> DATA "tmsgdal.xml"</i></div><div><i> NAME "SpatialCloudWMS" </i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>METADATA</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>"wms_title" "Put your layer title here"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>"wms_extent" "-20037508.34 -20037508.34 20037508.34 20037508.34"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>"wms_srs" "EPSG:900913"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>END</i></div><div><i> </i><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>PROJECTION</i></div><div><i> "init=EPSG:900913"</i></div><div><i> </i><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>END</i></div><div><i> </i><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span></div><div><i> STATUS ON</i></div><div><i> TYPE RASTER</i></div><div><i> UNITS METERS</i></div><div><i> END</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span></div><div><i>END</i></div><div><br></div><div><b><div style="font-weight: normal; ">---End Mapfile #2---</div><div><br></div></b></div><br></div><div>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:</div><div><br></div><div><br></div><div><b><div style="font-weight: normal; ">---Start ESRI Error #2---</div></b></div><div><br></div><div><div><i>One or more layers failed to draw:</i></div><div><i><br></i></div><div><i>SpatialCloud TMS via WMS: WMS service exceptions:Service Error Description: msDrawMap(): Image handling error. Failed to draw layer named</i></div><div><i>Service Error Description: '</i></div><div><i>Service Error Description: SpatialCloudWMS</i></div><div><i>Service Error Description: '</i></div><div><i>Service Error Description: .</i></div><div><i>IReadBlock failed at X offset 98, Y offset 98: Unable to access file. GDALDatasetRasterIO() failed: drawGDAL()</i></div></div><div><br></div><div><b><div style="font-weight: normal; ">---End ESRI Error #2---</div><div><br></div></b></div><div><div><br></div></div><div>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. </div><div><br></div><div>Can anyone provide any suggestions? Assistance? Comment? </div><div><br></div><div>Thank you.</div><div><br></div><br><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Joshua McNary<br>Marketing Manager<br><a href="mailto:jmcnary@spatialcloud.com">jmcnary@spatialcloud.com</a><br><a href="http://SpatialCloud.com/">SpatialCloud.com</a><br><br></div></div><br><br></body></html>