[mapserver-users] a follow-up to REST services in MapServer

Lime, Steve D (DNR) steve.lime at state.mn.us
Fri Apr 1 16:57:35 EDT 2011


This would be something well worth documenting on the MapServer website. I'd suggest creating a ticket with your message content and assigning it to the documentation component. Glad it's working.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender
Sent: Friday, April 01, 2011 3:23 PM
To: mapserver-users at lists.osgeo.org
Cc: reh2 at prodigy.net
Subject: [mapserver-users] a follow-up to REST services in MapServer

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/598e0dc8/attachment.html


More information about the mapserver-users mailing list