Date
1 - 2 of 2
Bug: 'JPEG2000' is not a valid Compression
nicholas.maxwell@...
Is this the right place to report a bug? I can open an issue on github if you like.
I'm reading a NITF, and getting this error. Should add 'JPEG2000' to the Compression enum? In[14]: src.tags(ns='IMAGE_STRUCTURE') Out[14]: {'COMPRESSION': 'JPEG2000'} In[15]: src.compression Traceback (most recent call last): File "rasterio/_base.pyx", line 840, in rasterio._base.DatasetBase.compression.__get__
File "/lego/lib/python3.7/enum.py", line 307, in __call__
return cls.__new__(cls, value)
File "/lego/lib/python3.7/enum.py", line 555, in __new__
return cls._missing_(value)
File "/lego/lib/python3.7/enum.py", line 568, in _missing_
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 'JPEG2000' is not a valid Compressionthanks
|
|
Sean Gillies
Hi, This is indeed a bug. I would be much obliged if you reported it in the Rasterio issue tracker. I haven't used NITF in a long time. I see in https://www.gdal.org/frmt_nitf.html that there's a lack of symmetry in the compression creation option name ("IC"), values ("C3", "M3", "C8"), and what gets stored in the metadata ("COMPRESSION" and "JPEG2000"). This will complicate things a bit, more than in the GeoTIFF situation where I mostly work.
On Wed, Nov 7, 2018 at 12:17 PM <nicholas.maxwell@...> wrote:
--
Sean Gillies
|
|