Mercurial > gemma
comparison pkg/imports/wa.go @ 2622:02505fcff63c
WFS downloads: Accept 'geojson' as mime type, too.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 Mar 2019 15:39:12 +0100 |
parents | 7c83b5277c1c |
children | 9b6a02923bb4 |
comparison
equal
deleted
inserted
replaced
2621:78f75e99f9c5 | 2622:02505fcff63c |
---|---|
144 if wx.SortBy != "" { | 144 if wx.SortBy != "" { |
145 feedback.Info("Features will be sorted by '%s'", wx.SortBy) | 145 feedback.Info("Features will be sorted by '%s'", wx.SortBy) |
146 } | 146 } |
147 | 147 |
148 urls, err := wfs.GetFeaturesGET( | 148 urls, err := wfs.GetFeaturesGET( |
149 caps, wx.FeatureType, "application/json", wx.SortBy) | 149 caps, wx.FeatureType, wfs.FormatGeoJSON, wx.SortBy) |
150 if err != nil { | 150 if err != nil { |
151 feedback.Error("Cannot create GetFeature URLs. %v", err) | 151 feedback.Error("Cannot create GetFeature URLs. %v", err) |
152 return nil, err | 152 return nil, err |
153 } | 153 } |
154 | 154 |