in2Trans.shpConversion.writeShapefile

writeShapefile(outputPath, fields, fieldNames, features, srs=None)[source]

Write features to a shapefile with given fields and properties.

Parameters
  • outputPath (pathlib.Path) – path where the shapefile will be written

  • fields (list) – the fields of the shapefile

  • fieldNames (list) – the names of the fields

  • features (list) – list of tuples containing (properties, geometry) for each feature

  • srs (str, optional) – the spatial reference system for the .prj file

Return type

none