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.
7 lines
1.7 KiB
7 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 ../../core/mathUtils ../../core/libs/gl-matrix-2/math/mat4 ../../core/libs/gl-matrix-2/factories/vec3f64 ./localRotationUtils ./projectors ../support/spatialReferenceUtils".split(" "),function(m,t,n,p,q,a,u){function r(d){return d===a.ProjectionID.SPHERICAL_ECEF||d===a.ProjectionID.SPHERICAL_MARS_PCPF||d===a.ProjectionID.SPHERICAL_MOON_PCPF}const h=t.deg2rad(1),f=p.create(),g=p.create();m.computeTranslationToOriginAndRotation=function(d,k,e,l){if(null==d||null==l)return!1;var c=a.classifySpatialReference(d, |
|
a.sourceClassificationCache),b=a.classifySpatialReference(l,a.destClassificationCache);if(c===b&&!r(b)&&(c!==a.ProjectionID.UNKNOWN||u.equals(d,l)))return n.fromTranslation(e,k),!0;if(r(b)){c=a.projectionTable[c][a.ProjectionID.LON_LAT];b=a.projectionTable[a.ProjectionID.LON_LAT][b];if(null==c||null==b)return!1;c(k,0,f,0);b(f,0,g,0);q.computeENUToSphericalPCPFLocalRotation(h*f[0],h*f[1],e);e[12]=g[0];e[13]=g[1];e[14]=g[2];return!0}if(!(b!==a.ProjectionID.WEB_MERCATOR&&b!==a.ProjectionID.PLATE_CARREE&& |
|
b!==a.ProjectionID.WGS84&&b!==a.ProjectionID.CGCS2000||c!==a.ProjectionID.WGS84&&c!==a.ProjectionID.SPHERICAL_ECEF&&c!==a.ProjectionID.WEB_MERCATOR&&c!==a.ProjectionID.CGCS2000)){d=a.projectionTable[c][a.ProjectionID.LON_LAT];b=a.projectionTable[a.ProjectionID.LON_LAT][b];if(null==d||null==b)return!1;d(k,0,f,0);b(f,0,g,0);c===a.ProjectionID.SPHERICAL_ECEF?q.computeSphericalPCPFToENULocalRotation(h*f[0],h*f[1],e):n.identity(e);e[12]=g[0];e[13]=g[1];e[14]=g[2];return!0}return!1};Object.defineProperty(m, |
|
Symbol.toStringTag,{value:"Module"})}); |