<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&nbsp;working fully&nbsp;(via MapServer/MS4W [<a href="http://www.spatialcloud.com/index.cfm?event=home.WMTStoWMS]">http://www.spatialcloud.com/index.cfm?event=home.WMTStoWMS]</a>). &nbsp;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>&nbsp;&nbsp; &nbsp;NAME SPATIALCLOUD_WMS<br>&nbsp;&nbsp; &nbsp;STATUS ON<br>&nbsp;&nbsp; &nbsp;SIZE 800 500<br>&nbsp;&nbsp; &nbsp;IMAGETYPE JPEG<br>&nbsp;&nbsp; &nbsp;IMAGECOLOR 240 240 240<br>&nbsp;&nbsp; &nbsp;EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34<br>&nbsp;&nbsp; &nbsp;UNITS METERS<br>&nbsp;&nbsp; &nbsp;PROJECTION<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"init=epsg:900913"<br>&nbsp;&nbsp; &nbsp;END<br><br>&nbsp;&nbsp; &nbsp;LAYER<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DATA "tmsgdal.xml"<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;NAME "SpatialCloudTMS"<br># &nbsp; &nbsp; &nbsp; &nbsp;PROJECTION<br># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"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># &nbsp; &nbsp; &nbsp; &nbsp;END<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;STATUS ON<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TYPE RASTER<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;UNITS METERS<br>&nbsp;&nbsp; &nbsp;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&nbsp;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: &nbsp; 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>&nbsp;&nbsp;NAME SpatialCloud</i></div><div><i>&nbsp;&nbsp;STATUS ON</i></div><div><i>&nbsp;&nbsp;SIZE 512 512</i></div><div><i>&nbsp;&nbsp;IMAGETYPE PNG24</i></div><div><i>&nbsp;&nbsp;OUTPUTFORMAT</i></div><div><i>&nbsp;&nbsp; NAME PNG24</i></div><div><i>&nbsp;&nbsp; DRIVER "GD/PNG"</i></div><div><i>&nbsp;&nbsp; MIMETYPE "image/png"</i></div><div><i>&nbsp;&nbsp; EXTENSION PNG</i></div><div><i>&nbsp;&nbsp; IMAGEMODE RGB</i></div><div><i>&nbsp;&nbsp; TRANSPARENT ON</i></div><div><i>&nbsp;&nbsp;END &nbsp; &nbsp;</i></div><div><i>&nbsp;&nbsp;IMAGECOLOR 240 240 240</i></div><div><i>&nbsp;&nbsp;EXTENT -180.00 -90.00 180.00 90.00</i></div><div><i>&nbsp;&nbsp;# EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34</i></div><div><i>&nbsp;&nbsp;UNITS DD</i></div><div><i>&nbsp;&nbsp;PROJECTION</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp;"init=epsg:4326"</i></div><div><i>&nbsp;&nbsp;END</i></div><div><i><br></i></div><div><i>WEB</i></div><div><i>&nbsp;&nbsp; &nbsp;METADATA</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"wms_title" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "SpatialCloud TMS via WMS"</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"wms_onlineresource" &nbsp;"<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>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"wms_srs" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "EPSG:4326"</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"wms_format" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"image/png"</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"wms_server_version" &nbsp;"1.1.1"&nbsp;</i></div><div><i>&nbsp;&nbsp; &nbsp;END</i></div><div><i>END</i></div><div><i>&nbsp;&nbsp; &nbsp;</i></div><div><i>LAYER</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DATA "tmsgdal.xml"</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;NAME "SpatialCloudWMS"&nbsp;</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" &nbsp;"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" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "EPSG:900913"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i>        </i></span><i>END</i></div><div><i>&nbsp;&nbsp;</i><span class="Apple-tab-span" style="white-space: pre; "><i>        </i></span><i>PROJECTION</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"init=EPSG:900913"</i></div><div><i>&nbsp;&nbsp;</i><span class="Apple-tab-span" style="white-space: pre; "><i>        </i></span><i>END</i></div><div><i>&nbsp;&nbsp;</i><span class="Apple-tab-span" style="white-space: pre; "><i>        </i></span></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;STATUS ON</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TYPE RASTER</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;UNITS METERS</i></div><div><i>&nbsp;&nbsp; &nbsp;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: &nbsp; 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. &nbsp;We have never been able to get our WMS feed to draw in ESRI software, but can do so with other (OS) clients. &nbsp;</div><div><br></div><div>Can anyone provide any suggestions? &nbsp;Assistance? &nbsp;Comment? &nbsp;</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>