Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
 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));
         }
     }
 }
Exemplo n.º 3
0
        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
        }
Exemplo n.º 4
0
        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
            }
        }