missinglink / pbf

utilities for parsing OpenStreetMap PBF files and extracting geographic data
MIT License
21 stars 9 forks source link

breakpoints #10

Open missinglink opened 7 years ago

missinglink commented 7 years ago

the breakpoint code fails with some PBF files, it's assuming that there is one element type per block (▊), such as in:

▊  start: 0, size: 187
▊  start: 205, size: 2035051
⡀ type: node, count: 451837, low: 204648, high: 4294196628
▊  start: 2035273, size: 1610972
⡀ type: way, count: 59230, low: 1441662, high: 430268722
▊  start: 3646262, size: 188748
⣀ type: relation, count: 2578, low: 2851, high: 6403601

but fails when a block contains more than one element type:

▊  start: 0, size: 126
▊  start: 143, size: 89813
⣿ type: node, count: 8000, low: 49716107, high: 2599031033
▊  start: 89973, size: 126855
⣤ type: node, count: 4117, low: 2599031034, high: 4934249461
⡀ type: way, count: 1506, low: 6051343, high: 503185211
⡀ type: relation, count: 237, low: 62152, high: 7355307

need to think of a way to resolve this, or an alternative strategy for blocking until all the nodes are processed before starting on the ways