forked from b-r-u/osmpbf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement optional nodes on ways mode
There is an optional feature `LocationsOnWays` available on OSM PBF files. It can be generated with [osmium add-locations-to-ways ...](https://docs.osmcode.org/osmium/latest/osmium-add-locations-to-ways.html), initially described [here](https://blog.jochentopf.com/2016-04-20-node-locations-on-ways.html), and documented at [osm wiki](https://wiki.openstreetmap.org/wiki/PBF_Format#Ways_and_Relations). This PR implement support for this feature in the same way as `way.refs()`. * Unit tests have been updated to test for required and optional features * Added refs() tests * added approx equality (could be used for all other tests too) * created a test file structure to keep track of what file has what features * a few helper utilities Should `nodes()` return None if the file has no `LocationsOnWays` set?
- Loading branch information
Showing
4 changed files
with
293 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.