Skip to content

Updates to graph cleaning

Compare
Choose a tag to compare
@songololo songololo released this 11 Nov 17:35
· 185 commits to master since this release

Updates to graph cleaning

Some general updates to the graph cleaning workflows.

  • The graph.nx_remove_dangling_nodes method's despine parameter is now an integer type and is active by default. Set to 0 if no despining is to occur.
  • The graph.nx_iron_edges method is now more aggressive.
  • The graphs.nx_consolidate_nodes method has been simplified with a new centroid_by_itx parameter taking the place of previous methods. This is set to True by default.
  • The io.osm_graph_from_poly has been simplified with parameters removed. If custom control is needed then the individual methods can be called manually against a graph derived with simplify=False. Non simplified graphs are now returned with simple geoms generated and any filler nodes removed.
  • Adds the util.measure_max_angle method.
  • Adds tests
  • Minor tweaks to simplification default params