<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Do gdal service description files no
longer work? I was hoping for an XML output. <br>
<br>
From: <br>
<a class="moz-txt-link-freetext" href="http://hub.qgis.org/wiki/17/Arcgis_rest">http://hub.qgis.org/wiki/17/Arcgis_rest</a>: <br>
1. In the QGIS Python console, run this:<br>
<code>qgis.utils.iface.addRasterLayer(<a class="moz-txt-link-rfc2396E" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true">"http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true"</a>,"raster")</code><br>
2. Create a gdal service description file, e.g. by running this in
a terminal:<br>
<code>gdal_translate
<a class="moz-txt-link-rfc2396E" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true">"http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true"</a>
s.xml -of WMS</code><br>
You can now load this file into QGIS, e.g. by drag-and-drop.<br>
<br>
I've used it several times - this morning it wouldn't work -
Unless it's something I'm doing wrong and I really hope it is. I
thought it was odd using json but I was just following directions
as posted. <br>
<br>
Randy<br>
<pre class="moz-signature" cols="72">-----------------
Randal Hale, GISP
North River Geographic Systems, Inc
<a class="moz-txt-link-freetext" href="http://www.northrivergeographic.com">http://www.northrivergeographic.com</a>
423.653.3611 <a class="moz-txt-link-abbreviated" href="mailto:rjhale@northrivergeographic.com">rjhale@northrivergeographic.com</a>
twitter:rjhale
<a class="moz-txt-link-freetext" href="http://about.me/rjhale">http://about.me/rjhale</a></pre>
On 03/13/2014 12:50 PM, Lauri Kajan wrote:<br>
</div>
<blockquote
cite="mid:CAKWoFMJO8ZRWMVwH5sBhmGqYF+MKmuxC1-TPLEpiEBYZ66aObA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Randy,
<div><br>
</div>
<div>You are requesting json format from arcgisonline. That is a
vector format and you are trying to use it as a raster image.</div>
<div>Secondly you are trying to translate that into WMS with
gdal_translate. Gdal supports WMS-reading only, not creation (<a
moz-do-not-send="true"
href="http://gdal.org/formats_list.html">http://gdal.org/formats_list.html</a>).</div>
<div><br>
</div>
<div>I recommend for you some introduction to GIS and raster and
vector formats.</div>
<div><a moz-do-not-send="true"
href="http://www.qgis.org/en/docs/gentle_gis_introduction/index.html">http://www.qgis.org/en/docs/gentle_gis_introduction/index.html</a><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Lauri</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Mar 13, 2014 at 4:51 PM, Randal
Hale <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:rjhale@northrivergeographic.com"
target="_blank">rjhale@northrivergeographic.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">So I
figured I would start here and work my way out...or up.
Sorry for the cross posting. I'm hitting a little bit of
everything on this one. Same action - different results
(sorta). This is all of my attempts at adding a REST Service
from ArcGISOnline to QGIS (using GDAL in some cases).<br>
<br>
On Ubuntu 12.04 LTS gdal 1.10<br>
This command: gdal_translate "<a moz-do-not-send="true"
href="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true"
target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true</a>"
ESRITopographicLayer.xml -of WMS<br>
Gives me a segmentation fault<br>
<br>
On windows 7 OSGEO4w 32 bit installer gdal 1.10.1<br>
This command: gdal_translate "<a moz-do-not-send="true"
href="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true"
target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true</a>"
ESRITopographicLayer.xml -of WMS<br>
Gives me:<br>
ERROR 4: `/vsimem/http_1/file.dat' not recognised as a
supported file format.<br>
ERROR 4: `/tmp/file.dat' not recognised as a supported file
format.<br>
GDALOpen failed - 4<br>
<br>
In QGIS 2.2 On windows (OSGEo4W installer) python console:<br>
qgis.utils.iface.addRasterLayer("<a moz-do-not-send="true"
href="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true"
target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true</a>","raster")<br>
Gives me an error saying /tmp/file.dat is not a recognized
format.<br>
<br>
On Ubuntu 12.04 QGIS 2.2 Python Console<br>
qgis.utils.iface.addRasterLayer("<a moz-do-not-send="true"
href="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true"
target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true</a>","raster")<br>
Crashes QGIS.<br>
<br>
Once again my apologies for cross posting. I *think* it's
all related. I think.<br>
<br>
Randy<br>
<br>
-- <br>
-----------------<br>
Randal Hale, GISP<br>
North River Geographic Systems, Inc<br>
<a moz-do-not-send="true"
href="http://www.northrivergeographic.com" target="_blank">http://www.northrivergeographic.com</a><br>
<a moz-do-not-send="true" href="tel:423.653.3611"
value="+14236533611" target="_blank">423.653.3611</a> <a
moz-do-not-send="true"
href="mailto:rjhale@northrivergeographic.com"
target="_blank">rjhale@northrivergeographic.com</a><br>
twitter:rjhale<br>
<a moz-do-not-send="true" href="http://about.me/rjhale"
target="_blank">http://about.me/rjhale</a><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a moz-do-not-send="true"
href="mailto:Qgis-developer@lists.osgeo.org"
target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</body>
</html>