|
@@ -183,7 +183,7 @@ export default {
|
|
|
} else {
|
|
|
result.push(c[0]);
|
|
|
result.push(c[1]);
|
|
|
- result.push(0); //Number(this.cutData.midHeight)
|
|
|
+ result.push(Number(this.cutData.midHeight));
|
|
|
}
|
|
|
});
|
|
|
return result;
|
|
@@ -244,15 +244,15 @@ export default {
|
|
|
viewer.dataSources.removeAll();
|
|
|
loadGeoJSON(res.data.bottomGeom, "#1E90A8", params);
|
|
|
loadGeoJSON(res.data.midGeom, "#ff0000", params);
|
|
|
- // let threeArray = this.geojsonToFlatArray(parse(this.form.geom));
|
|
|
+ let threeArray = this.geojsonToFlatArray(parse(this.form.geom));
|
|
|
// this.cutana(threeArray);
|
|
|
- // this.smooth(threeArray);
|
|
|
- let bthree = this.geojsonToFlatArray(parse(res.data.bottomGeom));
|
|
|
- let mthree = this.geojsonToFlatArray(parse(res.data.midGeom));
|
|
|
- console.log(parse(res.data.bottomGeom), bthree, "--");
|
|
|
- this.extract(bthree);
|
|
|
- console.log(parse(res.data.midGeom), mthree, "--");
|
|
|
- this.cutana(mthree);
|
|
|
+ this.smooth(threeArray);
|
|
|
+ // let bthree = this.geojsonToFlatArray(parse(res.data.bottomGeom));
|
|
|
+ // let mthree = this.geojsonToFlatArray(parse(res.data.midGeom));
|
|
|
+ // console.log(parse(res.data.bottomGeom), bthree, "--");
|
|
|
+ // this.extract(bthree);
|
|
|
+ // console.log(parse(res.data.midGeom), mthree, "--");
|
|
|
+ // this.cutana(mthree);
|
|
|
}
|
|
|
},
|
|
|
//地形抽出部分
|