momepy
momepy copied to clipboard
BUG: Angular centrality suffers from the shortcut effect
Discussed in https://github.com/pysal/momepy/discussions/462
Originally posted by felipetavares80 January 23, 2023 Hello everyone.
I'm trying to do a angular weighted closeness centrality from a segmented road map.
I'm importing it from osmnx, simplifying the segments by Douglas-Peucker on Qgis, extracting the points and creating a graph for momepy closeness centrality analysis.
I did the graph but it seems that the results do not match the manual calculations when I set the angular option for closeness centrality. It matches for topological but not for angular.
I don't know if I'm doing something wrong on manual calculations or in the coding, but 'll appreciate a help on this.
Thanks in advance!
All the Best.
The Codes, the manual calculations document and the shapefiles is attached. angularclosenesspack.zip
@martinfleis Was there an earlier problem with this calculation?