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

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

@ -225,3 +225,11 @@ export function getFeatureMap(userId, orderId) {
withCredentials: true, 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.$store.commit("setAltRange", null);
this.allSampleData.forEach((k, v) => { this.allSampleData.forEach((k, v) => {
k.dataTime = this.formatDatetime(k.dataTime); k.dataTime = this.formatDatetime(k.dataTime);
if (!k.alt) {
min = 0, max = 0;
} else {
min = min > k.alt ? k.alt : min; min = min > k.alt ? k.alt : min;
max = max < k.alt ? k.alt : max; max = max < k.alt ? k.alt : max;
}
}); });
if (this.allSampleData.length > 0) { if (this.allSampleData.length > 0) {
this.$store.commit("setAltRange", min + "," + (max + 1)); this.$store.commit("setAltRange", min + "," + (max + 1));

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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