[mapserver-users] a follow-up to REST services in MapServer
Eric Weisbender
Weisbend at wapa.gov
Fri Apr 1 13:23:05 PDT 2011
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110401/f357399c/attachment.htm>
More information about the MapServer-users
mailing list