[gdal-dev] Can GDAL access ARCGIS REST services?

Moskovitz, Bob@DOC Bob.Moskovitz at conservation.ca.gov
Wed Nov 20 11:28:09 PST 2013


That's too bad :(  Here is another one that doesn't work even though it says it is a "MapServer":  http://atlas.resources.ca.gov/ArcGIS/rest/services/Base_Maps/NAIP2012_Index/MapServer .


-----Original Message-----
From: Even Rouault [mailto:even.rouault at mines-paris.org] 
Sent: Wednesday, November 20, 2013 11:22 AM
To: gdal-dev at lists.osgeo.org
Cc: Moskovitz, Bob at DOC
Subject: Re: [gdal-dev] Can GDAL access ARCGIS REST services?

Le mercredi 20 novembre 2013 19:58:29, Moskovitz, Bob at DOC a écrit :
> Hello all,
> 
> At one time, I was able to view NAIP imagery using WMS, but it appears that
> I can only access it using ARCGIS REST services.   According to
> http://www.northrivergeographic.com/qgis-adding-an-arcgis-rest-service
> , I tried something like this:
> 
> C:\>gdal_translate --debug on
> "http://gis.apfo.usda.gov/arcgis/rest/services/NAIP/California_2012_1m
> _NC/ ImageServer?f=json&pretty=true" c:\temp\NAIP2012.xml -of WMS 
> HTTP:
> Fetch(http://gis.apfo.usda.gov/arcgis/rest/services/NAIP/California_20
> 12_1
> m_NC/ImageServer?f=json&pretty=true) ERROR 4: 
> `/vsimem/http_1/file.dat' not recognised as a supported file format.
> 
> ERROR 4: `/tmp/file.dat' not recognised as a supported file format.
> 
> GDALOpen failed - 4
> `/tmp/file.dat' not recognised as a supported file format.
> 
> Anyone have any suggestions on how to access this web service?

The WMS driver only understands documents produced by the "MapServer" ArcGIS service/protocol, not "ImageServer"

> 
> Thanks!
> 
> 
> Robert Moskovitz
> California Geological Survey
> Seismic Hazards Zonation Program
> 
> CONFIDENTIALITY NOTICE: This communication is intended only for the 
> use of the individual or entity to which it is addressed. This message 
> contains information from the State of California, California 
> Geological Survey, which may be privileged, confidential and exempt 
> from disclosure under applicable law, including the Electronic 
> Communications Privacy Act. If the reader of this communication is not 
> the intended recipient, you are hereby notified that any 
> dissemination, distribution, or copying of this communication is strictly prohibited.

--
Geospatial professional services
http://even.rouault.free.fr/services.html



More information about the gdal-dev mailing list