iwfm.gis.shp_add_field

iwfm.gis.shp_add_field(shapefilename, field_name='TEST', type='F', length=8, prec=5)[source]

Add a field to a shapefile with PyShp.

Parameters:
  • shapefilename (str) – shapefile name

  • field_name (str) – field name, default=’test’

  • type (str, default='F') – field type

  • length (int, default=8) – field length

  • prec (int, default=5) – field Precision

Return type:

nothing