New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using jpeg profile silently creates empty output if bit depth != 8 #73
Comments
Thanks @alon this is interesting. I'll have a look at it |
Thank you.
If I may, I have a very slow tiling work flow I want to replace with a COG. Is it possible to serve a COG without a tiling service, i.e. have leaflet or such directly GE it,, like vsicurl w/ gdal would? That is the goal, right?
…On March 31, 2019 7:54:27 PM GMT+03:00, Vincent Sarago ***@***.***> wrote:
Thanks @alon this is interesting. I'll have a look at it
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#73 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Absolutely, I'm usually using https://github.com/cogeotiff/rio-tiler (and https://github.com/vincentsarago/lambda-tiler) to do this but you could also check https://github.com/DHI-GRAS/terracotta or https://github.com/mojodna/marblecutter which provide the full architecture. That's said, if you have int16 dataset you'll need custom script to rescale your data to int8. |
@alon This is a Basically rasterio.shutil.copy https://github.com/mapbox/rasterio/blob/master/rasterio/shutil.pyx#L56 is swallowing GDAL warnings but I don't think there is a way to fix that. cc @sgillies |
@vincentsarago the errors occur during the execution of |
@sgillies thanks for the investigation.
Yeah I think this is what we should do 🙏 |
🤔 @sgillies I've just encountered this with other options
I feel there are a lot of corner case I'll need to check ... |
Right, I understand it is doable with a service which creates the tiles on demand, and then serves them: But I'd like to forgoe the tiler, and have My current flow is: @vincentsarago I would happily discuss this offline, or publically but on a more appropriate place than this ticket :) I'm alon at pobox dotcom |
checkout https://github.com/geotiffjs/geotiff.js
We have a #cogeotiff Chanel on |
Vrersion:
$ pip freeze | grep rio
rasterio==1.0.22
rio-cogeo==1.0b3
Problem: When creating from a unsigned int 16 bit per pixel tif a jpeg profile / jpeg compressed cogeo, successfully creates an empty file.
What I expected: an error message indicating this can only work for 8 bits per pixel.
Details:
When doing the same thing with gdal directly I get warnings that JPEG compression is not compatible with 16 bit pixel depth (using UINT16 Tiff bands), but rio cogeo silently swallows these warnings:
The text was updated successfully, but these errors were encountered: