美文网首页
cesium计算边界,cesium根据经纬度点数据集,计算边界

cesium计算边界,cesium根据经纬度点数据集,计算边界

作者: 可乐_加冰_ | 来源:发表于2023-01-17 16:35 被阅读0次
     let data = [
              {x:106.6567310, y: 29.5018702, value: 20},
              {x:106.6552488, y: 29.5006757, value: 50},
              {x:106.6411832, y: 29.4938576, value: 80},
              {x:106.6404616, y: 29.4924980, value: 40},
              {x:106.6421648, y: 29.4954613, value: 100},
            ];
    
            //将所有点位组装-计算边界值
            let bpoint = [];
            for (let coord of data) {
             console.log('coord',coord)
              bpoint.push(new Cesium.Cartographic(coord.x, coord.y, 0))
            }
            let bound = new Cesium.Rectangle.fromCartographicArray(bpoint);//计算所有点位的边界
            console.log('bound',bound);
            //将所有点位组装-计算边界值---完

    相关文章

      网友评论

          本文标题:cesium计算边界,cesium根据经纬度点数据集,计算边界

          本文链接:https://www.haomeiwen.com/subject/rwzthdtx.html