to_gis#

module wntr.network.io

to_gis(wn, crs=None, pumps_as_points=False, valves_as_points=False)[source]#

Convert a WaterNetworkModel into GeoDataFrames

Parameters:
  • wn (WaterNetworkModel) – Water network model

  • crs (str, optional) – Coordinate reference system, by default None

  • pumps_as_points (bool, optional) – Represent pumps as points (True) or lines (False), by default False

  • valves_as_points (bool, optional) – Represent valves as points (True) or lines (False), by default False

Return type:

WaterNetworkGIS object that contains GeoDataFrames