Mercurial > gemma
comparison pkg/imports/modelconvert.go @ 4913:8c1a3d5e3962 fairway-marks-import
Add import for fairway marks of type BOYCAR
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 10 Feb 2020 18:47:27 +0100 |
parents | bcb8b69e4358 |
children | 9bd6a0ca63ea |
comparison
equal
deleted
inserted
replaced
4912:bfd8ef836998 | 4913:8c1a3d5e3962 |
---|---|
26 WGJobKind: func() interface{} { return new(models.WaterwayGaugeImport) }, | 26 WGJobKind: func() interface{} { return new(models.WaterwayGaugeImport) }, |
27 DMVJobKind: func() interface{} { return new(models.DistanceMarksVirtualImport) }, | 27 DMVJobKind: func() interface{} { return new(models.DistanceMarksVirtualImport) }, |
28 FDJobKind: func() interface{} { return new(models.FairwayDimensionImport) }, | 28 FDJobKind: func() interface{} { return new(models.FairwayDimensionImport) }, |
29 DMAJobKind: func() interface{} { return new(models.DistanceMarksAshoreImport) }, | 29 DMAJobKind: func() interface{} { return new(models.DistanceMarksAshoreImport) }, |
30 BCNLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | 30 BCNLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, |
31 BOYCARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
31 STJobKind: func() interface{} { return new(models.StretchImport) }, | 32 STJobKind: func() interface{} { return new(models.StretchImport) }, |
32 SECJobKind: func() interface{} { return new(models.SectionImport) }, | 33 SECJobKind: func() interface{} { return new(models.SectionImport) }, |
33 DSECJobKind: func() interface{} { return new(models.SectionDelete) }, | 34 DSECJobKind: func() interface{} { return new(models.SectionDelete) }, |
34 DSTJobKind: func() interface{} { return new(models.StretchDelete) }, | 35 DSTJobKind: func() interface{} { return new(models.StretchDelete) }, |
35 DSRJobKind: func() interface{} { return new(models.SoundingResultDelete) }, | 36 DSRJobKind: func() interface{} { return new(models.SoundingResultDelete) }, |
146 User: nilString(fmi.User), | 147 User: nilString(fmi.User), |
147 Password: nilString(fmi.Password), | 148 Password: nilString(fmi.Password), |
148 } | 149 } |
149 }, | 150 }, |
150 | 151 |
152 BOYCARJobKind: func(input interface{}) interface{} { | |
153 fmi := input.(*models.FairwayMarksImport) | |
154 return &FairwayMarks{ | |
155 URL: fmi.URL, | |
156 FeatureType: fmi.FeatureType, | |
157 SortBy: nilString(fmi.SortBy), | |
158 User: nilString(fmi.User), | |
159 Password: nilString(fmi.Password), | |
160 } | |
161 }, | |
162 | |
151 STJobKind: func(input interface{}) interface{} { | 163 STJobKind: func(input interface{}) interface{} { |
152 sti := input.(*models.StretchImport) | 164 sti := input.(*models.StretchImport) |
153 return &Stretch{ | 165 return &Stretch{ |
154 Name: sti.Name, | 166 Name: sti.Name, |
155 From: sti.From, | 167 From: sti.From, |