当前位置: 首页 > article >正文

Cesium 获取BBOX

Cesium 获取BBOX

const getBBOX = (cartesian: Cesium.Cartesian3) => {
  let cartographic = Cesium.Cartographic.fromCartesian(cartesian);
  // 弧度转为角度(经纬度)
  let lon = Cesium.Math.toDegrees(cartographic.longitude);
  let lat = Cesium.Math.toDegrees(cartographic.latitude);
  const width_distance =
    lon + (0.5 * 360) / Math.pow(2, 18) - (lon - (0.5 * 360) / Math.pow(2, 18));
  const height_distance =
    lat + (0.5 * 360) / Math.pow(2, 18) - (lat - (0.5 * 360) / Math.pow(2, 18));
  const left = lon - 0.5 * width_distance;
  const bottom = lat - 0.5 * height_distance;
  const right = lon + 0.5 * width_distance;
  const top = lat + 0.5 * height_distance;
  const BBOX = left + ',' + bottom + ',' + right + ',' + top;
  return BBOX;
};

http://www.kler.cn/news/303923.html

相关文章:

  • SprinBoot+Vue网络商城海鲜市场的设计与实现
  • uniapp 发布苹果IOS详细流程,包括苹果开发者公司账号申请、IOS证书、.p12证书文件等
  • 【区块链通用服务平台及组件】微言科技数据智能中台
  • [网络]TCP/IP五层协议之应用层,传输层(1)
  • okhttp 报java.lang.IllegalStateException: closed
  • 为什么矩阵特征值之和等于主对角线元素之和,特征值乘积等于行列式值
  • 对话世优科技CEO纪智辉:AI模型让数字人发展按下加速键
  • 基于STM32的汽车仪表显示系统:集成CAN、UART与I2C总线设计流程
  • 【RAG】RAG再进化?基于长期记忆的检索增强生成新范式-MemoRAG
  • 盘古信息IMS 驱动智能工厂建设,助力制造企业降本增效
  • 力扣第79题 单词搜索
  • SprinBoot+Vue门诊管理系统的设计与实现
  • OceanBase 企业版OMS 4.2.3的使用
  • C语言 | Leetcode C语言题解之第391题完美矩形
  • MySQL:两阶段提交
  • [论文笔记]LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
  • 27. 什么是MyBatis的动态代理机制?如何生成Mapper接口的实现类?
  • DoS、DDoS、DRDoS 攻击
  • CRACO 快速使用
  • 初始爬虫5
  • Linux 挂载磁盘与开机自动挂载操作指南
  • Vue 2 生命周期详解
  • 在Ubuntu 18.04上安装Nginx的方法
  • Probabilistic Embeddings for Cross-Modal Retrieval 论文阅读
  • C++string模拟实现
  • Llama Factory :百种以上语言模型的统一高效微调框架
  • UDP聊天室项目
  • 若依系统(Security)增加微信小程序登录(自定义登录)
  • nginx部署时的路径配置问题
  • 网络安全要点总结