in a server with centos 7, tomcat8, java 1.8.0_121, geoserver v.2.10.1, i followed this link to install the gdal plugin:http://docs.geoserver.org/latest/en/user/data/raster/gdal.html
i can see the list of the stores including the ecw store. but when i try to select the store geoserver crashes and restart.
I've tryed the gdalinfo command to check the file. With all the files i tested i have the same error:
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
gdalinfo.sh: line 5: 19137 Aborted (core dumped) java -classpath "${CLASSPATH}" gdalinfo $input
i've searched in everywhere and it seems to me that this is a bug in the gdal plugin.
Is it possible to view an ECW file in a GeoServer installed on a centos server?
Best Answer
I followed the tips of Andrej, iant e nickves (thank you guys) and i've tryed to install GDAL with ecw support. if check the list of the driver with the command:
i can't find the ECW driver, but now, if i use the gdalinfo.sh command in the gdal192\javainfo folder i don't see the error anymore and i receive the following answer:
Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x) Files: /root/Downloads/3741011.ecw Size is 12194, 9992 Coordinate System is `' Origin = (290747.225122,4641666.725122) Pixel Size = (0.15,-0.15) Corner Coordinates: Upper Left (290747.225122,4641666.725122) Lower Left (290747.225122,4640167.925122) Upper Right (292576.32512199995,4641666.725122) Lower Right (292576.32512199995,4640167.925122) Center (291661.77512199996,4640917.325122) Band 1 Block=12194x1 Type=Byte, ColorInterp=Red Overviews: 6097x4996, 3048x2498, 1524x1249, 762x624, 381x312, 190x156 Band 2 Block=12194x1 Type=Byte, ColorInterp=Green Overviews: 6097x4996, 3048x2498, 1524x1249, 762x624, 381x312, 190x156 Band 3 Block=12194x1 Type=Byte, ColorInterp=Blue Overviews: 6097x4996, 3048x2498, 1524x1249, 762x624, 381x312, 190x156
that seems ok. now, when i try with geoserver it still crashes.
Maybe i have to point the LD_LIBRARY_PATH variable path to some other folder?
Thank you for your help.
--> UPDATE: restarted tomcat and everything is working fine! Thank you all