我正在尝试使用 gdal_translate 将 jp2000 (.jp2) 格式的 Sentinel-2 imagery 转换为 geotiff 格式。但是,似乎无法识别 .jp2
格式。我应该使用什么方法将 jp2000 格式转换为 geotiff?
$ gdal_translate B02.jp2 B02.tif
ERROR 4: `B02.jp2' not recognised as a supported file format.
GDALOpen failed - 4
`B02.jp2' not recognised as a supported file format.
最佳答案
如果您使用的是 macOS 并且想要 JP2000 和 GDAL,一种选择是使用 自制软件 像这样安装它:
brew install gdal --with-complete
然后你得到这个:
gdalinfo --formats | grep -i jp
JPEG (rwv): JPEG JFIF
JPEG2000 (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1)
关于macos - 如何使用 GDAL 将 jp2000 转换为 geotiff?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42501979/