diff pkg/imports/fm_bcnlat.go @ 4905:8cb201b551b3 fairway-marks-import

Replace bogus usage of pointer for type intrusion
author Tom Gottfried <tom@intevation.de>
date Fri, 07 Feb 2020 12:23:46 +0100
parents 53d929f658f3
children 644cb7c175f3
line wrap: on
line diff
--- a/pkg/imports/fm_bcnlat.go	Thu Feb 06 19:09:14 2020 +0100
+++ b/pkg/imports/fm_bcnlat.go	Fri Feb 07 12:23:46 2020 +0100
@@ -132,11 +132,10 @@
 
 	feedback.Info("Import fairway marks of type BCNLAT/bcnlat")
 
-	var props bcnlatProperties
 	fms, epsg, err := getFMFeatures(
 		feedback,
 		fm.FairwayMarks,
-		&props,
+		func() interface{} { return new(bcnlatProperties) },
 	)
 	if err != nil {
 		return nil, err