Mercurial > gemma
comparison pkg/imports/dma.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 | 427f86518097 |
children | 86c88fc0ff5e |
comparison
equal
deleted
inserted
replaced
2105:58a28715e386 | 2106:2b72f5e005aa |
---|---|
174 missingProperties int | 174 missingProperties int |
175 badProperties int | 175 badProperties int |
176 features int | 176 features int |
177 ) | 177 ) |
178 | 178 |
179 if err := wfs.DownloadURLs(urls, func(r io.Reader) error { | 179 if err := wfs.DownloadURLs(urls, func(url string, r io.Reader) error { |
180 feedback.Info("Get features from: '%s'", url) | |
180 rfc, err := wfs.ParseRawFeatureCollection(r) | 181 rfc, err := wfs.ParseRawFeatureCollection(r) |
181 if err != nil { | 182 if err != nil { |
182 return fmt.Errorf("parsing GetFeature document failed: %v", err) | 183 return fmt.Errorf("parsing GetFeature document failed: %v", err) |
183 } | 184 } |
184 if rfc.CRS != nil { | 185 if rfc.CRS != nil { |