changeset 3715:e1972355fcfb

import_soundingresults: parameter 'single-beam:true|false'
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 20 Jun 2019 13:47:54 +0200
parents 73589ed481f5
children 047a5e971ccd dbdef91a3ff3
files client/src/components/importconfiguration/types/Soundingresults.vue
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 13:06:45 2019 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 13:47:54 2019 +0200
@@ -313,7 +313,11 @@
       if (this.depthReference)
         formData.append("depth-reference", this.depthReference);
       if (this.projection) formData.append("epsg", this.projection);
-      if (this.beamType) formData.append("beam-type", this.beamType);
+      if (this.beamType)
+        formData.append(
+          "single-beam",
+          this.beamType === this.$options.BEAMTYPES.SINGLEBEAM
+        );
 
       HTTP.post("/imports/sr", formData, {
         headers: {
@@ -426,7 +430,8 @@
               "depth-reference": this.depthReference,
               bottleneck: this.bottleneck.properties.objnam,
               date: this.importDate,
-              "beam-type": this.beamType,
+              "single-beam":
+                this.beamType === this.$options.BEAMTYPES.SINGLEBEAM,
               projection: this.projection
             })
           )