changeset 4954:331a59ebaf54 fairway-marks-import

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
author Tom Gottfried <tom@intevation.de>
date Tue, 25 Feb 2020 15:20:42 +0100
parents dd83c2dfffc9
children 5c43427fc2bf
files pkg/imports/pointwfs.go
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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))