[Qgis-user] Unable to open MrSID file in QGIS even if gdalinfo can read it
Andrew Plowright
plowright.andrew at gmail.com
Wed Sep 18 15:02:42 PDT 2024
Operating system: Linux Mint 22 Cinnamon
QGIS version: 3.34.4-Prizen
GDAL version: 3.10.0dev-1250e96221-dirt
MrSid DSDK version: 9.5.5.5244
I have followed the instructions provided by the GDAL website
<https://gdal.org/en/latest/drivers/raster/mrsid.html> to build GDAL from
source in conjunction with the MrSid DSDK.
My cmake command was as follows:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGDAL_ENABLE_DRIVER_JP2MRSID=ON
-DGDAL_USE_MRSID=ON
-DMRSID_ROOT=/opt/MrSID_DSDK-9.5.5.5244-rhel9.x86-64.gcc1131/Raster_DSDK
-DMRSID_LIBRARY=/opt/MrSID_DSDK-9.5.5.5244-rhel9.x86-64.gcc1131/Raster_DSDK/lib/libltidsdk.so
-DMRSID_INCLUDE_DIR=/opt/MrSID_DSDK-9.5.5.5244-rhel9.x86-64.gcc1131/Raster_DSDK/include
..
As instructed, I've also set the LD_LIBRARY_PATH variable to point towards
the DSDK's /lib/ path by adding the following to me /etc/profile file:
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/MrSID_DSDK-9.5.5.5244-rhel9.x86-64.gcc1131/Raster_DSDK/lib:/usr/lib
Using the command line, I'm able to use gdalinfo to read a .sid file's
information. I even successfully used gdalwarp on it.
However, QGIS will not accept this file format, returning a "not a valid or
recognized data source" error.
It was my expectation that if MrSid was enabled within GDAL through the
command line, then QGIS would be able to read it too. Is there an
additional configuration that I'm missing?
Thank you,
Andrew Plowright
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240918/bee853a6/attachment.htm>
More information about the QGIS-User
mailing list