You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
1.7 KiB
6 lines
1.7 KiB
// All material copyright Esri, All Rights Reserved, unless otherwise specified. |
|
// See https://js.arcgis.com/4.30/esri/copyright.txt for details. |
|
//>>built |
|
define(["exports","./support/Ellipsoid","./support/spatialReferenceUtils"],function(c,b,d){function e(a){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${a.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}function k(a){return d.equals(a,l)}const l=e(b.earth),f=e(b.mars),g=e(b.moon),n={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${b.earth.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`}, |
|
p=f.wkt.toUpperCase(),q=g.wkt.toUpperCase();c.SphericalECEFSpatialReferenceLike=l;c.SphericalPCPFMarsLike=f;c.SphericalPCPFMoonLike=g;c.WGS84ECEFSpatialReferenceLike=n;c.getReferenceEllipsoid=function(a){if(null!=a&&d.isValid(a)){const m=a.wkid;a=a.wkt2??a.wkt;if(d.isWKIDFromMars(m))return b.mars;const h=a?.toUpperCase();if(a&&h===p)return b.mars;if(d.isWKIDFromMoon(m)||h&&h===q)return b.moon}return b.earth};c.getReferenceEllipsoidFromWKID=function(a){return d.isWKIDFromMars(a)?b.mars:d.isWKIDFromMoon(a)? |
|
b.moon:b.earth};c.isSphericalECEF=k;c.isSphericalPCPF=function(a){return k(a)||d.equals(a,f)||d.equals(a,g)};Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}); |