From f373e0c0797e1800bf066fdfbb748bb9242230f6 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期二, 08 七月 2025 17:46:02 +0800 Subject: [PATCH] 泥位计 --- public/CimSDK/Workers/chunk-JOO5BKHH.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/public/CimSDK/Workers/chunk-JOO5BKHH.js b/public/CimSDK/Workers/chunk-JOO5BKHH.js new file mode 100644 index 0000000..7e8569e --- /dev/null +++ b/public/CimSDK/Workers/chunk-JOO5BKHH.js @@ -0,0 +1,6 @@ +/** + * SmartEarth WebSDK - https://websdk.terra-it.cn + * Version 5.4.1 + */ + +import{b as u,c,e as p}from"./chunk-UMC5CP2H.js";import{a as d}from"./chunk-72V3KRTJ.js";import{a as s}from"./chunk-VJ26MOOM.js";import{e as a}from"./chunk-E3YQ3WWZ.js";function e(t){this._ellipsoid=t??p.WGS84,this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(e.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}});e.mercatorAngleToGeodeticLatitude=function(t){return d.PI_OVER_TWO-2*Math.atan(Math.exp(-t))};e.geodeticLatitudeToMercatorAngle=function(t){t>e.MaximumLatitude?t=e.MaximumLatitude:t<-e.MaximumLatitude&&(t=-e.MaximumLatitude);let i=Math.sin(t);return .5*Math.log((1+i)/(1-i))};e.MaximumLatitude=e.mercatorAngleToGeodeticLatitude(Math.PI);e.prototype.project=function(t,i){let o=this._semimajorAxis,r=t.longitude*o,n=e.geodeticLatitudeToMercatorAngle(t.latitude)*o,m=t.height;return a(i)?(i.x=r,i.y=n,i.z=m,i):new u(r,n,m)};e.prototype.unproject=function(t,i){if(!a(t))throw new s("cartesian is required");let o=this._oneOverSemimajorAxis,r=t.x*o,n=e.mercatorAngleToGeodeticLatitude(t.y*o),m=t.z;return a(i)?(i.longitude=r,i.latitude=n,i.height=m,i):new c(r,n,m)};var A=e;export{A as a}; -- Gitblit v1.9.3