<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 and with GDAL 1.7 or better you can use an xml proxy file in conjunction with gdal to access any WMTS.  With this configuration the WMTS behaves like any WMS.  Speed and performance is comparable to WMS but resolution is sometimes iffy.  My layer def and gdal xml file is as follows.  Thanks to Robert, Mark, and others .</DIV>
<DIV> </DIV>
<DIV>LAYER<BR>    NAME "esri_imagery"<BR> TYPE RASTER<BR> STATUS OFF<BR> DATA "/data/gis/www/html/cso/esri_imagery.xml"<BR> PROCESSING "OVERSAMPLE_RATIO=1.0"<BR>   METADATA<BR>  "wms_title"     "World_Imagery"<BR>  "wms_name"      "World_Imagery"<BR>  "wms_srs"       "EPSG:3785"<BR>   END<BR>  PROJECTION<BR>     "init=epsg:3785"<BR>    END<BR>  CLASS<BR>      NAME "ESRI Imagery"<BR>      KEYIMAGE "/data/gis/www/html/ms_common/colorphoto_sym.png"<BR>    END<BR>END</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><GDAL_WMS><BR><Service name="TMS"><BR><Version>1.1.1</Version><BR><ServerUrl>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/${z}/${y}/${x}.png</ServerUrl> <BR></Service><BR><DataWindow><BR><UpperLeftX>-20037508.342787</UpperLeftX> <BR><UpperLeftY>20037508.342787</UpperLeftY> <BR><LowerRightX>20037508.342787</LowerRightX> <BR><LowerRightY>-20037508.342787</LowerRightY><BR><TileLevel>19</TileLevel> <BR><TileCountX>1</TileCountX> <BR><TileCountY>1</TileCountY> <BR><YOrigin>top</YOrigin> <BR></DataWindow><BR><Projection>EPSG:3857</Projection> <BR><BlockSizeX>256</BlockSizeX> <BR><BlockSizeY>256</BlockSizeY> <BR><BandsCount>3</BandsCount> <BR><Cache /> <BR></GDAL_WMS></DIV></BODY></HTML>