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 .
 
LAYER
    NAME "esri_imagery"
 TYPE RASTER
 STATUS OFF
 DATA "/data/gis/www/html/cso/esri_imagery.xml"
 PROCESSING "OVERSAMPLE_RATIO=1.0"
   METADATA
  "wms_title"     "World_Imagery"
  "wms_name"      "World_Imagery"
  "wms_srs"       "EPSG:3785"
   END
  PROJECTION
     "init=epsg:3785"
    END
  CLASS
      NAME "ESRI Imagery"
      KEYIMAGE "/data/gis/www/html/ms_common/colorphoto_sym.png"
    END
END
 
 
<GDAL_WMS>
<Service name="TMS">
<Version>1.1.1</Version>
<ServerUrl>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/${z}/${y}/${x}.png</ServerUrl>
 
</Service>
<DataWindow>
<UpperLeftX>-20037508.342787</UpperLeftX> 
<UpperLeftY>20037508.342787</UpperLeftY> 
<LowerRightX>20037508.342787</LowerRightX> 
<LowerRightY>-20037508.342787</LowerRightY>
<TileLevel>19</TileLevel> 
<TileCountX>1</TileCountX> 
<TileCountY>1</TileCountY> 
<YOrigin>top</YOrigin> 
</DataWindow>
<Projection>EPSG:3857</Projection> 
<BlockSizeX>256</BlockSizeX> 
<BlockSizeY>256</BlockSizeY> 
<BandsCount>3</BandsCount> 
<Cache /> 
</GDAL_WMS>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to