pysal / momepy

Urban Morphology Measuring Toolkit
https://docs.momepy.org
BSD 3-Clause "New" or "Revised" License
493 stars 59 forks source link

BUG: Angular centrality suffers from the shortcut effect #463

Open martinfleis opened 1 year ago

martinfleis commented 1 year ago

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](https://github.com/pysal/momepy/files/10479608/angularclosenesspack.zip)
jGaboardi commented 1 year ago

@martinfleis Was there an earlier problem with this calculation?