Comments (5)
[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.
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.
closing as this is not related to osio
from osio.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osio.