Mercurial > gemma
diff cmd/wfs/main.go @ 1626:92da44ba610c
WFS downloader: Parse into raw feature collections.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 19 Dec 2018 15:07:14 +0100 |
parents | 3093bab05c81 |
children | 02505fcff63c |
line wrap: on
line diff
--- a/cmd/wfs/main.go Wed Dec 19 12:52:33 2018 +0100 +++ b/cmd/wfs/main.go Wed Dec 19 15:07:14 2018 +0100 @@ -46,6 +46,11 @@ continue } + feature := caps.FindFeatureType(*featureType) + if feature == nil { + log.Fatalf("Unknown feature type '%s'\n", *featureType) + } + urls, err := wfs.GetFeaturesGET( caps, *featureType, "application/json", *sortBy) check(err) @@ -54,5 +59,7 @@ if *dumpFeatures { check(dumpURLs(urls)) } + + parseFeatures(urls, feature.DefaultCRS) } }