Hi,
we were running into the same issues and solved it by this workaround: use
Windows 8.3 filenames and paths for ECW files:
// WORKAROUND for either a GDAL issue or an issue within the ECW
library used by GDAL:
// when opening ECW files with unicode chars in the filename or
pathname, the returned
// pixels are (sometimes) corrupted; opening the same file with the
corresponding
// windows "8.3" filename everything works as expected...
// for the "8.3" filename conversion have a look here:
//
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364989%28v=vs.85%29.aspx
std::wstring uri = ...;
if(StringUtils::EndsWith(uri.c_str(), L".ecw")) {
wchar_t ecwShortName[MAX_PATH];
if(::GetShortPathName(uri.c_str(), ecwShortName, MAX_PATH) > 0) {
uri = ecwShortName;
}
}
Not nice, but for us it works so far...
-Kosta
> -----Original Message-----
> From: [email protected] [mailto:gdal-dev-
> [email protected]] On Behalf Of netcadturgay
> Sent: Monday, November 19, 2012 1:55 PM
> To: [email protected]
> Subject: [gdal-dev] gdal 1.9 path problem when I using special characters
>
> I can not read the ECW files if filename contains special characters(ş,İ,ğ
> etc.). I
> use gdal 1.9 library including ERDAS ECW Read-Write SDK. Also I tried to set
> GDAL_FILENAME_IS_UTF8=NO but it does not work.
>
> Can you help me about this problem?
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-1-
> 9-path-problem-when-I-using-special-characters-tp5017353.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev