From 8f8bebb843549089a2809a0522032d5bee0265d9 Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Wed, 4 Jan 2017 15:33:02 +0100 Subject: [PATCH] fix IMPOSM_SKIP_COORDS/IMPOSM_SKIP_NODES for benchmarking --- reader/reader.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reader/reader.go b/reader/reader.go index 726f58c..8905922 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -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)