# Path: src/supported_drivers.py
# class KNOWN_DRIVERS(object):
#     WMS = 'WMS'
#     TMS = 'TMS'
#     GDAL = 'GDAL'
#     WFS = 'WFS'
#     GEOJSON = 'GeoJSON'
# 
#     ALL_DRIVERS = [
#         WMS,
#         TMS,
#         GDAL,
#         WFS,
#         GEOJSON,
#     ]
# 
#     # 'TiledWMS',
#     # 'VirtualEarth',
#     # 'WorldWind',
#     # 'AGS'


from .supported_drivers import KNOWN_DRIVERS
    from osgeo import gdal
    import gdal
        email                : info@nextgis.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
"""
from __future__ import absolute_import

try:
except ImportError:


class GdalUtils(object):

    @classmethod
    def get_supported_drivers(cls):
        formats_list = []
        cnt = gdal.GetDriverCount()
        for i in range(cnt):
            driver = gdal.GetDriver(i)
            driver_name = driver.ShortName
            if not driver_name in formats_list:
                formats_list.append(driver_name)
        if 'WMS' in formats_list:

# Path: src/supported_drivers.py
# class KNOWN_DRIVERS(object):
#     WMS = 'WMS'
#     TMS = 'TMS'
#     GDAL = 'GDAL'
#     WFS = 'WFS'
#     GEOJSON = 'GeoJSON'
# 
#     ALL_DRIVERS = [
#         WMS,
#         TMS,
#         GDAL,
#         WFS,
#         GEOJSON,
#     ]
# 
#     # 'TiledWMS',
#     # 'VirtualEarth',
#     # 'WorldWind',
#     # 'AGS'


# Path: src/gdal_utils.py
from .supported_drivers import KNOWN_DRIVERS
    from osgeo import gdal
    import gdal

        email                : info@nextgis.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
"""
from __future__ import absolute_import

try:
except ImportError:


class GdalUtils(object):

    @classmethod
    def get_supported_drivers(cls):
        formats_list = []
        cnt = gdal.GetDriverCount()
        for i in range(cnt):
            driver = gdal.GetDriver(i)
            driver_name = driver.ShortName
            if not driver_name in formats_list:
                formats_list.append(driver_name)
        if 'WMS' in formats_list:

            return KNOWN_DRIVERS  # all drivers if wms supported. hack. need to remake