Mercurial > gemma
comparison pkg/imports/wa.go @ 2729:7cb027be277d
WFS downloader: Really use username and password from parameters.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 19 Mar 2019 14:34:55 +0100 |
parents | a10022399e24 |
children | a996f2ca9fa5 |
comparison
equal
deleted
inserted
replaced
2728:18dc704e637e | 2729:7cb027be277d |
---|---|
177 missingProperties int | 177 missingProperties int |
178 badProperties int | 178 badProperties int |
179 features int | 179 features int |
180 ) | 180 ) |
181 | 181 |
182 // TODO: Fetch from parameters. | 182 if err := dl.Download(wx.User, wx.Password, func(url string, r io.Reader) error { |
183 user, password := "", "" | |
184 | |
185 if err := dl.Download(user, password, func(url string, r io.Reader) error { | |
186 feedback.Info("Get features from: '%s'", url) | 183 feedback.Info("Get features from: '%s'", url) |
187 rfc, err := wfs.ParseRawFeatureCollection(r) | 184 rfc, err := wfs.ParseRawFeatureCollection(r) |
188 if err != nil { | 185 if err != nil { |
189 return fmt.Errorf("parsing GetFeature document failed: %v", err) | 186 return fmt.Errorf("parsing GetFeature document failed: %v", err) |
190 } | 187 } |