comparison pkg/imports/sr.go @ 4791:1fef4679b07a

Added an endpoint GET api/imports/export to export imports.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 25 Oct 2019 13:03:50 +0200
parents 0feddad5bb6d
children f4abfd0ee8ad
comparison
equal deleted inserted replaced
4790:6f3730196ebb 4791:1fef4679b07a
213 best_utm(CAST(ST_Transform(ST_GeomFromWKB($1, $2::integer), 4326) AS geography)))), 213 best_utm(CAST(ST_Transform(ST_GeomFromWKB($1, $2::integer), 4326) AS geography)))),
214 best_utm(CAST(ST_Transform(ST_GeomFromWKB($1, $2::integer), 4326) AS geography)) 214 best_utm(CAST(ST_Transform(ST_GeomFromWKB($1, $2::integer), 4326) AS geography))
215 ` 215 `
216 ) 216 )
217 217
218 func (sr *SoundingResult) Description() (string, error) {
219
220 var descs []string
221
222 if sr.Bottleneck != nil {
223 descs = append(descs, *sr.Bottleneck)
224 }
225 if sr.Date != nil {
226 descs = append(descs, (*sr).Date.Format(common.DateFormat))
227 }
228 if sr.NegateZ != nil && *sr.NegateZ {
229 descs = append(descs, "negateZ")
230 }
231 return strings.Join(descs, "|"), nil
232 }
233
218 func (sr *SoundingResult) singleBeam() bool { 234 func (sr *SoundingResult) singleBeam() bool {
219 return sr.SingleBeam != nil && *sr.SingleBeam 235 return sr.SingleBeam != nil && *sr.SingleBeam
220 } 236 }
221 237
222 func (sr *SoundingResult) surtype() string { 238 func (sr *SoundingResult) surtype() string {