changeset 3947:5da5de770ec4

sr_upload: negate-z-index checkbox added
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 15 Jul 2019 11:45:59 +0200
parents d668742c8978
children 5020128dc5a0
files client/src/components/importconfiguration/types/Soundingresults.vue
diffstat 1 files changed, 21 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Sun Jul 14 17:33:01 2019 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Mon Jul 15 11:45:59 2019 +0200
@@ -106,6 +106,21 @@
             </small>
           </span>
         </div>
+        <div class="ml-3 text-left d-flex flex-column">
+          <div class="text-left">
+            <small class="text-muted">
+              <translate>Invert z-index</translate>
+            </small>
+          </div>
+          <div class="ml-4 mt-2 text-left">
+            <input
+              id="negatez"
+              type="checkbox"
+              class="form-check-input"
+              v-model="negateZ"
+            />
+          </div>
+        </div>
       </div>
     </div>
     <div class="mt-2">
@@ -219,7 +234,8 @@
       disableUpload: false,
       token: null,
       messages: [],
-      eMailNotification: false
+      eMailNotification: false,
+      negateZ: false
     };
   },
   methods: {
@@ -280,6 +296,7 @@
             const { bottleneck, date, epsg } = response.data.meta;
             const depthReference = response.data.meta["depth-reference"];
             const singlebeam = response.data.meta["single-beam"];
+            this.negateZ = response.data.meta["negate-z"];
             this.bottleneck = this.bottlenecks.find(
               bn => bn.properties.objnam === bottleneck
             );
@@ -318,7 +335,7 @@
           "single-beam",
           this.beamType === this.$options.BEAMTYPES.SINGLEBEAM
         );
-
+      formData.append("negate-z", this.negateZ == true);
       HTTP.post("/imports/sr", formData, {
         headers: {
           "X-Gemma-Auth": localStorage.getItem("token"),
@@ -432,7 +449,8 @@
               date: this.importDate,
               "single-beam":
                 this.beamType === this.$options.BEAMTYPES.SINGLEBEAM,
-              epsg: Number(this.projection)
+              epsg: Number(this.projection),
+              "negate-z": this.negateZ == true
             })
           )
         );