iwfm.gis.shp_get_PyShp¶
- iwfm.gis.shp_get_PyShp(infile, verbose=False)[source]¶
Read a shapefile with PyShp.
- Parameters:
infile (str) –
input shapefile name
- verbosebool, default=False
True = command-line output on
- Returns:
shp – The caller is responsible for closing it (
shp.close()or use as a context manager:with iwfm.shp_get_PyShp(...) as shp).- Return type:
PyShp shapefile.Reader