Code Monkey home page Code Monkey logo

Comments (5)

glostis avatar glostis commented on May 24, 2024

I do not think it comes from my setup because I have managed to reproduce the issue on a Docker:

FROM python:3

WORKDIR /root/data

COPY S2A_MSIL1C_20190112T175711_N0207_R141_T13UFQ_20190112T194934__B01.jp2 .

RUN pip install rio-cogeo

ENTRYPOINT rio cogeo create -p zstd S2A_MSIL1C_20190112T175711_N0207_R141_T13UFQ_20190112T194934__B01.jp2 out.tiff

Running this Docker fails as mentioned above.

However, when building rasterio from source, rio cogeo works:

FROM python:3

RUN apt update && apt install -y \
    gdal-bin libgdal-dev

WORKDIR /root/data

COPY S2A_MSIL1C_20190112T175711_N0207_R141_T13UFQ_20190112T194934__B01.jp2 .

RUN pip install --no-binary rasterio rio-cogeo

ENTRYPOINT rio cogeo create -p zstd S2A_MSIL1C_20190112T175711_N0207_R141_T13UFQ_20190112T194934__B01.jp2 out.tiff

so I would tend to think that the problem comes from the rasterio manylinux wheel.

Here is the image in case you want to reproduce (it's a standard Sentinel-2 band):
S2A_MSIL1C_20190112T175711_N0207_R141_T13UFQ_20190112T194934__B01.zip

from rio-cogeo.

vincentsarago avatar vincentsarago commented on May 24, 2024

Hi @glostis and thanks for opening this issue.

You are right rasterio wheel doesn't come with zstd lib (see the full config here). This is unfortunate but a resonable choice because zstd compression is not supported by all software (see same discussion about lerc OSGeo/gdal#1812 (comment)).

I'll add a note in the documentation for profile that might not be available.

from rio-cogeo.

glostis avatar glostis commented on May 24, 2024

Hi @vincentsarago thanks for your answer, and for the interesting links!

Out of curiosity, is there a reason for which you didn't include LZMA in the standard cog-profiles available?

from rio-cogeo.

vincentsarago avatar vincentsarago commented on May 24, 2024

Out of curiosity, is there a reason for which you didn't include LZMA in the standard cog-profiles available?

Well no specific reason, I'll add it in the next release thanks

For reference, there is a nice article about compression by @kokoalberti https://kokoalberti.com/articles/geotiff-compression-optimization-guide/ (which I should had in the documentation)

from rio-cogeo.

glostis avatar glostis commented on May 24, 2024

Yes, I had stumbled upon this article a few months ago and it is very good indeed!

from rio-cogeo.

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.