Git Product home page Git Product logo

Comments (5)

thomascoquet avatar thomascoquet commented on June 22, 2024

[NB: I have not mentioned it but I will create a MR to get the same behavior as GDAL with HEAD/GET to get file size in case where HEAD is not allowed. Should fix the symptoms but probably not the root cause.]

from osio.

tbonfort avatar tbonfort commented on June 22, 2024

In https://github.com/OSGeo/gdal/blob/ab2e741bb78f9d5fce109d5b89d5b207430f4e0e/ogr/ogrsf_frmts/geojson/ogrgeojsonutils.cpp#L527 , the gdal geojson driver will identify the url as being a potential geojson-service. In https://github.com/OSGeo/gdal/blob/ab2e741bb78f9d5fce109d5b89d5b207430f4e0e/ogr/ogrsf_frmts/geojson/ogrgeojsondatasource.cpp#L111 it will then be loaded via CPLHTTPFetch. As a workaround in your case, you can either force gdal.Open to only consider raster drivers (RasterOnly()) , or explicitely use the GTiff driver only. This might be an issue to raise with gdal itself.

from osio.

tbonfort avatar tbonfort commented on June 22, 2024

closing as this is not related to osio

from osio.

thomascoquet avatar thomascoquet commented on June 22, 2024

Thanks for the workaround, works perfectly!
I guess I misunderstood how the VSI handler provided by osio worked ; I thought it was responsible for all IO if a key matched a given prefix, no matter the driver used under the hood.
I'll file a ticket to gdal.

from osio.

tbonfort avatar tbonfort commented on June 22, 2024

I thought it was responsible for all IO if a key matched a given prefix, no matter the driver used under the hood.

Yes that's how it's supposed to work for all file accesses, however it does not prevent specific drivers from bypassing that e.g. for very good reasons when interacting with ogc wxs services, and/or for historical or interoperability reasons in the case of geojson.

from osio.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.