修改图层点选、修改深度分层抽样,修改植被物候样本展示名称

tykong-cidian
duxiaoning 2023-12-14 16:46:57 +08:00
parent 9703d26ab5
commit bda7300372
8 changed files with 69 additions and 25 deletions

View File

@ -224,4 +224,12 @@ export function getFeatureMap(userId, orderId) {
method: "get",
withCredentials: true,
});
}
// 获取产品像元值
export function getProductValue(data) {
return request({
url: "/product/geo/pixel/value/v2",
method: "post",
data
});
}

View File

@ -546,8 +546,12 @@ export default {
this.$store.commit("setAltRange", null);
this.allSampleData.forEach((k, v) => {
k.dataTime = this.formatDatetime(k.dataTime);
min = min > k.alt ? k.alt : min;
max = max < k.alt ? k.alt : max;
if (!k.alt) {
min = 0, max = 0;
} else {
min = min > k.alt ? k.alt : min;
max = max < k.alt ? k.alt : max;
}
});
if (this.allSampleData.length > 0) {
this.$store.commit("setAltRange", min + "," + (max + 1));

View File

@ -67,7 +67,7 @@
</el-table-column>
<el-table-column prop="coverName" label="类别" show-overflow-tooltip sortable>
<template slot-scope="scope">{{
scope.row.paramStr | getCoverName
productSubType == 39 ? JSON.parse(scope.row.paramStr).covernm : JSON.parse(scope.row.paramStr).phenophase
}}</template>
</el-table-column>
<el-table-column prop="collectDate" label="采样时间" sortable show-overflow-tooltip min-width="120px;">
@ -504,8 +504,13 @@ export default {
this.$store.commit("setAltRange", null);
this.allSampleData.forEach((k, v) => {
k.dataTime = this.formatDatetime(k.dataTime);
min = min > k.alt ? k.alt : min;
max = max < k.alt ? k.alt : max;
const xqsmParam = JSON.parse(k.paramStr);
if (xqsmParam?.alt) {
min = min > xqsmParam.alt ? xqsmParam.alt : min;
max = max < xqsmParam.alt ? xqsmParam.alt : max;
} else {
min = 0, max = 0;
}
});
if (this.allSampleData.length > 0) {
this.$store.commit("setAltRange", min + "," + (max + 1));

View File

@ -155,7 +155,7 @@ export default {
? ""
: "分层深度区间不包括结束深度值;实际样本深度范围:[" +
this.$store.state.altRange +
")";
"]";
},
},
created() {},

View File

@ -474,8 +474,13 @@ export default {
this.$store.commit("setAltRange", null);
this.allSampleData.forEach((k, v) => {
k.dataTime = this.formatDatetime(k.dataTime);
min = min > k.alt ? k.alt : min;
max = max < k.alt ? k.alt : max;
const xqsmParam = JSON.parse(k.paramStr);
if (xqsmParam.alt) {
min = min > xqsmParam.alt ? xqsmParam.alt : min;
max = max < xqsmParam.alt ? xqsmParam.alt : max;
} else {
min = 0, max = 0;
}
});
if (this.allSampleData.length > 0) {
this.$store.commit("setAltRange", min + "," + (max + 1));

View File

@ -1,6 +1,6 @@
import CesiumNavigation from "cesium-navigation-es6";
import configValue from "../config/config.js";
import { getProductValue } from "@/api/common";
import { getProductValue } from "@/api/lang/pendingOrder";
const iconClose = require("@/assets/images/close.png");
@ -198,13 +198,19 @@ class CesiumUtils {
}
// 取回像元值
let pValue = 0;
const of = new FormData();
of.append("dataPath", sessionStorage.getItem("tifPath"));
of.append("lon", longitudeString);
of.append("lat", latitudeString);
// const of = new FormData();
// of.append("dataPath", sessionStorage.getItem("tifPath"));
// of.append("lon", longitudeString);
// of.append("lat", latitudeString);
const of = {
angleDataIds: [],
geoX: longitudeString,
geoY: latitudeString,
metaDataId: sessionStorage.getItem('metaDataId'),
referImageIds: []
}
getProductValue(of).then(res => {
pValue = res;
if (res.code == 200) pValue = res.data.imagePixel;
// 清空容器
const pendPreview =
document.getElementById("PendPreview") ||

View File

@ -1,5 +1,5 @@
import configValue from "../config/config.js";
import { getProductValue } from "@/api/common";
import { getProductValue } from "@/api/lang/pendingOrder";
class otgCesiumUtils {
//初始化地图
static initCesium(divMapId) {
@ -248,12 +248,19 @@ class otgCesiumUtils {
let pValue = 0;
that.farViewer.dataSources.removeAll();
const dataSource = new Cesium.CustomDataSource("textPoint");
const of = new FormData();
of.append("dataPath", sessionStorage.getItem("tifPath"));
of.append("lon", longitudeString);
of.append("lat", latitudeString);
// const of = new FormData();
// of.append("dataPath", sessionStorage.getItem("tifPath"));
// of.append("lon", longitudeString);
// of.append("lat", latitudeString);
const of = {
angleDataIds: [],
geoX: longitudeString,
geoY: latitudeString,
metaDataId: sessionStorage.getItem('metaDataId'),
referImageIds: []
}
getProductValue(of).then(res => {
pValue = res;
if (res.code == 200) pValue = res.data.imagePixel;
dataSource.entities.add({
position: new Cesium.Cartesian3.fromDegrees(
Number(longitudeString),
@ -299,11 +306,19 @@ class otgCesiumUtils {
let pValue = 0;
that.nearViewer.dataSources.removeAll();
const dataSource = new Cesium.CustomDataSource("textPoint");
const of = new FormData();
of.append("dataPath", sessionStorage.getItem("tifPath"));
of.append("lon", longitudeString);
of.append("lat", latitudeString);
// const of = new FormData();
// of.append("dataPath", sessionStorage.getItem("tifPath"));
// of.append("lon", longitudeString);
// of.append("lat", latitudeString);
const of = {
angleDataIds: [],
geoX: longitudeString,
geoY: latitudeString,
metaDataId: sessionStorage.getItem('metaDataId'),
referImageIds: []
}
getProductValue(of).then(res => {
if (res.code == 200) pValue = res.data.imagePixel;
dataSource.entities.add({
position: new Cesium.Cartesian3.fromDegrees(
Number(longitudeString),

View File

@ -324,6 +324,7 @@ export default {
minLon: minLon,
maxLon: maxLon,
};
sessionStorage.setItem('metaDataId', pm.metaDataId)
// geoserver
const geoWS = pm.geoWorkspace;
const geoLN = pm.geoLayerName;