I have a PostGIS database of road features which are split at intersections. Some of the features on an individual road have certain attribute info (i.e. speed limits) and others do not. I want to fill in the gaps, so that if one feature is missing a speed limit, it will automatically be assigned based on the fact that maybe four blocks south there is another feature which has the same name, roadtype, and is connected through other features to the original.
Right now all I can think of is a clunky and slow python script which will calculate predecessors and successor features, then use a bunch of loops to propagate down the road. It feels like that would kind of be reinventing the wheel a little bit, and I am wondering if there might be any tools to help with this? Performance is a bit of a concern because I would like to do this for cities containing over a million features, although it is an offline process so it doesnt necessarily need to be ultra fast.
I am using Python 2 and have access to ArcGIS tools.