Mercurial > gemma
changeset 1706:fb05027d93b6
Waterway axis: Be more verbose during import about feature type and sorting.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 07 Jan 2019 17:05:00 +0100 |
parents | dcbe2a7dc532 |
children | 74b66527ae81 |
files | pkg/imports/wx.go |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/wx.go Mon Jan 07 16:11:07 2019 +0100 +++ b/pkg/imports/wx.go Mon Jan 07 17:05:00 2019 +0100 @@ -147,12 +147,18 @@ return nil, fmt.Errorf("Unknown feature type '%s'", wx.FeatureType) } + feedback.Info("Found feature type '%s", wx.FeatureType) + epsg, err := wfs.CRSToEPSG(ft.DefaultCRS) if err != nil { feedback.Error("Unsupported CRS name '%s'", ft.DefaultCRS) return nil, err } + if wx.SortBy != "" { + feedback.Info("Features will be sorted by '%s'", wx.SortBy) + } + urls, err := wfs.GetFeaturesGET( caps, wx.FeatureType, "application/json", wx.SortBy) if err != nil {