parameters: (srcFieldDefn, name)
return_statement: return dstFieldDefn
docstring: Clone an existing ogr.FieldDefn with a new name
docstring_summary: Clone an existing ogr.FieldDefn with a new name
docstring_tokens: Clone an existing ogr . FieldDefn with a new name
function: def clone_shp_field_defn(srcFieldDefn, name):
      """
      Clone an existing ogr.FieldDefn with a new name
      """
      dstFieldDefn = ogr.FieldDefn(name, srcFieldDefn.GetType())
      dstFieldDefn.SetWidth(srcFieldDefn.GetWidth())
      dstFieldDefn.SetPrecision(srcFieldDefn.GetPrecision())
  
      return dstFieldDefn
function_tokens: def clone_shp_field_defn ( srcFieldDefn , name ) : dstFieldDefn = ogr . FieldDefn ( name , srcFieldDefn . GetType ( ) ) dstFieldDefn . SetWidth ( srcFieldDefn . GetWidth ( ) ) dstFieldDefn . SetPrecision ( srcFieldDefn . GetPrecision ( ) ) return dstFieldDefn