original_docstring: 
      return extent geometry from multipolygon defined by wkt string
  
      Parameters
      ----------
      wkt_multipolygon : str
          WKT text containing points of geometry (e.g. polygon)
      epsg : int
          EPSG code of spatial reference of the points.
      segment : float
          for precision: distance of longest segment of the geometry polygon
          in units of input osr_spref (defined by epsg)
  
      Returns
      -------
      OGRGeometry
          a geometry holding the multipolygon and spatial reference
  
      
docstring: return extent geometry from multipolygon defined by wkt string
  Parameters
  
  wkt_multipolygon : str
  WKT text containing points of geometry
  epsg : int
  EPSG code of spatial reference of the points.
  segment : float
  for precision: distance of longest segment of the geometry polygon
  in units of input osr_spref (defined by epsg)
  
  Returns
  
  OGRGeometry
  a geometry holding the multipolygon and spatial reference
docstring_tokens: return extent geometry from multipolygon defined by wkt string Parameters wkt_multipolygon : str WKT text containing points of geometry epsg : int EPSG code of spatial reference of the points . segment : float for precision : distance of longest segment of the geometry polygon in units of input osr_spref ( defined by epsg ) Returns OGRGeometry a geometry holding the multipolygon and spatial reference
code: def create_geometry_from_wkt(wkt_multipolygon, epsg=4326, segment=None):
      """
      return extent geometry from multipolygon defined by wkt string
  
      Parameters
      ----------
      wkt_multipolygon : str
          WKT text containing points of geometry (e.g. polygon)
      epsg : int
          EPSG code of spatial reference of the points.
      segment : float
          for precision: distance of longest segment of the geometry polygon
          in units of input osr_spref (defined by epsg)
  
      Returns
      -------
      OGRGeometry
          a geometry holding the multipolygon and spatial reference
  
      """
      geom = ogr.CreateGeometryFromWkt(wkt_multipolygon)
  
      if epsg == 4326:
          geo_sr = get_geog_spatial_ref()
      else:
          geo_sr = osr.SpatialReference()
          geo_sr.SetWellKnownGeogCS("EPSG:{}".format(str(epsg)))
  
      geom.AssignSpatialReference(geo_sr)
  
      # modify the geometry such it has no segment longer then the given distance
      if segment is not None:
          geom = segmentize_geometry(geom, segment=segment)
  
      return geom
code_tokens: def create_geometry_from_wkt ( wkt_multipolygon , epsg = 4326 , segment = None ) : geom = ogr . CreateGeometryFromWkt ( wkt_multipolygon ) if epsg == 4326 : geo_sr = get_geog_spatial_ref ( ) else : geo_sr = osr . SpatialReference ( ) geo_sr . SetWellKnownGeogCS ( "EPSG:{}" . format ( str ( epsg ) ) ) geom . AssignSpatialReference ( geo_sr ) if segment is not None : geom = segmentize_geometry ( geom , segment = segment ) return geom
short_docstring: return extent geometry from multipolygon defined by wkt string
  Parameters
short_docstring_tokens: return extent geometry from multipolygon defined by wkt string Parameters
comment: """
      return extent geometry from multipolygon defined by wkt string
  
      Parameters
      ----------
      wkt_multipolygon : str
          WKT text containing points of geometry (e.g. polygon)
      epsg : int
          EPSG code of spatial reference of the points.
      segment : float
          for precision: distance of longest segment of the geometry polygon
          in units of input osr_spref (defined by epsg)
  
      Returns
      -------
      OGRGeometry
          a geometry holding the multipolygon and spatial reference
  
      """$SEP$# modify the geometry such it has no segment longer then the given distance