<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18372"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>What I have learned sense my last post on REST/WMTS in MapServer is that ArcOnline REST services are known as WMTS or web map tile services&nbsp;and with GDAL 1.7 or better you can use an xml proxy file in conjunction with gdal to access any WMTS.&nbsp; With&nbsp;this configuration the WMTS behaves like any WMS.&nbsp; Speed and performance is comparable to WMS but resolution is sometimes iffy.&nbsp; My layer def and gdal xml file is as follows.&nbsp; Thanks to Robert, Mark, and others&nbsp;.</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp;&nbsp;&nbsp; NAME "esri_imagery"<BR>&nbsp;TYPE RASTER<BR>&nbsp;STATUS OFF<BR>&nbsp;DATA "/data/gis/www/html/cso/esri_imagery.xml"<BR>&nbsp;PROCESSING "OVERSAMPLE_RATIO=1.0"<BR>&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;"wms_title"&nbsp;&nbsp;&nbsp;&nbsp; "World_Imagery"<BR>&nbsp;&nbsp;"wms_name"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "World_Imagery"<BR>&nbsp;&nbsp;"wms_srs"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "EPSG:3785"<BR>&nbsp;&nbsp; END<BR>&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:3785"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "ESRI Imagery"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KEYIMAGE "/data/gis/www/html/ms_common/colorphoto_sym.png"<BR>&nbsp;&nbsp;&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;GDAL_WMS&gt;<BR>&lt;Service name="TMS"&gt;<BR>&lt;Version&gt;1.1.1&lt;/Version&gt;<BR>&lt;ServerUrl&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/${z}/${y}/${x}.png&lt;/ServerUrl&gt; <BR>&lt;/Service&gt;<BR>&lt;DataWindow&gt;<BR>&lt;UpperLeftX&gt;-20037508.342787&lt;/UpperLeftX&gt; <BR>&lt;UpperLeftY&gt;20037508.342787&lt;/UpperLeftY&gt; <BR>&lt;LowerRightX&gt;20037508.342787&lt;/LowerRightX&gt; <BR>&lt;LowerRightY&gt;-20037508.342787&lt;/LowerRightY&gt;<BR>&lt;TileLevel&gt;19&lt;/TileLevel&gt; <BR>&lt;TileCountX&gt;1&lt;/TileCountX&gt; <BR>&lt;TileCountY&gt;1&lt;/TileCountY&gt; <BR>&lt;YOrigin&gt;top&lt;/YOrigin&gt; <BR>&lt;/DataWindow&gt;<BR>&lt;Projection&gt;EPSG:3857&lt;/Projection&gt; <BR>&lt;BlockSizeX&gt;256&lt;/BlockSizeX&gt; <BR>&lt;BlockSizeY&gt;256&lt;/BlockSizeY&gt; <BR>&lt;BandsCount&gt;3&lt;/BandsCount&gt; <BR>&lt;Cache /&gt; <BR>&lt;/GDAL_WMS&gt;</DIV></BODY></HTML>