[gdal-dev] ogrinfo with remote KML-urls
Stephan Holl
stephan.holl at intevation.de
Wed Feb 24 03:15:41 EST 2010
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 you decide to change it like Frank proposed I would be happy to get
CCed to the related ticket.
Thanks for your help!
Stephan
Mateusz Loskot <mateusz at loskot.net>, [20100223 - 20:04:19]
> 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://server/path/file.geojson
> >> and if not present, then no remote reading would be performed.
> >> Should I?
> >
> > Mateusz,
> >
> > If there was a typical extension for geojson files that would be
> > helpful.
>
> Looking at http://featureserver.org/ I suppose a typical extension
> is .json but I sort of proposed also .geojson.
> I mean, URLs may include string "geojson" as a format request,
> so I meant this
>
> http://server/path/geojson/1234
>
> as specific format request (following RESTful thing):
>
> http://server/path/gml/1234
> http://server/path/kml/1234
> etc.
>
> > Alternatively, we could take this out of the geojson driver, and
> > handle it more like GDAL where we have a final "http" driver that
> > will fetch http results and then re-invoke OGROpen() on the
> > resulting downloaded file. Then all the drivers again have a
> > crack at the file.
> >
> > This would make it work for kml, for instance, and would sure we
> > don't end up downloading it several times if the logic ends up in
> > several drivers.
>
> OK, no problem for me to disable it. Should I?
>
> Best regards,
--
Stephan Holl <stephan.holl at intevation.de> | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100224/787c74ba/signature.bin
More information about the gdal-dev
mailing list