Bug: 'JPEG2000' is not a valid Compression


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 Compression


Join main@rasterio.groups.io to automatically receive all group messages.