read_shapefile#
module wntr.network.io
- read_shapefile(files, index_col='name', append=None)[source]#
Create or append a WaterNetworkModel from Esri Shapefiles
- Parameters:
files (dictionary) – Dictionary of Shapefile file or directory names, where the keys are in the set (‘junction’, ‘tanks’, ‘reservoirs’, ‘pipes’, ‘pumps’, ‘valves’) and values are the corresponding Shapefile filenames or directories
index_col (str, optional) – Column that contains the element name
append (WaterNetworkModel or None, optional) – Existing WaterNetworkModel to append. If None, a new WaterNetworkModel is created.
- Return type: