public static void PrintAll()
 {
     try {
         Gdal.AllRegister();
         Console.WriteLine("Registered GDAL drivers:");
         List<DriverInfo> drivers = new List<DriverInfo>(Gdal.GetDriverCount());
         for (int i = 0; i <     Gdal.GetDriverCount(); ++i) {
             Driver driver = Gdal.GetDriver(i);
             DriverInfo driverInfo = new DriverInfo(driver);
             drivers.Add(driverInfo);
         }
         drivers.Sort(DriverInfo.CompareShortName);
         PrintCreateCapabilities(drivers);
     }
     catch (ApplicationException exc) {
         Console.WriteLine("Application exception: {0}", exc);
     }
 }
 public static void PrintAll()
 {
     try {
         Gdal.AllRegister();
         Console.WriteLine("Registered GDAL drivers:");
         List <DriverInfo> drivers = new List <DriverInfo>(Gdal.GetDriverCount());
         for (int i = 0; i < Gdal.GetDriverCount(); ++i)
         {
             Driver     driver     = Gdal.GetDriver(i);
             DriverInfo driverInfo = new DriverInfo(driver);
             drivers.Add(driverInfo);
         }
         drivers.Sort(DriverInfo.CompareShortName);
         PrintCreateCapabilities(drivers);
     }
     catch (ApplicationException exc) {
         Console.WriteLine("Application exception: {0}", exc);
     }
 }
 public static int CompareShortName(DriverInfo x,
                                    DriverInfo y)
 {
     return x.ShortName.CompareTo(y.ShortName);
 }
 public static int CompareShortName(DriverInfo x,
                                    DriverInfo y)
 {
     return(x.ShortName.CompareTo(y.ShortName));
 }