fix IMPOSM_SKIP_COORDS/IMPOSM_SKIP_NODES for benchmarking

master
Oliver Tonnhofer 2017-01-04 15:33:02 +01:00
parent fa4a8f7b73
commit 8f8bebb843
1 changed files with 6 additions and 0 deletions

View File

@ -195,6 +195,9 @@ func ReadPbf(
coordsSync.Wait()
continue
}
if skipCoords {
continue
}
if withLimiter {
for i, _ := range nds {
if !limiter.IntersectsBuffer(g, nds[i].Long, nds[i].Lat) {
@ -225,6 +228,9 @@ func ReadPbf(
coordsSync.Wait()
continue
}
if skipNodes {
continue
}
numWithTags := 0
for i, _ := range nds {
m.Filter(&nds[i].Tags)