fix IMPOSM_SKIP_COORDS/IMPOSM_SKIP_NODES for benchmarking
parent
fa4a8f7b73
commit
8f8bebb843
|
@ -195,6 +195,9 @@ func ReadPbf(
|
||||||
coordsSync.Wait()
|
coordsSync.Wait()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if skipCoords {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if withLimiter {
|
if withLimiter {
|
||||||
for i, _ := range nds {
|
for i, _ := range nds {
|
||||||
if !limiter.IntersectsBuffer(g, nds[i].Long, nds[i].Lat) {
|
if !limiter.IntersectsBuffer(g, nds[i].Long, nds[i].Lat) {
|
||||||
|
@ -225,6 +228,9 @@ func ReadPbf(
|
||||||
coordsSync.Wait()
|
coordsSync.Wait()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if skipNodes {
|
||||||
|
continue
|
||||||
|
}
|
||||||
numWithTags := 0
|
numWithTags := 0
|
||||||
for i, _ := range nds {
|
for i, _ := range nds {
|
||||||
m.Filter(&nds[i].Tags)
|
m.Filter(&nds[i].Tags)
|
||||||
|
|
Loading…
Reference in New Issue