private static void PrintDriversGdal() { #if DEBUG var num = Gdal.GetDriverCount(); for (var i = 0; i < num; i++) { var driver = Gdal.GetDriver(i); Console.WriteLine(string.Format("GDAL {0}: {1}-{2}", i, driver.ShortName, driver.LongName)); } #endif }
private static void PrintDriversGdal() { if (DebugUtil._debug) { var num = Gdal.GetDriverCount(); for (var i = 0; i < num; i++) { var driver = Gdal.GetDriver(i); DebugUtil.WriteLine(string.Format("GDAL {0}: {1}-{2}", i, driver.ShortName, driver.LongName)); } } }
private static void PrintDriversGdal() { #if DEBUG if (_usable) { var num = Gdal.GetDriverCount(); for (var i = 0; i < num; i++) { var driver = Gdal.GetDriver(i); Trace.WriteLine($"GDAL {i}: {driver.ShortName}-{driver.LongName}"); } } #endif }
private static void PrintDriversGdal() { var num = Gdal.GetDriverCount(); for (var i = 0; i < num; i++) { var driver = Gdal.GetDriver(i); string extension = driver.GetMetadataItem("DMD_EXTENSION", ""); if (!String.IsNullOrWhiteSpace(extension) && !dicDriverExt.ContainsKey(extension)) { dicDriverExt.Add(extension, string.Format("{1} - {2}|*.{0}", extension, driver.ShortName, driver.LongName)); } #if DEBUG Console.WriteLine(string.Format("GDAL {0}: {1}-{2}", extension, driver.ShortName, driver.LongName)); #endif } }