def getProjectionByName(name):
 if (name.lower() == 'spherical mercator'):
  return SphericalMercator()
 elif (name.lower() == 'wgs84'):
  return WGS84()
 else:
  try:
   return Core.loadClassPath(name)
  except Exception as e:
   raise Core.KnownUnknown(('Failed projection in configuration: "%s" - %s' % (name, e)))

def getProjectionByName ( name ) : if ( name . lower ( ) == 'spherical mercator' ) : return SphericalMercator ( ) elif ( name . lower ( ) == 'wgs84' ) : return WGS84 ( ) else : try : return Core . loadClassPath ( name ) except Exception as e : raise Core . KnownUnknown ( ( 'Failed projection in configuration: "%s" - %s' % ( name , e ) ) )
retrieve a projection object by name .