Coder Social home page Coder Social logo

RasterIO errors about rio-tiler HOT 8 CLOSED

cogeotiff avatar cogeotiff commented on June 15, 2024
RasterIO errors

from rio-tiler.

Comments (8)

vincentsarago avatar vincentsarago commented on June 15, 2024 1

👋 Hi @zags, thanks for opening this issue.
can you try to do

$ export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

as explained in rasterio/rasterio#1289 and #19 ?

Please feel free to close if it solve your issue.

from rio-tiler.

zags avatar zags commented on June 15, 2024

Setting the following fixes it for landsat:

os.environ["AWS_REQUEST_PAYER"] = "requester"
os.environ["CURL_CA_BUNDLE"] = "/etc/ssl/certs/ca-certificates.crt"

I'm still getting the error for sentinel.

sentinel2.tile("S2B_tile_20180803_22JER_0", 11825, 18895, 15)

RasterioIOError: '/vsis3/sentinel-s2-l1c/tiles/22/J/ER/2018/8/3/0/preview.jp2' does not exist in the file system, and is not recognized as a supported dataset name.

from rio-tiler.

vincentsarago avatar vincentsarago commented on June 15, 2024

@zags this is an platform specific, do you have gdal installed, how did you installed rasterio ?

can you try gdalinfo /vsis3/sentinel-s2-l1c/tiles/22/J/ER/2018/8/3/0/preview.jp2 ?

from rio-tiler.

zags avatar zags commented on June 15, 2024

I do have gdal installed and rasterio was installed via PIP.

gdalinfo tells me

ERROR 15: AWS_SECRET_ACCESS_KEY configuration option not defined
gdalinfo failed - unable to open '/vsis3/sentinel-s2-l1c/tiles/22/J/ER/2018/8/3/0/preview.jp2'.

I have ~/.boto and ~/.aws/config files with my keys

from rio-tiler.

vincentsarago avatar vincentsarago commented on June 15, 2024

This is a configuration problem (not a rio-tiler issue). I'm really sorry. checkout http://boto3.readthedocs.io/en/latest/guide/configuration.html it might help.

from rio-tiler.

zags avatar zags commented on June 15, 2024

The RioTiler issue is the completely undecipherable error messages. If it's an authentication problem, this should be reflected in the resulting error

from rio-tiler.

vincentsarago avatar vincentsarago commented on June 15, 2024

I understand but that's a GDAL/Rasterio error.
Noticing that it might be updated with the work currently happening on rasterio/rasterio#1429

from rio-tiler.

zags avatar zags commented on June 15, 2024

Fixing the GDAL configuration does not solve this problem. GDAL then gives:

ERROR 4: /vsis3/sentinel-s2-l1c/tiles/22/J/ER/2018/8/3/0/preview.jp2: No such file or directory

/vsis3/sentinel-s2-l1c/tiles/22/J/ER/2018/8/3/0/preview.jp2 is being generated by RIO-tiler.

from rio-tiler.

Related Issues (20)

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.