comparison pkg/imports/gm.go @ 4812:8ab1e60b7f31

Another fix for undefined values in GM import.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 29 Oct 2019 17:30:03 +0100
parents c0fe2ac434bd
children 0644c2b3af54
comparison
equal deleted inserted replaced
4811:c0fe2ac434bd 4812:8ab1e60b7f31
397 convert(measure.Value) 397 convert(measure.Value)
398 convert(measure.Value_min) 398 convert(measure.Value_min)
399 convert(measure.Value_max) 399 convert(measure.Value_max)
400 400
401 // -99999 is used by some gauges to signal an error 401 // -99999 is used by some gauges to signal an error
402 if measure.Value == nil || *measure.Value == -99999 { 402 if measure.Value != nil && *measure.Value == -99999 {
403 badValue++ 403 badValue++
404 continue 404 continue
405 } 405 }
406 406
407 var dummy int 407 var dummy int