Giter Club home page Giter Club logo

Comments (9)

sgillies avatar sgillies commented on May 28, 2024 1

@snowman2 the libtiff distributed with GDAL is just fine. Even makes sure that the projects are well synchronized.

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

Hmmm, maybe related to #23?

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

I should note that I would be willing to take a stab at it if this is desired.

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

Looks like it is the same on Linux with the wheel.

Using conda-forge version of rasterio:

$ rio info left_fire_mask_lzma.tif 
{"bounds": [-38.03055763850527, -17.7023992620617, -30.161809373564015, 0.6521191626776859], "colorinterp": ["gray"], "compress": "lzma", "count": 1, "crs": "EPSG:4326", "descriptions": ["0"], "driver": "GTiff", "dtype": "uint8", "height": 2076, "indexes": [1], "interleave": "band", "lnglat": [-34.09618350603464, -8.525140049692007], "mask_flags": [["nodata"]], "nodata": 241.0, "res": [0.008841290185327255, 0.008841290185327257], "shape": [2076, 890], "tiled": false, "transform": [0.008841290185327255, 0.0, -38.03055763850527, 0.0, -0.008841290185327257, 0.6521191626776859, 0.0, 0.0, 1.0], "units": [null], "width": 890}

With wheel (1.1.2):

$ rio info left_fire_mask_lzma.tif 
WARNING:rasterio._env:CPLE_AppDefined in left_fire_mask_lzma.tif:LZMA compression support is not configured
Usage: rio info [OPTIONS] INPUT

Error: Invalid value for "INPUT": left_fire_mask_lzma.tif is not a valid input file

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

With the wheel:

>>> rds = rasterio.open("left_fire_mask_lzma.tif")
Traceback (most recent call last):
  File "rasterio/_base.pyx", line 216, in rasterio._base.DatasetBase.__init__
  File "rasterio/_shim.pyx", line 67, in rasterio._shim.open_dataset
  File "rasterio/_err.pyx", line 205, in rasterio._err.exc_wrap_pointer
rasterio._err.CPLE_AppDefinedError: Cannot open TIFF file due to missing codec.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
...
  File "rasterio/_base.pyx", line 218, in rasterio._base.DatasetBase.__init__
rasterio.errors.RasterioIOError: Cannot open TIFF file due to missing codec.

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

Looks like there is a config option for GDAL somewhere:
https://lists.osgeo.org/pipermail/gdal-dev/2014-October/040196.html

Probably only GDAL LZMA-enabled 
> builds with internal libtiff (or with external libtiff 4.0.X built against 
> liblzma) will be able to deal with that.

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

Fantastic - glad to hear that it is kept up-to-date. In the digging I did, I found what I was looking for with the --with-liblzma flag in #38. Thoughts on adding that?

from rasterio-wheels.

sgillies avatar sgillies commented on May 28, 2024

I'd rather not add it @snowman2. I don't know that it is commonly used. Drawing these kind of lines is so difficult because the GDAL project will not, but distributing and supporting a compiled package is different: there's a cost to every additional format driver or codec.

from rasterio-wheels.

snowman2 avatar snowman2 commented on May 28, 2024

Okay, thanks for getting back on that. I will close the PR.

from rasterio-wheels.

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.