handle dense nodes with empty KeysVals

master
Oliver Tonnhofer 2013-05-06 10:50:55 +02:00
parent 34409088d7
commit 232443dc16
1 changed files with 1 additions and 1 deletions

View File

@ -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 {