# HG changeset patch # User Tom Gottfried # Date 1582640442 -3600 # Node ID 331a59ebaf548856121f92e1f0bc4874f3d311b7 # Parent dd83c2dfffc9dbddd3300c8edd529db5024a8949 Fix fairway marks import log _ Show the value instead of the pointer _ Report number of features found in datasource instead of reporting number of stored features twice diff -r dd83c2dfffc9 -r 331a59ebaf54 pkg/imports/pointwfs.go --- a/pkg/imports/pointwfs.go Tue Feb 25 15:09:04 2020 +0100 +++ b/pkg/imports/pointwfs.go Tue Feb 25 15:20:42 2020 +0100 @@ -117,7 +117,7 @@ } if nilString(pwj.SortBy) != "" { - feedback.Info("Features will be sorted by '%s'", pwj.SortBy) + feedback.Info("Features will be sorted by '%s'", *pwj.SortBy) } dl, err := wfs.GetFeatures(caps, pwj.FeatureType, nilString(pwj.SortBy)) @@ -161,6 +161,9 @@ feedback.Info("Using EPSG: %d", epsg) + feedback.Info( + "Found %d features in data source", len(rfc.Features)) + for _, feature := range rfc.Features { if feature.Properties == nil || feature.Geometry.Coordinates == nil { missingProperties++ @@ -223,8 +226,6 @@ return nil, UnchangedError("no valid new features found") } - feedback.Info("Found %d usable features in data source", features) - if err = consumer.Commit(); err == nil { feedback.Info("Storing %d features took %s", features, time.Since(start))