Comments (5)
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.
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.
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.
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.
Yes, I had stumbled upon this article a few months ago and it is very good indeed!
from rio-cogeo.
Related Issues (20)
- Displaying continuous data with multiple transparency values?
- add `ZOOM_LEVEL` creation option for web optimized COG
- installation give error
- Creating a COG in place rather than generating a new file? HOT 1
- add option to forward namespaced metadata
- add python 3.10 support
- All Console output is standard error HOT 6
- COG convesion succeeds with GDAL but not with rio-cogeo HOT 4
- Change folder of "execution" HOT 11
- NetCDF to CoG workflow
- GeoTIFF with invalidated optimizations shows up as valid HOT 1
- installation issues - coggeo command HOT 3
- limit pydantic to `1.0` HOT 3
- Shift/zoom after updating to >=4 HOT 2
- Pydantic 2.0 incompatible with morecantile HOT 1
- Unexpected GET Requests Count with web-optimized COG
- Clarify arguments used only when producing "web-optimized" COGs HOT 4
- set blocksize from the TileMatrixSet
- COG validation fails for files that are SPARSE and have sparse edge tiles in the overviews. HOT 4
- Colormap extended to 255 HOT 2
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 rio-cogeo.