I need to open .jp2 raster files in python.
i installed GDAL after these instructions .
Using the command line gdalinfo --formatsdisplays the driver JP2OpenJPEG. gdalinfo filename.jp2returns the expected result.
But in python
import gdal
data=gdal.Open('filename.jp2')
returns nothing (.tiff works).
There are two other applications using GDAL, so I assume that python is using the wrong GDAL installation.
I have the same problem in R, but there I can indicate the correct installation with
library(gdalUtils)
gdal_chooseInstallation('JP2OpenJPEG')
Is there a way to tell python to install correctly or add a driver for jp2?
Windows 10
Python 2.7
GDAL 2.1.0
unnic source
share