comparison pkg/imports/wx.go @ 2106:2b72f5e005aa

WFS imports: Write get GetFeature URLs into import log.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 04 Feb 2019 15:49:17 +0100
parents 1ecfcf46e4da
children 86c88fc0ff5e
comparison
equal deleted inserted replaced
2105:58a28715e386 2106:2b72f5e005aa
181 missingProperties int 181 missingProperties int
182 badProperties int 182 badProperties int
183 features int 183 features int
184 ) 184 )
185 185
186 if err := wfs.DownloadURLs(urls, func(r io.Reader) error { 186 if err := wfs.DownloadURLs(urls, func(url string, r io.Reader) error {
187 feedback.Info("Get features from: '%s'", url)
187 rfc, err := wfs.ParseRawFeatureCollection(r) 188 rfc, err := wfs.ParseRawFeatureCollection(r)
188 if err != nil { 189 if err != nil {
189 return fmt.Errorf("parsing GetFeature document failed: %v", err) 190 return fmt.Errorf("parsing GetFeature document failed: %v", err)
190 } 191 }
191 if rfc.CRS != nil { 192 if rfc.CRS != nil {