code: def geom_transform(geom, t_srs):
      
      s_srs = geom.GetSpatialReference()
      if not s_srs.IsSame(t_srs):
          ct = osr.CoordinateTransformation(s_srs, t_srs)
          geom.Transform(ct)
          geom.AssignSpatialReference(t_srs)
docs: Transform a geometry in place