<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Alistair,<br><br>Listed at <a href="http://www.niwa.co.nz/ei/feeds/report">http://www.niwa.co.nz/ei/feeds/report</a> there are a few Arc Server raster layers, they are ESRI Mapserver restful layers, but deliver OGC WMS.<br><br>Such layers are as available as any other WMS data source, eg: <br><a href="http://boi.arc.niwa.co.nz/arcgis/services/climate/MedianAnnualTotalRainfall/MapServer/WMSServer">http://boi.arc.niwa.co.nz/arcgis/services/climate/MedianAnnualTotalRainfall/MapServer/WMSServer</a><br><br>I figure what you are describing is a way to access the ESRI native (as opposed to OGC compliant) services in QGIS using GDAL?<br><br><br>Cheers,<br><br>   Brent Wood<br><br>--- On <b>Fri, 8/24/12, Alister Hood <i><Alister.Hood@synergine.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px;
 padding-left: 5px;"><br>From: Alister Hood <Alister.Hood@synergine.com><br>Subject: [Qgis-user] Howto: load ArcGIS "mapserver" raster layers<br>To: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org><br>Date: Friday, August 24, 2012, 12:43 PM<br><br><div class="plainMail">Hi everyone,<br>I don't think anyone around here has ever explained how to add raster ArcGIS "mapserver" layers from servers which provide a REST interface.  As far as I know, there is no way to just load them with a url directly from the QGIS gui, but they can be handled by the GDAL WMS driver, and thus can be loaded in QGIS.<br> <br>Firstly (and the most difficult part) you need to find the URL for the REST service for your layer.  E.g. you might want to use a layer that is available in the ESRI "Maps for Personal Use" web map at:<br><a href="http://www.arcgis.com/home/webmap/viewer.html?useExisting=1"
 target="_blank">http://www.arcgis.com/home/webmap/viewer.html?useExisting=1</a><br>Hopefully with a little googling you will be able to find the address where you can browse the "ArcGIS services directory" of your favourite ArcGIS server.  In this case it is: <a href="http://server.arcgisonline.com/ArcGIS/rest/services/" target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/</a><br><br>Find the layer that you are after, and now you have two options:<br><br>1. You can create a GDAL "service description" XML file, and open it with QGIS.<br>E.g. try this file:<br><a href="http://www.gdal.org/frmt_wms_arcgis_mapserver_tms.xml" target="_blank">http://www.gdal.org/frmt_wms_arcgis_mapserver_tms.xml</a><br>Or e.g. save the XML code pasted at <a href="http://trac.osgeo.org/mapserver/ticket/3804" target="_blank">http://trac.osgeo.org/mapserver/ticket/3804</a> and try it.<br><br>2. You can create a .vrt file (which requires less thinking), and
 open that with QGIS.<br>E.g. find the raster layer you want in the ArcGIS services directory, and get the URL for its REST interface, which should be at the bottom of the page, under "Supported Interfaces".  The gdal utilities can just use this URL (since GDAL 1.9), so you can simply create a .vrt like this:<br>gdalbuildvrt test.vrt "<a href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true" target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true</a>"<br><br>Of course, you will need to check the restrictions on what you are legally allowed to do with any particular layer.  <br><br>And if you are wondering: as far as I know there is currently no way to load _vector_ ArcGIS "mapserver" layers, or ArcGIS "globeserver" or "featureserver" layers (except for manually writing a query URL.  i.e. you can't use their REST
 services).<br><br>Regards,<br>Alister<br><br><br>_______________________________________________<br>Qgis-user mailing list<br><a ymailto="mailto:Qgis-user@lists.osgeo.org" href="/mc/compose?to=Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div></blockquote></td></tr></table>