comparison pkg/imports/ubn.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 cfc523c70e90
children 4acbee65275d
comparison
equal deleted inserted replaced
2562:ce39e9954e85 2563:dc4fae4bdb8f
24 "gemma.intevation.de/gemma/pkg/soap/ifbn" 24 "gemma.intevation.de/gemma/pkg/soap/ifbn"
25 ) 25 )
26 26
27 type UploadedBottleneck struct { 27 type UploadedBottleneck struct {
28 Dir string `json:"dir"` 28 Dir string `json:"dir"`
29 // Tolerance used for axis snapping
30 Tolerance float64 `json:"tolerance"`
29 } 31 }
30 32
31 // UBNJobKind is the import queue type identifier. 33 // UBNJobKind is the import queue type identifier.
32 const UBNJobKind JobKind = "ubn" 34 const UBNJobKind JobKind = "ubn"
33 35
82 } 84 }
83 85
84 return dst.Export_bn_by_isrsResult.BottleNeckType, nil 86 return dst.Export_bn_by_isrsResult.BottleNeckType, nil
85 } 87 }
86 88
87 return storeBottlenecks(ctx, fetch, importID, conn, feedback) 89 return storeBottlenecks(
90 ctx, fetch, importID, conn, feedback, ubn.Tolerance)
88 } 91 }