Code Monkey home page Code Monkey logo

Comments (10)

vincentsarago avatar vincentsarago commented on June 4, 2024

Thanks for the issue @drwelby , any chance you can share the vrt (+tiffs) or create dummy data ?

from rio-cogeo.

drwelby avatar drwelby commented on June 4, 2024

Yes, I should be able to copy some data into a public bucket.

from rio-cogeo.

drwelby avatar drwelby commented on June 4, 2024

rio cogeo create /vsis3/rio-cogeo-vrt-sample/rio-cogeo-s3.vrt ./rcv-test.tif -p jpeg

of course this works locally, so I'll have to investigate our process container to see why it generates invalid COGs.

from rio-cogeo.

vincentsarago avatar vincentsarago commented on June 4, 2024

@drwelby could you check rasterio and gdal version ?

from rio-cogeo.

drwelby avatar drwelby commented on June 4, 2024
rasterio==1.0.26
rio-cogeo==1.1.0
pygdal==2.1.2.5

libgdal20=2.1.2
libgdal-dev=2.1.2

is what is installed in the container, but I should check to make sure nothing is getting downgraded

Locally I have:

GDAL 2.4.1
rasterio 1.0.24

from rio-cogeo.

vincentsarago avatar vincentsarago commented on June 4, 2024

@drwelby This is strange and it seems to me /vsis3/bucket/my.tif is not the output of rio cogeo create. I've just tested and it works fine on my side (even if it really slow).

To be honest, It might be faster to do

gdal_translate my.vrt my.tif -co COMPRESS=JPEG
rio cogeo create my.tif my_cog.tif -p jpeg

from rio-cogeo.

drwelby avatar drwelby commented on June 4, 2024

We upgraded to GDAL 2.4.1 in the container and now valid COGs are being created.

Thanks for the suggestion of adding a gdal_translate step - we'll benchmark it and see if it provides any gains.

from rio-cogeo.

drwelby avatar drwelby commented on June 4, 2024

Tried it out and writing the intermediate file turned out to be ~5% slower in our setup.

from rio-cogeo.

vincentsarago avatar vincentsarago commented on June 4, 2024

@drwelby are we good to close here ?

from rio-cogeo.

drwelby avatar drwelby commented on June 4, 2024

Closing, problem on our end.

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.