| 12345 | /*All material copyright ESRI, All Rights Reserved, unless otherwise specified.See https://js.arcgis.com/4.25/esri/copyright.txt for details.*/import{isSome as n}from"../core/maybe.js";import e from"./SpatialReference.js";import{earth as r,mars as t,moon as i}from"./support/Ellipsoid.js";import{isMars as c,isMoon as o,isWKIDFromMars as S,isWKIDFromMoon as T}from"./support/spatialReferenceUtils.js";function G(n){return new e({wkt:`GEOCCS["Spherical geocentric",\n    DATUM["Not specified",\n      SPHEROID["Sphere",${n.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  ]`})}const I=G(r),E=G(t),R=G(i),p=new e({wkt:`GEOCCS["WGS 84",\n  DATUM["WGS_1984",\n    SPHEROID["WGS 84",${r.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]`});function A(n){return n&&n===t?E:n&&n===i?R:I}function O(n){return n&&(c(n)||n===E)?E:n&&(o(n)||n===R)?R:I}function u(e){return n(e)&&(c(e)||e===E)?t:n(e)&&(o(e)||e===R)?i:r}function s(n){return S(n)?t:T(n)?i:r}export{I as SphericalECEFSpatialReference,E as SphericalPCPFMars,R as SphericalPCPFMoon,p as WGS84ECEFSpatialReference,G as createSphericalPCPF,u as getReferenceEllipsoid,s as getReferenceEllipsoidFromWKID,O as getSphericalPCPF,A as getSphericalPCPFForEllipsoid};
 |