original_docstring: Returns a Geometry from a bbox
  
      Args:
          bbox: string
              bbox as string comma separated or as float list
  
      Returns:
          Geometry
  
      Raises:
          ValueError, IndexError, GDALException
      
docstring: Returns a Geometry from a bbox
  Args:
  bbox: string
  bbox as string comma separated or as float list
  
  Geometry
  
  
docstring_tokens: Returns a Geometry from a bbox Args : bbox : string bbox as string comma separated or as float list Geometry
code: def geometry_from_bbox(bbox):
      '''Returns a Geometry from a bbox
  
      Args:
          bbox: string
              bbox as string comma separated or as float list
  
      Returns:
          Geometry
  
      Raises:
          ValueError, IndexError, GDALException
      '''
      list_bbox_values = bbox.split(',')
      if len(list_bbox_values) != 4:
          raise ValueError('A bbox is based of four values')
      if (
          Decimal(list_bbox_values[0]) == Decimal(list_bbox_values[2]) and
          Decimal(list_bbox_values[1]) == Decimal(list_bbox_values[3])
      ):
          bbox_geometry = Point(float(list_bbox_values[0]), float(list_bbox_values[1]))
      else:
          bbox_geometry = Polygon.from_bbox(list_bbox_values)
  
      # if large values, SRID is LV95. The default SRID is 4326
      if Decimal(list_bbox_values[0]) > 360:
          bbox_geometry.srid = 2056
  
      return bbox_geometry
code_tokens: def geometry_from_bbox ( bbox ) : list_bbox_values = bbox . split ( ',' ) if len ( list_bbox_values ) != 4 : raise ValueError ( 'A bbox is based of four values' ) if ( Decimal ( list_bbox_values [ 0 ] ) == Decimal ( list_bbox_values [ 2 ] ) and Decimal ( list_bbox_values [ 1 ] ) == Decimal ( list_bbox_values [ 3 ] ) ) : bbox_geometry = Point ( float ( list_bbox_values [ 0 ] ) , float ( list_bbox_values [ 1 ] ) ) else : bbox_geometry = Polygon . from_bbox ( list_bbox_values ) if Decimal ( list_bbox_values [ 0 ] ) > 360 : bbox_geometry . srid = 2056 return bbox_geometry
short_docstring: Returns a Geometry from a bbox
  Args:
  bbox: string
  bbox as string comma separated or as float list
short_docstring_tokens: Returns a Geometry from a bbox Args : bbox : string bbox as string comma separated or as float list
comment: '''Returns a Geometry from a bbox
  
      Args:
          bbox: string
              bbox as string comma separated or as float list
  
      Returns:
          Geometry
  
      Raises:
          ValueError, IndexError, GDALException
      '''$SEP$# if large values, SRID is LV95. The default SRID is 4326