prochitecture / blosm

GNU General Public License v3.0
11 stars 3 forks source link

[question] How to configure which OSM-ways are processed #88

Open vvoovv opened 8 months ago

vvoovv commented 8 months ago

For example, how to exclude footways and cycleways from processing?

polarkernel commented 8 months ago

For example, how to exclude footways and cycleways from processing?

There are two possibilities:

First, there are two functions of the way manager, getAllWays() and getAllVehicleWays(), which select different categories of ways. The latter excludes all roads (more or less) that are not accessible by motorized vehicles. There is a variable self.allWays in StreetGenerator (line 351) that includes all way categories, when True and the vehicle ways, when False. Of course, the definitions of these category groups, which reside in /defs/way.py, can be adapted.

Second, you can exclude individual unwanted categories by adding their tags to the ExcludedWayTags list in _/defs/roadpolygons.py. Currently, only the tag steps is excluded there (apparently since a very long time).