valid_gis_names#

module wntr.network.io

valid_gis_names(complete_list=True, truncate_names=None)[source]#

Valid column/field names for GeoJSON or Shapefiles

Note that Shapefile field names are truncated to 10 characters (set truncate=10)

Parameters:
  • complete_list (bool) – Include a complete list of column/field names (beyond basic attributes)

  • truncate_names (None or int) – Truncate column/field names to specified number of characters, set truncate=10 for Shapefiles. None indicates no truncation.

Returns:

dict

Return type:

Dictionary of valid GeoJSON or Shapefile column/field names