read_geojson#

module wntr.network.io

read_geojson(files, index_col='name', append=None)[source]#

Create or append a WaterNetworkModel from GeoJSON files

Parameters:
  • files (dictionary) – Dictionary of GeoJSON filenames, where the keys are in the set (‘junction’, ‘tanks’, ‘reservoirs’, ‘pipes’, ‘pumps’, ‘valves’) and values are the corresponding GeoJSON filename

  • 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:

WaterNetworkModel