[Qgis-user] Unable to open MrSID file in QGIS even if gdalinfo can read it

Richard Greenwood richard.greenwood at gmail.com
Wed Sep 18 17:04:18 PDT 2024


What do you get from
    which -a gdalinfo
You might have two versions installed.

On Wed, Sep 18, 2024, 4:03 PM Andrew Plowright via QGIS-User <
qgis-user at lists.osgeo.org> wrote:

> 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
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240918/a75c8d1d/attachment.htm>


More information about the QGIS-User mailing list