to add a .ecw image file

Topics: SharpMap v2.0
Dec 7, 2015 at 6:11 PM
Hi, I want to add a .ecw image file and the program says "not recognized as a supported file format.
    Dim ilay As SharpMap.Layers.GdalRasterLayer
    ilay = New SharpMap.Layers.GdalRasterLayer(path, path)
I used this same code to add a .tif file with no program and it looks that some libraries to read a .ecw image is missing.

Really appreciate your help.

Dec 8, 2015 at 8:22 AM
You need to install teh NuGet package GDAL.Plugins with your project.
Dec 8, 2015 at 5:07 PM

When I tried to install GDAL.Plugins I got the following error:

NuGet failed to install or uninstall the selected package in the following project(s)
Error: Updating ‘GDAL1.9.2’ to ‘GDAL1.11.1 failed. Unable to find a version of ‘SharpMap.Extensions’ that is compatible with ‘GDAL 1.11.1’

Currently my SharpMap.Extensions is version 1.1.0 and there is nothing to be updated and I tried to update GDAL and obtained the same error.

Any idea to solve the problem.

Many thanks.

Dec 9, 2015 at 7:31 AM
You need to install version 1.9.2 of the Gdal.Plugins package
install-package Gdal.Plugins -version 1.9.2