From 232443dc1628ec308e18b9757e464079c25158de Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Mon, 6 May 2013 10:50:55 +0200 Subject: [PATCH] handle dense nodes with empty KeysVals --- parser/pbf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/pbf.go b/parser/pbf.go index 314f767..7f03aa8 100644 --- a/parser/pbf.go +++ b/parser/pbf.go @@ -78,7 +78,7 @@ func ReadDenseNodes( nodes[i].Id = lastId nodes[i].Long = (coordScale * float64(lonOffset+(granularity*lastLon))) nodes[i].Lat = (coordScale * float64(latOffset+(granularity*lastLat))) - if stringtable != nil { + if stringtable != nil && len(dense.KeysVals) > 0 { if dense.KeysVals[lastKeyValPos] != 0 { nodes[i].Tags = ParseDenseNodeTags(stringtable, &dense.KeysVals, &lastKeyValPos) } else {