Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-24 Thread Stephan Holl
Hello Mateusz, Frank, thanks for your elaborated answers. This confirmes what I thought. So the changes Frank suggested in this thread seem to work also for KML when it will be done in a future release of gdal. In the meanwhile I will wrap the ogr-call in a wrapper who does the curl-stuff. If yo

Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-23 Thread Mateusz Loskot
Frank Warmerdam wrote: > Mateusz Loskot wrote: >>> It *seems* like a bad idea to embed such behavior in a particular >>> driver. >> >> Yes, I understand your point. Perhaps I should narrow the test with >> check if URL consists of "geojson" token, like >> http://server/path/geojson/1234 or ftp://s

Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-23 Thread Frank Warmerdam
Mateusz Loskot wrote: It *seems* like a bad idea to embed such behavior in a particular driver. Yes, I understand your point. Perhaps I should narrow the test with check if URL consists of "geojson" token, like http://server/path/geojson/1234 or ftp://server/path/file.geojson and if not present

Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-23 Thread Mateusz Loskot
Frank Warmerdam wrote: > 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-Earthqua

Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-23 Thread Mateusz Loskot
Frank Warmerdam wrote: > Mateusz Loskot wrote: 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

Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-23 Thread Frank Warmerdam
Mateusz Loskot wrote: 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. Frank, G

Re: [gdal-dev] ogrinfo with remote KML-urls

2010-02-23 Thread Frank Warmerdam
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

[gdal-dev] ogrinfo with remote KML-urls

2010-02-22 Thread Stephan Holl
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