from_gis#

module wntr.network.io

from_gis(gis_data, append=None)[source]#

Create or append a WaterNetworkModel from GeoDataFrames

Parameters:
  • gis_data (WaterNetworkGIS or dictionary of GeoDataFrames) – GeoDataFrames containing water network attributes. If gis_data is a dictionary, then the keys are junctions, tanks, reservoirs, pipes, pumps, and valves. If the pumps or valves are Points, they will be converted to Lines with the same start and end node location.

  • append (WaterNetworkModel or None, optional) – Existing WaterNetworkModel to append. If None, a new WaterNetworkModel is created.

Return type:

WaterNetworkModel