def getProviderByName(name):
 if (name.lower() == 'mapnik'):
  from . import Mapnik
  return Mapnik.ImageProvider
 elif (name.lower() == 'proxy'):
  return Proxy
 elif (name.lower() == 'url template'):
  return UrlTemplate
 elif (name.lower() == 'vector'):
  from . import Vector
  return Vector.Provider
 elif (name.lower() == 'mbtiles'):
  from . import MBTiles
  return MBTiles.Provider
 elif (name.lower() == 'mapnik grid'):
  from . import Mapnik
  return Mapnik.GridProvider
 elif (name.lower() == 'sandwich'):
  from . import Sandwich
  return Sandwich.Provider
 raise Exception(('Unknown provider name: "%s"' % name))

def getProviderByName ( name ) : if ( name . lower ( ) == 'mapnik' ) : from . import Mapnik return Mapnik . ImageProvider elif ( name . lower ( ) == 'proxy' ) : return Proxy elif ( name . lower ( ) == 'url template' ) : return UrlTemplate elif ( name . lower ( ) == 'vector' ) : from . import Vector return Vector . Provider elif ( name . lower ( ) == 'mbtiles' ) : from . import MBTiles return MBTiles . Provider elif ( name . lower ( ) == 'mapnik grid' ) : from . import Mapnik return Mapnik . GridProvider elif ( name . lower ( ) == 'sandwich' ) : from . import Sandwich return Sandwich . Provider raise Exception ( ( 'Unknown provider name: "%s"' % name ) )
retrieve a provider object by name .