Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#3804 closed enhancement (wontfix)

WMTS/REST services in MapServer with GDAL

Reported by: weisbend Owned by: jmckenna
Priority: normal Milestone:
Component: Documentation - MapServer Version: 5.4
Severity: normal Keywords: WMTS/REST
Cc: havatv

Description (last modified by warmerdam)

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>

Change History (3)

comment:1 by rouault, 13 years ago

I think it is improper to call such service a WMTS one. It is a TMS one. WMTS is an OGC standard taht is not handled by GDAL. You can perphaps make WMTS tiles look like TMS ones, which I'm not even sure, but the full WMTS standard is for sure not handled by the GDAL WMS driver.

comment:2 by havatv, 13 years ago

Cc: havatv added
Resolution: wontfix
Status: newclosed

GDAL is covered in the supported formats section of input-> raster. If TMS is to be documented, which other GDAL formats should be documented? And where should it be documented? Should there be a separate GDAL document? Closing it as won't fix.

comment:3 by warmerdam, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.