[gdal-dev] ogrinfo with remote KML-urls

Frank Warmerdam warmerdam at pobox.com
Tue Feb 23 08:46:44 EST 2010


Stephan Holl wrote:
> Hello,
> 
> I am trying to use ogrinfo with a URL to a KML-file. I have compiled gdal 
> 1.7.1 with libcurl, so it _should_ do that.
> 
> The Errormessage is the following:
> ogrinfo  "http://mw1.google.com/mw-earth-vectordb/haiti/Haiti-Earthquake-nl.kml"
> 
> ERROR 1: GeoJSON parsing error: unexpected character (at offset 0)
> ERROR 4: Failed to read GeoJSON data
> ERROR 1: GeoJSON parsing error: unexpected character (at offset 0)
> ERROR 4: Failed to read GeoJSON data
> FAILURE:
> Unable to open datasource 
> `http://mw1.google.com/mw-earth-vectordb/haiti/Haiti-Earthquake-nl.kml' with 
> the following drivers.
...
> Is this a known issue that ogrinfo does not work with remote URLs?

Stephan,

I am not aware of any support in OGR for working on remote urls.  There is
an http driver in GDAL that sort of supports this for rasters, but I don't
think the same thing exists in OGR.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list