<div dir="ltr">Hi Randy,<div><br></div><div>I'm really sorry and little embarrassed for my previous post.</div><div>You sure noticed that I don't have much knowledge in arcgis rest services and especially in using those with gdal.</div>
<div><br></div><div>In this case that json isn't a vector data. It is actually a description of a raster service and therefore should be accetable for gdal. This was totally my mistake.</div><div><br></div><div><br></div>
<div>-Lauri</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 7:28 PM, Alex Mandel <span dir="ltr"><<a href="mailto:tech_dev@wildintellect.com" target="_blank">tech_dev@wildintellect.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I wouldn't get on his case too hard he's following:<br>
<a href="http://hub.qgis.org/wiki/quantum-gis/Arcgis_rest" target="_blank">http://hub.qgis.org/wiki/quantum-gis/Arcgis_rest</a><br>
<br>
There's probably some clues in:<br>
<a href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/The_ArcGIS_REST_API/02r300000054000000/" target="_blank">http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/The_ArcGIS_REST_API/02r300000054000000/</a><br>
<br>
I think other workarounds could be to pull the layers in the OpenLayers<br>
plugin.<br>
<br>
Thanks,<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
On 03/13/2014 09:50 AM, Lauri Kajan wrote:<br>
> Hi Randy,<br>
><br>
> You are requesting json format from arcgisonline. That is a vector format<br>
> and you are trying to use it as a raster image.<br>
> Secondly you are trying to translate that into WMS with gdal_translate.<br>
> Gdal supports WMS-reading only, not creation (<br>
> <a href="http://gdal.org/formats_list.html" target="_blank">http://gdal.org/formats_list.html</a>).<br>
><br>
> I recommend for you some introduction to GIS and raster and vector formats.<br>
> <a href="http://www.qgis.org/en/docs/gentle_gis_introduction/index.html" target="_blank">http://www.qgis.org/en/docs/gentle_gis_introduction/index.html</a><br>
><br>
><br>
> Regards,<br>
><br>
> Lauri<br>
><br>
><br>
><br>
><br>
> On Thu, Mar 13, 2014 at 4:51 PM, Randal Hale <<br>
> <a href="mailto:rjhale@northrivergeographic.com">rjhale@northrivergeographic.com</a>> wrote:<br>
><br>
>> So I figured I would start here and work my way out...or up. Sorry for the<br>
>> cross posting. I'm hitting a little bit of everything on this one. Same<br>
>> action - different results (sorta). This is all of my attempts at adding a<br>
>> 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 href="http://server.arcgisonline" target="_blank">http://server.arcgisonline</a>.<br>
>> com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true"<br>
>> 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 href="http://server.arcgisonline" target="_blank">http://server.arcgisonline</a>.<br>
>> com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=json&pretty=true"<br>
>> ESRITopographicLayer.xml -of WMS<br>
>> Gives me:<br>
>> ERROR 4: `/vsimem/http_1/file.dat' not recognised as a supported file<br>
>> 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 href="http://server" target="_blank">http://server</a>.<br>
>> <a href="http://arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/" target="_blank">arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/</a><br>
>> MapServer?f=json&pretty=true","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 href="http://server" target="_blank">http://server</a>.<br>
>> <a href="http://arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/" target="_blank">arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/</a><br>
>> MapServer?f=json&pretty=true","raster")<br>
>> Crashes QGIS.<br>
>><br>
>> Once again my apologies for cross posting. I *think* it's all related. I<br>
>> think.<br>
>><br>
>> Randy<br>
>><br>
>> --<br>
>> -----------------<br>
>> Randal Hale, GISP<br>
>> North River Geographic Systems, Inc<br>
>> <a href="http://www.northrivergeographic.com" target="_blank">http://www.northrivergeographic.com</a><br>
>> <a href="tel:423.653.3611" value="+14236533611">423.653.3611</a> <a href="mailto:rjhale@northrivergeographic.com">rjhale@northrivergeographic.com</a><br>
>> twitter:rjhale<br>
>> <a href="http://about.me/rjhale" target="_blank">http://about.me/rjhale</a><br>
>><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>