diff pkg/imports/modelconvert.go @ 2563:dc4fae4bdb8f

Expose axis snapping tolerance to users
author Tom Gottfried <tom@intevation.de>
date Fri, 08 Mar 2019 19:15:47 +0100
parents 09f9ae3d0526
children a10022399e24
line wrap: on
line diff
--- a/pkg/imports/modelconvert.go	Fri Mar 08 18:57:58 2019 +0100
+++ b/pkg/imports/modelconvert.go	Fri Mar 08 19:15:47 2019 +0100
@@ -39,8 +39,9 @@
 	BNJobKind: func(input interface{}) interface{} {
 		bi := input.(*models.BottleneckImport)
 		return &Bottleneck{
-			URL:      bi.URL,
-			Insecure: bi.Insecure,
+			URL:       bi.URL,
+			Tolerance: bi.Tolerance,
+			Insecure:  bi.Insecure,
 		}
 	},
 
@@ -127,6 +128,7 @@
 			Name:      sti.Name,
 			From:      sti.From,
 			To:        sti.To,
+			Tolerance: sti.Tolerance,
 			ObjNam:    sti.ObjNam,
 			NObjNam:   sti.NObjNam,
 			Source:    sti.Source,