make_pyshp_fields¶
-
pydriosm.reader.
make_pyshp_fields
(shp_data, field_names, decimal_precision)¶ Make fields data for writing shapefiles by pyshp.
- Parameters
shp_data (pandas.DataFrame) – .shp data
field_names (list or pandas.Index) – names of fields to be written as shapefile records
decimal_precision (int) – decimal precision for writing float records
- Returns
list of records in the .shp data
- Return type
list