@arcgis/core 5.0.0-next.86 → 5.0.0-next.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Ground.js +1 -1
- package/WebScene.js +1 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +14 -2
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.js +1 -1
- package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +80 -0
- package/applications/Components/OrientedImageryViewer/galleryUtils.js +5 -0
- package/applications/Components/clipboard.d.ts +106 -0
- package/applications/Components/clipboard.js +5 -0
- package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
- package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
- package/assets/esri/core/t9n/Units.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{6298e71e6c480d6f46e3.js → 0276e689e1371b40cff3.js} +1 -1
- package/assets/esri/core/workers/chunks/045a9cc900bb4ac8afde.js +1 -0
- package/assets/esri/core/workers/chunks/048173088bbeb1f6b8b6.js +1 -0
- package/assets/esri/core/workers/chunks/0be8b9d9ef56c37e74c3.js +1 -0
- package/assets/esri/core/workers/chunks/0bef671165e64f90ac86.js +1 -0
- package/assets/esri/core/workers/chunks/0c025d2b0d3162b07feb.js +1 -0
- package/assets/esri/core/workers/chunks/0c4ed18d67dea0c99f01.js +1 -0
- package/assets/esri/core/workers/chunks/0e0208b87566f4470f1d.js +1 -0
- package/assets/esri/core/workers/chunks/{981f05b5ef6f9c3f7e8a.js → 0fc0fd7618ef25dd6b67.js} +1 -1
- package/assets/esri/core/workers/chunks/{f1e1666bede364c069fc.js → 15c180deb8d09127ad31.js} +1 -1
- package/assets/esri/core/workers/chunks/1616ee2f6dce0203f1d5.js +1 -0
- package/assets/esri/core/workers/chunks/21bb414cb0623ffad577.js +1 -0
- package/assets/esri/core/workers/chunks/21c84e014c73bd85f4a3.js +1 -0
- package/assets/esri/core/workers/chunks/262677294d8c653e2b0b.js +1 -0
- package/assets/esri/core/workers/chunks/{5139bbe8f94df01467c7.js → 28a6a59033baa44bafab.js} +1 -1
- package/assets/esri/core/workers/chunks/{c5d56b85d34026507902.js → 28c273f34ffde25cebc6.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7e40118b4d645e9f8e1.js → 2a12026f1ca9e8900a8b.js} +1 -1
- package/assets/esri/core/workers/chunks/2bc9f407f89d554a43ce.js +1 -0
- package/assets/esri/core/workers/chunks/2f21c5ae4fbe85c2792b.js +1 -0
- package/assets/esri/core/workers/chunks/3332ee9727874953523c.js +1 -0
- package/assets/esri/core/workers/chunks/{c477b0ce55211339c4cb.js → 33f44cc192c72064b5b6.js} +1 -1
- package/assets/esri/core/workers/chunks/{1cf27708d17a4de75b68.js → 3672125daca3df24c8ab.js} +1 -1
- package/assets/esri/core/workers/chunks/37a607f3835ec6f60834.js +1 -0
- package/assets/esri/core/workers/chunks/{3ebd4cdafa7682062447.js → 39dd80c184ac48f877f1.js} +1 -1
- package/assets/esri/core/workers/chunks/3a3adf9b6502ad698aea.js +1 -0
- package/assets/esri/core/workers/chunks/3b5f24bb824c95996308.js +1 -0
- package/assets/esri/core/workers/chunks/{4a857a7f5e00dfab2b44.js → 3c663035cf872b66cb98.js} +1 -1
- package/assets/esri/core/workers/chunks/{32b09ca094377a305881.js → 3d924488471601a17915.js} +1 -1
- package/assets/esri/core/workers/chunks/{743165f9bc4d85748a0d.js → 42b56932340b6d0bc712.js} +1 -1
- package/assets/esri/core/workers/chunks/4de93e9f91fd891ed96f.js +1 -0
- package/assets/esri/core/workers/chunks/4eb02a03956d1c9c77ee.js +1 -0
- package/assets/esri/core/workers/chunks/{15132d36e7ccbb3c009e.js → 555a252bdb87e340bd02.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d791bfca20791d8e0af.js → 5670e430584f020a3530.js} +1 -1
- package/assets/esri/core/workers/chunks/{70df4331ed29d823bf38.js → 5b297353b058323f8080.js} +1 -1
- package/assets/esri/core/workers/chunks/5ef5dcca7c9b376f7f77.js +1 -0
- package/assets/esri/core/workers/chunks/{c12c095937b21e39ad3c.js → 614c63dae0158da0ed3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{8f3abaabc61858e929a5.js → 641450da2680ae09b8e7.js} +1 -1
- package/assets/esri/core/workers/chunks/{8b575ac55bc396c0c477.js → 687677acc05b5e87effe.js} +1 -1
- package/assets/esri/core/workers/chunks/{1aee859eaffa54ef2515.js → 727321c615f35d708d46.js} +1 -1
- package/assets/esri/core/workers/chunks/782c24211daacb47b0b2.js +1 -0
- package/assets/esri/core/workers/chunks/79067e7d1ebc46afd775.js +1 -0
- package/assets/esri/core/workers/chunks/7a454e4d6df3360e0ab9.js +1 -0
- package/assets/esri/core/workers/chunks/7da56ba34c81d2bbaf25.js +1 -0
- package/assets/esri/core/workers/chunks/{d8b72c6f5f9b2d013b7f.js → 824b45b04b4f4f91dbce.js} +1 -1
- package/assets/esri/core/workers/chunks/836d10ceb93ed19f0aa6.js +1 -0
- package/assets/esri/core/workers/chunks/{68d0bae1816061d96307.js → 837d39e70880e4310bda.js} +1 -1
- package/assets/esri/core/workers/chunks/8bcb2180ecc88a39b317.js +1 -0
- package/assets/esri/core/workers/chunks/{e95f90d59041640727da.js → 8c5d827cbf8869defb87.js} +1 -1
- package/assets/esri/core/workers/chunks/{7449af8f3637c1694660.js → 97155c8ac832d7c46f24.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbf21fda283836e8633c.js → 98cb131b62e30aee35e1.js} +1 -1
- package/assets/esri/core/workers/chunks/{e067bbf12f711fd5b9a6.js → 9b3b9df0aa0fdcc77aa2.js} +1 -1
- package/assets/esri/core/workers/chunks/{5852d291ef41201030d5.js → 9fa1512baa6e95d3f878.js} +21 -21
- package/assets/esri/core/workers/chunks/{96616126aaf319cd1c6f.js → a5ed35f53769feb751db.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6530c66804bede649d7.js → aa09e261d1f7dffaad8c.js} +1 -1
- package/assets/esri/core/workers/chunks/b268b4cbf5b0c856f88e.js +1 -0
- package/assets/esri/core/workers/chunks/b2f6cee006788ce3bd16.js +1 -0
- package/assets/esri/core/workers/chunks/{198ae9e02366870d3ec8.js → b46e772e415e2cfca896.js} +1 -1
- package/assets/esri/core/workers/chunks/{cee29c3a94376f6740d7.js → b4ab715a3c506e122f35.js} +1 -1
- package/assets/esri/core/workers/chunks/{b5ca894a6cb1a19676d5.js → b9756dce0b3af1a9dc54.js} +1 -1
- package/assets/esri/core/workers/chunks/baa7e90ec5259057d86b.js +1 -0
- package/assets/esri/core/workers/chunks/{52ae2073604deef63ea2.js → c083045d21636b95f26f.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a0c5271304189a2401d.js → c38098f7073a10efdb1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{adecd31fd64d6753682d.js → c7c865dc1a93e781a3e3.js} +1 -1
- package/assets/esri/core/workers/chunks/c8e56dc1239118ac2a60.js +1 -0
- package/assets/esri/core/workers/chunks/{e7e508258ad27468a6a5.js → cc6d9b2062b9de629111.js} +1 -1
- package/assets/esri/core/workers/chunks/d5386c0e77063c87fddd.js +1 -0
- package/assets/esri/core/workers/chunks/d782671235af2db1c458.js +1 -0
- package/assets/esri/core/workers/chunks/de33ce9b6f4e6c0e1389.js +1 -0
- package/assets/esri/core/workers/chunks/{0abb084b8a137f4fcdfc.js → e1c5773c12d9947bdc5f.js} +1 -1
- package/assets/esri/core/workers/chunks/e55ce8466aa979ac1e6b.js +1 -0
- package/assets/esri/core/workers/chunks/{21739c37160061f229ef.js → e585883d0036aa866420.js} +1 -1
- package/assets/esri/core/workers/chunks/e6d6d664fc9f2cd6a042.js +1 -0
- package/assets/esri/core/workers/chunks/e7cdc2a21104d84aec4a.js +1 -0
- package/assets/esri/core/workers/chunks/e9edf3987039def65859.js +1 -0
- package/assets/esri/core/workers/chunks/{3b434f318fdbbe4111e3.js → edbe52c2848486d64b16.js} +1 -1
- package/assets/esri/core/workers/chunks/{4f8895eb57ec6ab4b318.js → f5a61fa75ac877b5bb74.js} +1 -1
- package/assets/esri/core/workers/chunks/f9bc4edfdb1590be2d92.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +9 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/bundle.js +1 -1
- package/chunks/libtess-f32.js +1 -1
- package/chunks/libtess-f64.js +1 -1
- package/config.js +1 -1
- package/copyright.txt +84 -0
- package/core/Promise.d.ts +1 -1
- package/core/quantity.js +1 -1
- package/core/quantityFormatUtils.js +1 -1
- package/core/units.d.ts +1 -1
- package/core/units.js +1 -1
- package/core/workers/WorkerHandle.js +1 -1
- package/editing/Clipboard.js +5 -0
- package/geometry/ellipsoidUtils.js +1 -1
- package/geometry/libtess.js +1 -1
- package/geometry/projection/projectors.js +1 -1
- package/geometry/projectionUtils.js +1 -1
- package/geometry/support/meshUtils/projection.js +1 -1
- package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
- package/geometry/support/planetGCSUtils.js +1 -1
- package/geometry/support/spatialReferenceUtils.js +1 -1
- package/identity/IdentityModal.js +1 -1
- package/kernel.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.d.ts +30 -16
- package/layers/mixins/ImageryTileMixin.d.ts +2 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/functions/SpectralConversionFunction.js +5 -0
- package/layers/raster/functions/SpectralConversionFunctionArguments.js +5 -0
- package/layers/raster/functions/conversionUtils.js +1 -1
- package/layers/raster/functions/rasterFunctionHelper.js +1 -1
- package/layers/raster/functions/vectorFieldUtils.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +0 -4
- package/package.json +1 -1
- package/rest/imageService.d.ts +36 -19
- package/rest/imageService.js +1 -1
- package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/imagery/RasterVFContainer.js +1 -1
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/imagery/RasterVFTileContainer.js +1 -1
- package/views/2d/engine/rasterBrushes.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/AspectTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BandArithmeticTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ColormapToRGBTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CompositeBandTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ComputeChangeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ContrastBrightnessTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ConvolutionTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CurvatureTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ExtractBandTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/GrayscaleTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/HillshadeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/LocalTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/MaskTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/NDVITechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/RemapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ShadedReliefTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SlopeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +5 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryVFStrategy.js +1 -1
- package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementRawResult.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.d.ts +5 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/emissiveUtils.js +5 -0
- package/views/3d/layers/support/layerUtils.js +1 -1
- package/views/3d/support/mathUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/support/supportedSpatialReference.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +31 -23
- package/views/VideoView.js +1 -1
- package/views/input/ViewEvents.js +1 -1
- package/views/input/recognizers/VerticalTwoFingerDrag.js +1 -1
- package/views/input/types.d.ts +94 -0
- package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
- package/views/support/MeasurementWorker.js +1 -1
- package/views/support/MeasurementWorkerHandle.js +1 -1
- package/views/support/measurementUtils.js +1 -1
- package/views/support/screenUtils.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement2D.d.ts +1 -0
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/BasemapLayerList.d.ts +1 -0
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/CatalogLayerList.d.ts +1 -0
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Directions.d.ts +1 -0
- package/widgets/Directions.js +1 -1
- package/widgets/DistanceMeasurement2D.d.ts +1 -0
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor.d.ts +1 -0
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm.d.ts +1 -0
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable.d.ts +1 -0
- package/widgets/FeatureTable.js +1 -1
- package/widgets/FloorFilter.d.ts +1 -0
- package/widgets/FloorFilter.js +1 -1
- package/widgets/LayerList.d.ts +1 -0
- package/widgets/LayerList.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
- package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/services/TransformationService.js +5 -0
- package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +5 -0
- package/widgets/OrientedImageryViewer/support/geometryUtils.js +5 -0
- package/widgets/OrientedImageryViewer/support/typeUtils.js +5 -0
- package/widgets/ScaleRangeSlider.d.ts +1 -0
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Sketch.d.ts +1 -0
- package/widgets/Sketch.js +1 -1
- package/widgets/TableList.d.ts +1 -0
- package/widgets/TableList.js +1 -1
- package/widgets/TimeSlider.d.ts +1 -0
- package/widgets/TimeSlider.js +1 -1
- package/widgets/UtilityNetworkAssociations.d.ts +1 -0
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/widgets/UtilityNetworkTrace.d.ts +1 -0
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/UtilityNetworkValidateTopology.d.ts +1 -0
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/ValuePicker.d.ts +1 -0
- package/widgets/ValuePicker.js +1 -1
- package/assets/esri/core/workers/chunks/00e135dc1b4cb024973d.js +0 -1
- package/assets/esri/core/workers/chunks/03d037f9f04f165aac63.js +0 -1
- package/assets/esri/core/workers/chunks/03da31c7635d077e8d99.js +0 -1
- package/assets/esri/core/workers/chunks/0dcf1f3b6aa84cbe03a9.js +0 -1
- package/assets/esri/core/workers/chunks/185c97bc63ce546995ce.js +0 -1
- package/assets/esri/core/workers/chunks/1a62c456e791c82050fe.js +0 -1
- package/assets/esri/core/workers/chunks/21163137e345badb1aaf.js +0 -1
- package/assets/esri/core/workers/chunks/25dead73dfc5a4c19285.js +0 -1
- package/assets/esri/core/workers/chunks/2767b69085c9f7a1e1af.js +0 -1
- package/assets/esri/core/workers/chunks/43e9eaedf65921b58eb2.js +0 -1
- package/assets/esri/core/workers/chunks/4caec60ac0a5851730c6.js +0 -1
- package/assets/esri/core/workers/chunks/5119e3159617b8e1ea13.js +0 -1
- package/assets/esri/core/workers/chunks/59d3f3fbae775fd7686e.js +0 -1
- package/assets/esri/core/workers/chunks/5a706eecd8a988fae6b7.js +0 -1
- package/assets/esri/core/workers/chunks/5ba2bbbb42ef1920579d.js +0 -1
- package/assets/esri/core/workers/chunks/5cc731f161012b63c77a.js +0 -1
- package/assets/esri/core/workers/chunks/5fa8fe6353dbdda0b06a.js +0 -1
- package/assets/esri/core/workers/chunks/6107b58457a70c8de9da.js +0 -1
- package/assets/esri/core/workers/chunks/654eef3ad30f34c42e12.js +0 -1
- package/assets/esri/core/workers/chunks/6d9e92d9c2503d5dc8dd.js +0 -1
- package/assets/esri/core/workers/chunks/7130b09300032d3a5925.js +0 -1
- package/assets/esri/core/workers/chunks/7f7c4ffbdf7b20dc7a54.js +0 -1
- package/assets/esri/core/workers/chunks/804c9666d0dc548b9f79.js +0 -1
- package/assets/esri/core/workers/chunks/8258b1c8ba6d44ba19c3.js +0 -1
- package/assets/esri/core/workers/chunks/8f2fc50eb988c0228b05.js +0 -1
- package/assets/esri/core/workers/chunks/97ad3eb25ad003c16148.js +0 -1
- package/assets/esri/core/workers/chunks/a270e34bb248114ec280.js +0 -1
- package/assets/esri/core/workers/chunks/a56a5e00964d4cd59a66.js +0 -1
- package/assets/esri/core/workers/chunks/a774b4fc7df801503bea.js +0 -1
- package/assets/esri/core/workers/chunks/b1015e1f25b60c08d2cf.js +0 -1
- package/assets/esri/core/workers/chunks/c18a2948ae3cb527d8bb.js +0 -1
- package/assets/esri/core/workers/chunks/d4f4c0201d8b641709c0.js +0 -1
- package/assets/esri/core/workers/chunks/d6d9d56b3733622deab6.js +0 -1
- package/assets/esri/core/workers/chunks/dedd9d47ccc019ffc484.js +0 -1
- package/assets/esri/core/workers/chunks/e271065410ba5c872f53.js +0 -1
- package/assets/esri/core/workers/chunks/e8a0654cebafa22b5b56.js +0 -1
- package/assets/esri/core/workers/chunks/ecf7d34b37ce6f0877af.js +0 -1
- package/assets/esri/core/workers/chunks/f25eb512592a84a508c1.js +0 -1
- package/assets/esri/core/workers/chunks/f64ec13167eb51da2f9b.js +0 -1
- package/views/2d/engine/imagery/BrushVectorField.js +0 -5
- package/views/3d/analysis/AreaMeasurement/support/utils.js +0 -5
- package/views/3d/analysis/VolumeMeasurement/volumeMeasurementUtils.js +0 -5
- package/widgets/OrientedImageryViewer/dataCaptureUtils.js +0 -5
package/geometry/libtess.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__addDisposableResource as t,__disposeResources as s}from"tslib";import{getAssetUrl as r}from"../assets.js";import e from"../core/Error.js";let o=null,i=null,n=null,l=null;const a=4;async function c(){return o??=d(),o}function h(){return null!==n}async function u(){return i??=b(),i}function y(){return null!==l}async function d(){const t=await import("../chunks/libtess-f32.js"),s=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});n=s}async function b(){const t=await import("../chunks/libtess-f64.js"),s=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});l=s}function f(r,o,i=2){const l={stack:[],error:void 0,hasError:!1};try{const s=n;if(!s)throw new e("mesh:not-loaded","libtessF32 not loaded");const c=t(l,C.from(s,r),!1),h=t(l,w.from(s,o),!1),u=a*(r.length/i),y=t(l,new C(s,u*i),!1),d=s.triangulate(c.ptr,h.ptr,h.size,i,y.ptr,u);return{buffer:y.slice(0,d*i),vertexCount:d}}catch(c){l.error=c,l.hasError=!0}finally{s(l)}}function p(r,o,i=2){const n={stack:[],error:void 0,hasError:!1};try{const s=l;if(!s)throw new e("mesh:not-loaded","libtessF64 not loaded");const c=t(n,P.from(s,r),!1),h=t(n,w.from(s,o),!1),u=a*(r.length/i),y=t(n,new P(s,u*i),!1),d=s.triangulate(c.ptr,h.ptr,h.size,i,y.ptr,u);return{buffer:y.slice(0,d*i),vertexCount:d}}catch(c){n.error=c,n.hasError=!0}finally{s(n)}}function E(t){return t.HEAPF64}function m(t){return t.HEAPF32}function _(t){return t.HEAP32}class C{static from(t,s){const r=new C(t,s.length);return r.set(s),r}constructor(t,s){this._libtess=t,this.size=s,this.ptr=t.allocateCoordinateArray(s)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){m(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,s){const r=this.ptr/this.bytesPerCoordinate;return m(this._libtess).slice(r+t,r+s)}}class P{static from(t,s){const r=new P(t,s.length);return r.set(s),r}constructor(t,s){this._libtess=t,this.size=s,this.ptr=t.allocateCoordinateArray(s)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){E(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,s){const r=this.ptr/this.bytesPerCoordinate;return E(this._libtess).slice(r+t,r+s)}}class w{static from(t,s){const r=new w(t,s.length);return r.set(s),r}constructor(t,s){this._libtess=t,this.size=s,this.ptr=t.allocateLengthsArray(s)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,s){const r=this.ptr/this.bytesPerCoordinate;return _(this._libtess).slice(r+t,r+s)}}export{h as isLibtessF32Loaded,y as isLibtessF64Loaded,c as loadLibtessF32,u as loadLibtessF64,f as triangulateF32,p as triangulateF64};
|
|
5
|
+
import{__addDisposableResource as t,__disposeResources as s}from"tslib";import{getAssetUrl as r}from"../assets.js";import e from"../core/Error.js";import"../core/has.js";let o=null,i=null,n=null,l=null;const a=4;async function c(){return o??=d(),o}function h(){return null!==n}async function u(){return i??=b(),i}function y(){return null!==l}async function d(){const t=await import("../chunks/libtess-f32.js"),s=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});n=s}async function b(){const t=await import("../chunks/libtess-f64.js"),s=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});l=s}function f(r,o,i=2){const l={stack:[],error:void 0,hasError:!1};try{const s=n;if(!s)throw new e("mesh:not-loaded","libtessF32 not loaded");const c=t(l,C.from(s,r),!1),h=t(l,w.from(s,o),!1),u=a*(r.length/i),y=t(l,new C(s,u*i),!1),d=s.triangulate(c.ptr,h.ptr,h.size,i,y.ptr,u);0;return{buffer:y.slice(0,d*i),vertexCount:d}}catch(c){l.error=c,l.hasError=!0}finally{s(l)}}function p(r,o,i=2){const n={stack:[],error:void 0,hasError:!1};try{const s=l;if(!s)throw new e("mesh:not-loaded","libtessF64 not loaded");const c=t(n,P.from(s,r),!1),h=t(n,w.from(s,o),!1),u=a*(r.length/i),y=t(n,new P(s,u*i),!1),d=s.triangulate(c.ptr,h.ptr,h.size,i,y.ptr,u);0;return{buffer:y.slice(0,d*i),vertexCount:d}}catch(c){n.error=c,n.hasError=!0}finally{s(n)}}function E(t){return t.HEAPF64}function m(t){return t.HEAPF32}function _(t){return t.HEAP32}class C{static from(t,s){const r=new C(t,s.length);return r.set(s),r}constructor(t,s){this._libtess=t,this.size=s,this.ptr=t.allocateCoordinateArray(s)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){m(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,s){const r=this.ptr/this.bytesPerCoordinate;return m(this._libtess).slice(r+t,r+s)}}class P{static from(t,s){const r=new P(t,s.length);return r.set(s),r}constructor(t,s){this._libtess=t,this.size=s,this.ptr=t.allocateCoordinateArray(s)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){E(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,s){const r=this.ptr/this.bytesPerCoordinate;return E(this._libtess).slice(r+t,r+s)}}class w{static from(t,s){const r=new w(t,s.length);return r.set(s),r}constructor(t,s){this._libtess=t,this.size=s,this.ptr=t.allocateLengthsArray(s)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,s){const r=this.ptr/this.bytesPerCoordinate;return _(this._libtess).slice(r+t,r+s)}}export{h as isLibtessF32Loaded,y as isLibtessF64Loaded,c as loadLibtessF32,u as loadLibtessF64,f as triangulateF32,p as triangulateF64};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{clamp as n,rad2deg as l,deg2rad as e,asinClamped as t}from"../../core/mathUtils.js";import{getMetersPerUnitForSR as r}from"../../core/units.js";import{isSphericalECEF as u,WGS84ECEFSpatialReferenceLike as a,SphericalPCPFMarsLike as c,SphericalPCPFMoonLike as s}from"../ellipsoidUtils.js";import{moon as
|
|
5
|
+
import{clamp as n,rad2deg as l,deg2rad as e,asinClamped as t}from"../../core/mathUtils.js";import{getMetersPerUnitForSR as r}from"../../core/units.js";import{isSphericalECEF as u,WGS84ECEFSpatialReferenceLike as a,SphericalPCPFMarsLike as c,SphericalPCPFMoonLike as s,isMars as o,isMoon as i}from"../ellipsoidUtils.js";import{moon as f,mars as p,earth as h}from"../support/Ellipsoid.js";import{earthEllipsoidConstants as M}from"../support/geodesicConstants.js";import{equals as d,isWGS84 as E,isWebMercator as R,isPlateCarree as m}from"../support/spatialReferenceUtils.js";const w={2:{5:F,7:null,9:null,10:F,1:H,6:null,8:null,0:null,3:W,11:b,2:F,4:X},5:{5:F,7:null,9:null,10:F,1:H,6:null,8:null,0:null,3:W,11:b,2:F,4:X},7:{5:null,7:F,9:null,10:F,1:null,6:D,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:F,10:F,1:null,6:null,8:B,0:null,3:null,11:null,2:null,4:null},3:{5:S,7:null,9:null,10:S,1:j,6:null,8:null,0:null,3:F,11:U,2:S,4:q},4:{5:Y,7:null,9:null,10:Y,1:Z,6:null,8:null,0:null,3:$,11:G,2:Y,4:F},1:{5:N,7:null,9:null,10:N,1:F,6:null,8:null,0:null,3:O,11:x,2:N,4:Q},6:{5:null,7:L,9:null,10:L,1:null,6:F,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:K,10:K,1:null,6:null,8:F,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:F,3:null,11:null,2:null,4:null},10:{5:F,7:F,9:F,10:F,1:H,6:D,8:B,0:null,3:W,11:b,2:F,4:X},11:{5:k,7:null,9:null,10:k,1:y,6:null,8:null,0:null,3:A,11:F,2:k,4:v}};function C(n,l){return I(n,l)?.projector}function I(n,l){if(null==n||null==l)return null;if(_.source.spatialReference===n&&_.dest.spatialReference===l)return _;const e=T(n,_.source),t=T(l,_.dest);return 0===e&&0===t?d(n,l)?_.projector=F:_.projector=null:_.projector=w[e][t],_}function P(n,l){switch(C(n,l)){case F:return"copy3";case H:return"wgs84ToSphericalECEF";case W:return"wgs84ToWebMercator";case b:return"wgs84ToPlateCarree";case X:return"wgs84ToWGS84ECEF";case S:return"webMercatorToWGS84";case j:return"webMercatorToSphericalECEF";case q:return"webMercatorToWGS84ECEF";case U:return"webMercatorToPlateCarree";case Y:return"wgs84ECEFToWGS84";case Z:return"wgs84ECEFToSphericalECEF";case $:return"wgs84ECEFToWebMercator";case N:return"sphericalECEFToWGS84";case O:return"sphericalECEFToWebMercator";case L:return"sphericalMarsPCPFToMars2000";case K:return"sphericalMoonPCPFToMoon2000";case Q:return"sphericalECEFToWGS84ECEF";case D:return"mars2000ToSphericalPCPF";case B:return"moon2000ToSphericalPCPF";default:return null}}function T(n,l){return n?l.spatialReference===n?l.spatialReferenceId:(l.spatialReference=n,"metersPerUnit"in l&&(l.metersPerUnit=r(n,1)),u(n)?l.spatialReferenceId=1:E(n)?l.spatialReferenceId=2:R(n)?l.spatialReferenceId=3:m(n)?l.spatialReferenceId=11:n.wkt===a.wkt?l.spatialReferenceId=4:4490===n.wkid?l.spatialReferenceId=5:n.wkt===c.wkt?l.spatialReferenceId=6:n.wkt===s.wkt?l.spatialReferenceId=8:o(n)?l.spatialReferenceId=7:i(n)?l.spatialReferenceId=9:l.spatialReferenceId=0):0}function F(n,l,e,t){n!==e&&(e[t++]=n[l++],e[t++]=n[l++],e[t]=n[l]??0)}function S(n,l,e,t){e[t]=ln*(n[l]/tn),e[t+1]=ln*(en-2*Math.atan(Math.exp(-n[l+1]/tn))),e[t+2]=n[l+2]??0}function j(n,l,e,t){const r=n[l]/tn,u=en-2*Math.atan(Math.exp(-n[l+1]/tn)),a=tn+(n[l+2]??0),c=Math.cos(u)*a;e[t]=Math.cos(r)*c,e[t+1]=Math.sin(r)*c,e[t+2]=Math.sin(u)*a}function q(n,l,e,t){S(n,l,e,t),X(e,t,e,t)}function g(l,e,t,r,u){const a=.4999999*Math.PI,c=n(nn*l[e+1],-a,a),s=Math.sin(c);t[r++]=nn*l[e]*u.radius,t[r++]=u.halfSemiMajorAxis*Math.log((1+s)/(1-s)),t[r]=l[e+2]??0}function W(n,l,e,t){g(n,l,e,t,h)}function b(n,l,e,t){e[t]=n[l]*rn,e[t+1]=n[l+1]*rn,e[t+2]=n[l+2]??0}function k(n,l,e,t){e[t]=n[l]*un,e[t+1]=n[l+1]*un,e[t+2]=n[l+2]??0}function U(n,l,e,t){S(n,l,e,t),b(e,t,e,t)}function G(n,l,e,t){Y(n,l,e,t),b(e,t,e,t)}function x(n,l,e,t){N(n,l,e,t),b(e,t,e,t)}function y(n,l,e,t){k(n,l,e,t),H(e,t,e,t)}function A(n,l,e,t){k(n,l,e,t),W(e,t,e,t)}function v(n,l,e,t){k(n,l,e,t),X(e,t,e,t)}function z(n,l,e,t,r){const u=r+(n[l+2]??0),a=nn*n[l],c=nn*n[l+1],s=Math.cos(c)*u;e[t]=Math.cos(a)*s,e[t+1]=Math.sin(a)*s,e[t+2]=Math.sin(c)*u}function B(n,l,e,t){z(n,l,e,t,f.radius)}function D(n,l,e,t){z(n,l,e,t,p.radius)}function H(n,l,e,t){z(n,l,e,t,h.radius)}function J(n,l,e,r,u){const a=n[l],c=n[l+1],s=n[l+2]??0,o=Math.sqrt(a*a+c*c+s*s),i=t(s/(0===o?1:o)),f=Math.atan2(c,a);e[r++]=ln*f,e[r++]=ln*i,e[r]=o-u}function K(n,l,e,t){J(n,l,e,t,f.radius)}function L(n,l,e,t){J(n,l,e,t,p.radius)}function N(n,l,e,t){J(n,l,e,t,h.radius)}function O(n,l,e,t){N(n,l,e,t),W(e,t,e,t)}function Q(n,l,e,t){N(n,l,e,t),X(e,t,e,t)}function V(n,l,e,t,r){const u=nn*n[l],a=nn*n[l+1],c=n[l+2]??0,s=Math.sin(a),o=Math.cos(a),i=r.radius/Math.sqrt(1-r.eccentricitySquared*s*s);e[t++]=(i+c)*o*Math.cos(u),e[t++]=(i+c)*o*Math.sin(u),e[t++]=(i*(1-r.eccentricitySquared)+c)*s}function X(n,l,e,t){V(n,l,e,t,h)}function Y(n,l,e,t){const r=M,u=n[l],a=n[l+1],c=n[l+2]??0;let s,o,i,f,p,d,E,R,m,w,C,I,P,T,F,S,j,q,g,W,b;s=Math.abs(c),o=u*u+a*a,i=Math.sqrt(o),f=o+c*c,p=Math.sqrt(f),W=Math.atan2(a,u),d=c*c/f,E=o/f,T=r.a2/p,F=r.a3-r.a4/p,E>.3?(R=s/p*(1+E*(r.a1+T+d*F)/p),g=Math.asin(R),w=R*R,m=Math.sqrt(1-w)):(m=i/p*(1-d*(r.a5-T-E*F)/p),g=Math.acos(m),w=1-m*m,R=Math.sqrt(w)),C=1-h.eccentricitySquared*w,I=h.radius/Math.sqrt(C),P=r.a6*I,T=i-I*m,F=s-P*R,j=m*T+R*F,S=m*F-R*T,q=S/(P/C+j),g+=q,b=j+S*q/2,c<0&&(g=-g),e[t++]=ln*W,e[t++]=ln*g,e[t]=b}function Z(n,l,e,t){Y(n,l,e,t),H(e,t,e,t)}function $(n,l,e,t){Y(n,l,e,t),W(e,t,e,t)}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:F},nn=e(1),ln=l(1),en=.5*Math.PI,tn=h.radius,rn=tn*Math.PI/180,un=180/(tn*Math.PI);export{F as copy3,C as getProjector,I as getProjectorClassification,P as getProjectorName,un as invPlateCarreeScale,g as lonLatToWebMercatorComparable,w as projectionTable,J as sphericalPCPFtoLonLatElevation,W as wgs84ToWebMercator};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import n from"../core/Error.js";import{throwIfAborted as e,waitTick as r}from"../core/promiseUtils.js";import{trackAccess as t}from"../core/accessorSupport/tracking.js";import{SimpleObservable as o}from"../core/accessorSupport/tracking/SimpleObservable.js";import{create as i}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{assertNotMeshes as s,assertNotMesh as a}from"./asserts.js";import{isSphericalECEF as l,isSphericalPCPF as u}from"./ellipsoidUtils.js";import f from"./Extent.js";import c from"./Geometry.js";import p from"./Multipoint.js";import m from"./Point.js";import g from"./Polygon.js";import h from"./Polyline.js";import d from"./SpatialReference.js";import j from"./operators/support/GeographicTransformation.js";import{projectBuffer as y}from"./projection/projectBuffer.js";import{getProjector as
|
|
5
|
+
import n from"../core/Error.js";import{throwIfAborted as e,waitTick as r}from"../core/promiseUtils.js";import{trackAccess as t}from"../core/accessorSupport/tracking.js";import{SimpleObservable as o}from"../core/accessorSupport/tracking/SimpleObservable.js";import{create as i}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{assertNotMeshes as s,assertNotMesh as a}from"./asserts.js";import{isSphericalECEF as l,isSphericalPCPF as u}from"./ellipsoidUtils.js";import f from"./Extent.js";import c from"./Geometry.js";import p from"./Multipoint.js";import m from"./Point.js";import g from"./Polygon.js";import h from"./Polyline.js";import d from"./SpatialReference.js";import{WGS84ECEFSpatialReference as j}from"./spatialReferenceEllipsoidUtils.js";import R from"./operators/support/GeographicTransformation.js";import{projectBuffer as y}from"./projection/projectBuffer.js";import{getProjector as x}from"./projection/projectors.js";import{projectXYZToVector as w}from"./projection/projectXYZToVector.js";import{equals as S,isValid as M,isWGS84 as v,isWebMercator as z,isCGCS2000 as T}from"./support/spatialReferenceUtils.js";let A=null,Z=null,k=null,b=null,P={};const E=new o;function G(){return!!(Z?.isLoaded()&&k?.isLoaded()&&b?.isLoaded())}function O(){return!!G()||(t(E),D(),!1)}function U(n,e){return!n||!e||(J(n,e)||O())}function C(n,e){return!J(n,e)&&!G()}async function D(n){null==A&&(A=Promise.all([import("./operators/projectOperator.js").then(n=>(Z=n,Z.load())),import("./operators/json/projectOperator.js").then(n=>(k=n,k.load())),import("./operators/support/geographicTransformationUtils.js").then(n=>(b=n,b.load()))])),await A,e(n),E.notify()}function W(n,e,r){return Array.isArray(n)?0===n.length?[]:(s(n),I(n,n[0].spatialReference,e,r)):(a(n),I([n],n.spatialReference,e,r)[0])}function I(n,e,r,t){if(null==e||null==r)return n;if(J(e,r,t))return n.map(n=>Q(n,e,r));if(null==t?.geographicTransformation&&l(e)){return I(n.map(n=>Q(n,e,d.WGS84)),d.WGS84,r,{zConversionDisabled:t?.zConversionDisabled})}if(null==t?.geographicTransformation&&l(r)){return I(n,e,d.WGS84).map(n=>Q(n,d.WGS84,r))}if(!G())throw new Y;if(!t?.geographicTransformation)if(t?.extendedParams)t={...t,geographicTransformation:b.getTransformation(e,r,t.areaOfInterestExtent)||new R};else if(!t?.areaOfInterestExtent){const n=L(e,r);let o=P[n];o||(o=b.getTransformation(e,r)||new R,P[n]=o),t={geographicTransformation:o,zConversionDisabled:t?.zConversionDisabled}}return n[0].spatialReference||(n[0].spatialReference=e),n[0]instanceof c?Z.executeMany(n,r,t):k.executeMany(n,r,t)}function L(n,e){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}function B(n,e,r){try{return W(n,e,r)}catch(t){return null}}function V(n,e){const r=X([n],e);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function X(n,e,r){if(!G())for(const o of n)if(null!=o&&!S(o.spatialReference,e)&&M(o.spatialReference)&&M(e)&&!J(o.spatialReference,e))return t(E),{pending:D(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:S(n.spatialReference,e)?n:M(n.spatialReference)&&M(e)?W(n,e,r):null)}}class Y extends n{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){A=null,Z=null,k=null,b=null,P={}}const F={get loadPromise(){return A}};async function H(n,r,t){if(e(t),!n)return n;const o=X(Array.isArray(n)?n:[n],r,t);if(o.pending)return await o.pending,e(t),H(n,r,t);const i=o.geometries??[];return Array.isArray(n)?i:i[0]}function J(n,e,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!S(n,e)||M(n)&&M(e)&&!!x(n,e))}function K(n,e){if(S(n,e))return!0;if(!M(n)||!M(e))return!1;const r=v(n)||z(n)||T(n),t=v(e)||z(e)||T(e);return r&&t}async function N(n,e,t,o){if(G())return r(o);if(Array.isArray(n)){for(const{source:r,dest:i,options:s}of n)if(r&&i&&!J(r,i,s))return D(o)}else if(n&&e&&!J(n,e,t))return D(o);return r(o)}function Q(n,e,r){return n?"x"in n?_(n,e,new m,r,0):"xmin"in n?ln(n,e,new f,r,0):"rings"in n?sn(n,e,new g,r,0):"paths"in n?tn(n,e,new h,r,0):"points"in n?en(n,e,new p,r,0):null:null}function $(n,e,r=e.spatialReference,t=0){return null!=r&&null!=n.spatialReference&&null!=_(n,n.spatialReference,e,r,t)}function _(n,e,r,t,o){cn[0]=n.x,cn[1]=n.y;const i=n.z;return cn[2]=void 0!==i?i:o,y(cn,e,0,cn,t,0)?(r.x=cn[0],r.y=cn[1],r.spatialReference=t,void 0!==i||u(t)?(r.z=cn[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===n.m?(r.m=void 0,r.hasM=!1):(r.m=n.m,r.hasM=!0),r):null}function nn(n,e,r=e.spatialReference,t=0){return null!=n.spatialReference&&null!=r&&null!=en(n,n.spatialReference,e,r,t)}function en(n,e,r,t,o){const{points:i,hasZ:s,hasM:a}=n,l=[],u=i.length,f=[];for(const p of i)f.push(p[0],p[1],s?p[2]:o);if(!y(f,e,0,f,t,0,u))return null;const c=fn(s,t);for(let p=0;p<u;++p){const n=3*p,e=f[n],r=f[n+1];c&&a?l.push([e,r,f[n+2],i[p][3]]):c?l.push([e,r,f[n+2]]):a?l.push([e,r,i[p][2]]):l.push([e,r])}return r.points=l,r.spatialReference=t,r.hasZ=s,r.hasM=a,r}function rn(n,e,r=e.spatialReference,t=0){return null!=n.spatialReference&&null!=r&&null!=tn(n,n.spatialReference,e,r,t)}function tn(n,e,r,t,o){const{paths:i,hasZ:s,hasM:a}=n,l=[];if(!un(i,s??!1,a??!1,e,l,t,o))return null;const u=fn(s,t);return r.paths=l,r.spatialReference=t,r.hasZ=u,r.hasM=a,r}function on(n,e,r=e.spatialReference,t=0){return null!=n.spatialReference&&null!=r&&null!=sn(n,n.spatialReference,e,r,t)}function sn(n,e,r,t,o){const{rings:i,hasZ:s,hasM:a}=n,l=[];if(!un(i,s??!1,a??!1,e,l,t,o))return null;const u=fn(s,t);return r.rings=l,r.spatialReference=t,r.hasZ=u,r.hasM=a,r}function an(n,e,r=e.spatialReference,t=0){return null!=n.spatialReference&&null!=r&&null!=ln(n,n.spatialReference,e,r,t)}function ln(n,e,r,t,o){const{xmin:i,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:f}=n,c=u?n.zmin:o;if(!w(i,s,c,e,cn,t))return null;const p=fn(u,t);r.xmin=cn[0],r.ymin=cn[1],p&&(r.zmin=cn[2]);const m=u?n.zmax:o;return w(a,l,m,e,cn,t)?(r.xmax=cn[0],r.ymax=cn[1],p&&(r.zmax=cn[2]),f&&(r.mmin=n.mmin,r.mmax=n.mmax),r.spatialReference=t,r):null}function un(n,e,r,t,o,i,s=0){const a=new Array;for(const f of n)for(const n of f)a.push(n[0],n[1],e?n[2]:s);if(!y(a,t,0,a,i,0))return!1;let l=0;o.length=0;const u=fn(e,i);for(const f of n){const n=new Array;for(const e of f)u&&r?n.push([a[l++],a[l++],a[l++],e[3]]):u?n.push([a[l++],a[l++],a[l++]]):r?(n.push([a[l++],a[l++],e[2]]),l++):(n.push([a[l++],a[l++]]),l++);o.push(n)}return!0}function fn(n,e){return n||u(e)||S(e,j)}const cn=i();export{J as canProjectWithoutEngine,N as initializeProjection,K as isEqualBaseGCS,G as isLoaded,O as isLoadedOrLoad,U as isLoadedOrLoadFor,D as load,W as project,H as projectAsync,an as projectExtent,I as projectMany,nn as projectMultipoint,V as projectOrLoad,X as projectOrLoadMany,$ as projectPoint,on as projectPolygon,rn as projectPolyline,Q as projectWithoutEngine,C as requiresLoad,F as test,B as tryProject,q as unload};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{hasScaling as r,deg2rad as t}from"../../../core/mathUtils.js";import{normalFromMat4 as o,fromMat4 as e}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{invert as i}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{transformMat3 as a,normalize as
|
|
5
|
+
import{hasScaling as r,deg2rad as t}from"../../../core/mathUtils.js";import{normalFromMat4 as o,fromMat4 as e}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{invert as i}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{transformMat3 as a,normalize as m}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{create as s}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{isMars as c,isMoon as l}from"../../ellipsoidUtils.js";import{computeTranslationToOriginAndRotation as u}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as p}from"../../projection/projectBuffer.js";import{earth as y}from"../Ellipsoid.js";import{isCGCS2000 as d}from"../spatialReferenceUtils.js";import{y2lat as j}from"../webMercatorUtils.js";import{BufferViewVec3f as T,BufferViewVec3f64 as A}from"../buffer/BufferView.js";import{b as g,n as h}from"../../../chunks/vec3.js";import{t as b}from"../../../chunks/vec4.js";const E="Projection may be possible after calling projection.load().";function M(r,t,o,e){r.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${o.wkid}).${e?" ":""}${e}`)}function w(r,t,o,e,n,i){return S(0,T.fromTypedArray(r),0,A.fromTypedArray(t),o,A.fromTypedArray(e),n,T.fromTypedArray(i))?i:null}function x(r,t,o,e,n,i){return S(1,T.fromTypedArray(r),0,A.fromTypedArray(t),o,A.fromTypedArray(e),n,T.fromTypedArray(i))?i:null}function V(r,t,o,e){return p(r,t,0,o,e,0)?o:null}function k(r,t,o,e){return p(r,t,0,o,e,0)?o:null}function v(t,e,n){return o(z,n),g(e,t,z),r(z)&&h(e,e),e}function B(t,o,n){return e(z,n),b(o,t,z),r(z)&&h(o,o,4),o}function R(r,o,e,n){const i=0===o;return $(r,o,e,(r,o)=>{const e=Math.cos(t(r));o[0]=i?e:1/e,o[1]=1},n)}function U(r,t,o,e){const n=0===t;return $(r,t,o,(r,t)=>{const o=Math.cosh(-r/y.radius);t[0]=1,t[1]=n?o:1/o},e)}function $(r,t,o,e,n){const i=0===t?3:4,f=[0,0];for(let a=0,m=1;a<r.length;a+=i,m+=3){e(o[m],f);const t=r[a]*f[0],s=r[a+1]*f[1],c=r[a+2],l=1/Math.sqrt(t*t+s*s+c*c);n[a]=t*l,n[a+1]=s*l,n[a+2]=c*l,4===i&&(n[a+3]=r[a+3])}return n}function _(r,t,o,e,n,i){if(!S(0,T.fromTypedArray(r,4*Float32Array.BYTES_PER_ELEMENT),1,A.fromTypedArray(t),o,A.fromTypedArray(e),n,T.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let f=3;f<r.length;f+=4)i[f]=r[f];return i}function F(r,t,o,e,n,i){if(!S(1,T.fromTypedArray(r,16),1,A.fromTypedArray(t),o,A.fromTypedArray(e),n,T.fromTypedArray(i,16)))return null;for(let f=3;f<r.length;f+=4)i[f]=r[f];return i}function P(r,t,n,f,a){switch(u(f,n,q,f),1===r&&i(q,q),t){case 0:return o(a,q);case 1:return e(a,q)}}function S(r,t,o,e,n,i,f,s){if(!t)return;const c=e.count;if(L(n))for(let m=0;m<c;m++)i.getVec(m,N),t.getVec(m,Y),a(Y,Y,P(r,o,N,f,z)),s.setVec(m,Y);else for(let l=0;l<c;l++){i.getVec(l,N),t.getVec(l,Y);const n=j(e.get(l,1));let c=Math.cos(n);1===o!=(0===r)&&(c=1/c),P(r,o,N,f,z),0===r?(z[0]*=c,z[1]*=c,z[2]*=c,z[3]*=c,z[4]*=c,z[5]*=c):(z[0]*=c,z[3]*=c,z[6]*=c,z[1]*=c,z[4]*=c,z[7]*=c),a(Y,Y,z),m(Y,Y),s.setVec(l,Y)}return s}function L(r){return r.isWGS84||d(r)||c(r)||l(r)}const N=s(),Y=s(),q=f(),z=n();export{E as loadProjectErrorMessage,M as logProjectionError,k as projectFromPCPF,x as projectNormalFromPCPF,w as projectNormalToPCPF,F as projectTangentFromPCPF,_ as projectTangentToPCPF,V as projectToPCPF,v as transformNormal,B as transformTangent,R as transformVectorENUPlateCarree,U as transformVectorWMPlateCarree};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import t from"../../../core/Logger.js";import{floatEqualUlp as n}from"../../../core/mathUtils.js";import{getMetersPerCartesianUnitForSR as r,convertUnit as e}from"../../../core/units.js";import{normalFromMat4 as o}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as i}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{exactEquals as l,scale as a,invert as s,copy as c,multiply as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f,IDENTITY as m}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{negate as p,subtract as g,transformMat4 as x}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{create as h}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{WGS84ECEFSpatialReference as
|
|
5
|
+
import t from"../../../core/Logger.js";import{floatEqualUlp as n}from"../../../core/mathUtils.js";import{getMetersPerCartesianUnitForSR as r,convertUnit as e}from"../../../core/units.js";import{normalFromMat4 as o}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as i}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{exactEquals as l,scale as a,invert as s,copy as c,multiply as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as f,IDENTITY as m}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{negate as p,subtract as g,transformMat4 as x}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{create as h}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{isEarth as v}from"../../ellipsoidUtils.js";import{WGS84ECEFSpatialReference as j,getSphericalPCPF as A}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as w}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectPointToVector as y}from"../../projection/projectPointToVector.js";import{isRelativeVertexSpace as F,vertexSpaceEquals as b}from"../meshVertexSpaceUtils.js";import{a as d,t as R,b as S}from"../../../chunks/vec3.js";import{logProjectionError as U,projectToPCPF as M,projectNormalToPCPF as T,projectTangentToPCPF as B,transformNormal as E,transformTangent as L,projectFromPCPF as V,projectNormalFromPCPF as k,projectTangentFromPCPF as C}from"./projection.js";const O=()=>t.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function P(t,n,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=t;if(!y(n,o,e))return!1;const{origin:i}=r;return g(t,o,i),!0}const o=A(e),i=t;if(!y(n,i,o))return!1;const{origin:l}=r,a=lt;if(!w(e,l,a,o))return!1;const c=s(lt,a);return null!=c&&(x(t,i,c),!0)}function q(t,n,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=t,a=F(e)?o:null,s=Y(t.spatialReference,r,3);if(b(e,n)&&(!a||l(a.localMatrix,m))&&Z(s)){const{position:t,normal:n,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?e:e?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?J(t,t.vertexSpace,n.origin,r):G(t,t.vertexSpace,n.origin,r);case"georeferenced":return"local"===n.type?H(t,t.vertexSpace,n.origin,r):z(t,t.vertexSpace,n.origin,r)}}function z({vertexAttributes:t,transform:n,spatialReference:r},{origin:e},o,i){const l=Y(r,i,3),a=e||!Z(l)?c(rt,n?.localMatrix??m):null;a&&X(a,r,i,3);const{position:s,normal:u,tangent:f}=a?K(t,a):t,g=i?.allowBufferReuse,x=g?s:new Float64Array(s.length);let h=s;if(e&&(h=d(x,h,e)),o){const t=p(it,o);h=d(x,h,t)}return{position:h!==t.position||g?h:h.slice(),normal:u!==t.normal||g?u:u?.slice(),tangent:f!==t.tangent||g?f:f?.slice()}}function D(t,n){return n?.useEllipsoid&&v(t)?j:A(t)}function G({spatialReference:t,vertexAttributes:n,transform:r},{origin:e},o,i){const l=D(t,i);if(!w(t,e,rt,l))return U(O(),t,l),null;r&&u(rt,rt,r.localMatrix),X(rt,t,i,1);const a=new Float64Array(n.position.length),s=N(n.position,rt,t,a,l);if(!s)return null;const c=Q(s,t,a,l,n.normal,rt);if(n.normal&&!c)return null;const f=W(s,t,a,l,n.tangent,rt);if(n.tangent&&!f)return null;if(o){const t=p(it,o);d(s,s,t)}return{position:s,normal:c,tangent:f}}function H({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},i,l){const c=D(n,l);if(!w(n,i,rt,c))return U(O(),n,c),null;const u=1/Y(n,l,2);a(rt,rt,[u,u,u]);const f=s(et,rt),{position:m,normal:p,tangent:g}=I(t,e,r),x=new Float64Array(m.length),h=$(m,n,f,x,c);if(!h)return null;const v=o(ot,f),j=_(p,m,n,x,c,v,p!==t.normal?p:void 0);if(!j&&p)return null;const A=tt(g,m,n,x,c,v,g!==t.tangent?g:void 0);return!A&&g?null:{position:h,normal:j,tangent:A}}function I(t,n,r){if(!n)return t;if(!r){const{position:r,normal:e,tangent:o}=t;return{position:d(new Float64Array(r.length),r,n),tangent:o,normal:e}}const e=K(t,r.localMatrix);return d(e.position,e.position,n),e}function J({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},o,i){const l=D(n,i);if(!w(n,e,rt,l))return U(O(),n,l),null;if(r&&u(rt,rt,r.localMatrix),!w(n,o,et,l))return U(O(),l,n),null;s(et,et);const a=u(rt,et,rt);return X(a,n,i,3),K(t,a)}function K(t,n){const r=new Float64Array(t.position.length);R(r,t.position,n);const e=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return e&&t.normal&&E(t.normal,e,n),o&&t.tangent&&L(t.tangent,o,n),{position:r,normal:e,tangent:o}}function N(t,n,r,e,o){R(e,t,n);const i=new Float64Array(t.length);return V(e,o,i,r)?i:(U(O(),o,r),null)}function Q(t,n,r,e,o,i){if(null==o)return null;const l=new Float32Array(o.length);return E(o,l,i),k(l,t,n,r,e,l)?l:(U(O(),e,n),null)}function W(t,n,r,e,o,i){if(null==o)return null;const l=new Float32Array(o.length);return L(o,l,i),C(l,t,n,r,e,l)?l:(U(O(),e,n),null)}function X(t,n,r,e){const o=Y(n,r,e);Z(o)||a(t,t,[o,o,o])}function Y(t,n,r){const e=!!(1&r),o=!!(2&r),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let a=nt(i,t);e||!i||Z(a)||(O().warn("source unit conversion not supported"),a=1);let s=1/nt(l,t);return o||!l||Z(s)||(O().warn("target unit conversion not supported"),s=1),a*s}function Z(t){return n(t,1)}function $(t,n,r,e,o){const i=M(t,n,e,o);if(!i)return U(O(),n,o),null;const l=new Float64Array(i.length);return R(l,i,r),l}function _(t,n,r,e,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return T(t,n,r,e,o,a)?(S(a,a,i),a):(U(O(),r,o),null)}function tt(t,n,r,e,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return B(t,n,r,e,o,a)?(S(a,a,i,4),a):(U(O(),r,o),null)}function nt(t,n){if(null==t)return 1;const o=r(n);return 1/e(o,"meters",t)}const rt=f(),et=f(),ot=i(),it=h(),lt=f();export{q as convertVertexSpace,nt as getUnitToSpatialReferenceScaleConversion,P as projectPointToVertexSpace};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../SpatialReference.js";import{SphericalPCPFMars as
|
|
5
|
+
import{isMars as i,isMoon as e}from"../ellipsoidUtils.js";import r from"../SpatialReference.js";import{SphericalPCPFMars as t,SphericalPCPFMoon as o}from"../spatialReferenceEllipsoidUtils.js";import{equals as s}from"./spatialReferenceUtils.js";function l(l){return s(l,t)||i(l)?{wkid:104971}:s(l,o)||e(l)?{wkid:104903}:r.WGS84}export{l as getGCSForPlanet};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{replace as e}from"../../core/string.js";import{i as r,l as n,P as t,a as i}from"../../chunks/pe.js";import a from"./WKIDUnitConversion.js";const l=[102100,102113,3857,3785,900913],_=[104905,104971],E=[104903],o=[4326,...l,..._,...E],
|
|
5
|
+
import{replace as e}from"../../core/string.js";import{i as r,l as n,P as t,a as i}from"../../chunks/pe.js";import a from"./WKIDUnitConversion.js";const l=[102100,102113,3857,3785,900913],_=[104905,104971],E=[104903],o=[4326,...l,..._,...E],R=[-20037508.342788905,20037508.342788905],M=[-20037508.342787,20037508.342787],s={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:R,origin:M,dx:1e-5},u={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:R,origin:M,dx:1e-5},102100:s,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:R,origin:M,dx:1e-5},3857:s,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:s,104903:{wkTemplate:'GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400,0,AUTHORITY["ESRI","107903"]],AUTHORITY["ESRI","106903"]],PRIMEM["Reference_Meridian",0,AUTHORITY["ESRI","108900"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["ESRI","104903"]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function T(e,r){if(e===r)return!0;if(null==e||null==r)return!1;const n=e.wkid,t=r.wkid;if(null!=n||null!=t){if(n===t)return!0;if(O(e)&&O(r))return!0;const i=e.latestWkid;if(null!=i&&t===i)return!0;const a=r.latestWkid;return null!=a&&n===a}let i,a;return e.wkt2&&r.wkt2?(i=e.wkt2,a=r.wkt2):e.wkt&&r.wkt&&(i=e.wkt,a=r.wkt),!(!i||!a)&&i.toUpperCase()===a.toUpperCase()}async function S(e,a){if(e===a)return!0;r()||await n();const l=e=>{const r=e.wkt2||e.wkt;if(r){const e=t.fromString(i.PE_TYPE_COORDSYS,r);return e?.getCode()}const n=e.wkid??e.latestWkid;return n?t.coordsys(n)?.getCode():null},_=e?l(e):null,E=a?l(a):null;return null!=_&&null!=E&&_===E}function G(e){const r=e?.wkid;return null!=r&&r>=2e3&&u[r]||null}async function c(e,a){if(1===a&&!I(e)||2===a&&I(e))return e;r()||await n();const l=t.fromString(i.PE_TYPE_NONE,e);return l?.toString(1===a?i.PE_STR_FMT_WKT:i.PE_STR_FMT_WKT2)??null}function d(e){if(!e)return;const{wkid:r,vcsWkid:n,falseM:t,falseX:i,falseY:a,falseZ:l,mTolerance:_,mUnits:E,xyTolerance:o,xyUnits:R,zTolerance:M,zUnits:s}=e;if(r&&[n,t,i,a,l,_,E,o,R,M,s].every(e=>null==e))return String(r);const u={wkid:r,wkt:r?void 0:e.wkt||e.wkt2,vcsWkid:n,falseM:t,falseX:i,falseY:a,falseZ:l,mTolerance:_,mUnits:E,xyTolerance:o,xyUnits:R,zTolerance:M,zUnits:s};for(const[T,S]of Object.entries(u))null===S&&delete u[T];return JSON.stringify(u)}function A(e){if(!U(e))return!1;const{wkid:r}=e;if(r)return null==a[r];const n=e.wkt2||e.wkt;return!!n&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(n)}function P(e){return 4326===e?.wkid}function I(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function C(e){return 4490===e?.wkid}function O(e){const r=e?.wkid;return null!=r&&r>=2e3&&l.includes(r)}function k(e){return 32662===e?.wkid}function w(e){return 104971===e||104905===e}function f(e){return 104903===e}function D(e){const r=e?.wkid;return null!=r&&r>=2e3&&o.includes(r)}function U(e){if(null==e)return!1;const r=e.wkid;return null!=r&&r>=2e3||(null!=e.wkt2||null!=e.wkt)}const g={wkid:4326,wkt:e(u[4326].wkTemplate,{Central_Meridian:"0.0"})},p={wkid:102100,latestWkid:3857},W={wkid:32662};export{T as equals,S as equalsWithProjectionEngine,G as getInfo,c as getWktFromWkt,C as isCGCS2000,A as isGeographic,k as isPlateCarree,U as isValid,P as isWGS84,w as isWKIDFromMars,f as isWKIDFromMoon,I as isWKT2,O as isWebMercator,D as isWrappable,W as plateCarree,d as srToRESTValue,p as webMercator,M as webMercatorOrigin,R as webMercatorValid,g as wgs84};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as t}from"tslib";import{substitute as e}from"../intl.js";import{property as o,subclass as i}from"../core/accessorSupport/decorators.js";import{getCalciteModeClass as s}from"../support/modeUtils.js";import n from"../widgets/Widget.js";import{loadCalciteComponents as r}from"../widgets/support/componentsUtils.js";import{messageBundle as l,tsx as a}from"../widgets/support/widget.js";import{setFocus as c}from"../widgets/support/widgetUtils.js";const p="esri-identity-modal",d={base:p,info:`${p}__info`,notice:`${p}__notice`},u="ArcGIS Online";let m=class extends n{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return r({button:()=>import("@esri/calcite-components/dist/components/calcite-button"),dialog:()=>import("@esri/calcite-components/dist/components/calcite-dialog"),input:()=>import("@esri/calcite-components/dist/components/calcite-input"),label:()=>import("@esri/calcite-components/dist/components/calcite-label"),notice:()=>import("@esri/calcite-components/dist/components/calcite-notice")})}get title(){return this.commonMessages?.auth.signIn}render(){const{open:t,title:o,messages:i,signingIn:n,oAuthPrompt:r,server:l,resource:c,error:p}=this,{info:m,oAuthInfo:h,lblItem:g,invalidUser:b,noAuthService:v,lblUser:f,lblPwd:_,lblCancel:I,lblSigning:y,lblOk:w}=i;return a("div",{class:this.classes(d.base,s(this.container))},a("form",{bind:this,onsubmit:this._submit},a("calcite-dialog",{bind:this,heading:o,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",
|
|
5
|
+
import{__decorate as t}from"tslib";import{substitute as e}from"../intl.js";import{property as o,subclass as i}from"../core/accessorSupport/decorators.js";import{getCalciteModeClass as s}from"../support/modeUtils.js";import n from"../widgets/Widget.js";import{loadCalciteComponents as r}from"../widgets/support/componentsUtils.js";import{messageBundle as l,tsx as a}from"../widgets/support/widget.js";import{setFocus as c}from"../widgets/support/widgetUtils.js";const p="esri-identity-modal",d={base:p,info:`${p}__info`,notice:`${p}__notice`},u="ArcGIS Online";let m=class extends n{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return r({button:()=>import("@esri/calcite-components/dist/components/calcite-button"),dialog:()=>import("@esri/calcite-components/dist/components/calcite-dialog"),input:()=>import("@esri/calcite-components/dist/components/calcite-input"),label:()=>import("@esri/calcite-components/dist/components/calcite-label"),notice:()=>import("@esri/calcite-components/dist/components/calcite-notice")})}get title(){return this.commonMessages?.auth.signIn}render(){const{open:t,title:o,messages:i,signingIn:n,oAuthPrompt:r,server:l,resource:c,error:p}=this,{info:m,oAuthInfo:h,lblItem:g,invalidUser:b,noAuthService:v,lblUser:f,lblPwd:_,lblCancel:I,lblSigning:y,lblOk:w}=i;return a("div",{class:this.classes(d.base,s(this.container))},a("form",{bind:this,onsubmit:this._submit},a("calcite-dialog",{bind:this,heading:o,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",width:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},a("div",{class:d.info},e(r?h:m,{server:l&&/\.arcgis\.com/i.test(l)?u:l,resource:`(${c||g})`})),p?a("calcite-notice",{class:d.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},a("div",{slot:"message"},p.details?.httpStatus?b:v)):null,r?null:[a("calcite-label",null,f,a("calcite-input",{afterCreate:t=>this._usernameInputNode=t,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),a("calcite-label",null,_,a("calcite-input",{afterCreate:t=>this._passwordInputNode=t,bind:this,name:"password",required:!0,type:"password",value:""}))],a("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},I),a("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?y:w))))}_focusUsernameInput(){return c(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(t){t.preventDefault(),this._set("signingIn",!0);const e=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",e)}};t([o({readOnly:!0})],m.prototype,"container",void 0),t([o(),l("esri/t9n/common")],m.prototype,"commonMessages",void 0),t([o()],m.prototype,"error",void 0),t([o(),l("esri/identity/t9n/identity")],m.prototype,"messages",void 0),t([o()],m.prototype,"oAuthPrompt",void 0),t([o()],m.prototype,"open",void 0),t([o()],m.prototype,"signingIn",void 0),t([o()],m.prototype,"server",void 0),t([o({readOnly:!0})],m.prototype,"title",null),t([o()],m.prototype,"resource",void 0),m=t([i("esri.identity.IdentityModal")],m);const h=m;export{h as default};
|
package/kernel.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.
|
|
5
|
+
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.87",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__addDisposableResource as e,__disposeResources as t}from"tslib";import s from"../../../../core/Collection.js";import{toConst as r}from"../../../../core/compilerUtils.js";import o from"../../../../core/Error.js";import has from"../../../../core/has.js";import i from"../../../../core/Logger.js";import{throwIfAborted as n}from"../../../../core/promiseUtils.js";import{QueueProcessor as a}from"../../../../core/QueueProcessor.js";import u from"../../../../geometry/SpatialReference.js";import{set as p,create as l,expandWithRect as c,expandWithAABB as d,negativeInfinity as f,fromRect as m}from"../../../../geometry/support/aaBoundingBox.js";import{getQueryResultExtent as y,QueryEngine as h}from"../../data/QueryEngine.js";import{QueryEngineResult as g}from"../../data/QueryEngineResult.js";import{createDrawingInfo as _}from"./clientSideDefaults.js";import w from"../../../support/Field.js";import x from"../../../support/FieldsIndex.js";import{collectSQLFieldNames as I}from"../../../support/fieldUtils.js";import{fromParquetGeometryEncodingJSON as R}from"../../../support/parquetEncodingUtils.js";import{completeParquetLayerInfo as F,fromParquetJSONGeometryType as S,toParquetJSONGeometryType as C}from"../../../support/parquetUtils.js";import{loadParquetModule as q}from"../../../../libs/parquet/loadParquetModule.js";import{createParquetFile as b,readGeoMetadata as v}from"../../../../libs/parquet/parquet.js";import{FeatureStoreQueryAdapter as O}from"../../../../views/2d/layers/features/FeatureStoreQueryAdapter.js";import{FeatureSnapshotSourceChunk as Q}from"../../../../views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js";import{FeatureSourceChunkStore as j}from"../../../../views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js";import{FeatureMetadata as E}from"../../../../views/2d/layers/features/support/FeatureMetadata.js";import{FeatureSetReaderParquet as T}from"../../../../views/2d/layers/features/support/FeatureSetReaderParquet.js";const A=new O,P=4,B="__OBJECTID";class G{constructor(){this._fileInfos=new Map,this._queue=new a({concurrency:P,process:(e,t)=>this._executeQuery(e,t)})}async load(r){const n=r.spatialReference?u.fromJSON(r.spatialReference):void 0;if(n&&!n.isWGS84&&!n.isWebMercator)throw new o("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");const a=await F({urls:new s(r.urls),fields:r.fields?.map(e=>w.fromJSON(e)),geometryEncoding:r.geometryEncoding?R(r.geometryEncoding):null,geometryType:r.geometryType?S(r.geometryType):null,displayOptimization:r.displayOptimization,spatialReference:n},{customParameters:r.customParameters});if(!a.fields)throw new o("parquet:unsupported","Fields must be defined");let d;if(a.spatialReference&&a.geometryType){if(!a.spatialReference)throw new o("parquet:unsupported","SpatialReference must be defined");if(!a.spatialReference.isGeographic&&!a.spatialReference.isWebMercator)throw new o("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");a.spatialReference.isGeographic&&!a.spatialReference.isWGS84&&(i.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:a.spatialReference}),a.spatialReference=u.WGS84),d={geometry:a.geometryEncoding?{geometryType:C(a.geometryType),spatialReference:a.spatialReference.toJSON(),encoding:a.geometryEncoding.toJSON()}:null,displayOptimization:a.displayOptimization}}this.setCustomParameters(r.customParameters),this._geometryInfo=d;const m=r.urls;for(const e of m){const t=await b(e,{geometryInfo:d,getCustomParameters:()=>this._customParameters});this._fileInfos.set(e,{index:this._fileInfos.size,file:t})}this._capabilities=k(this.getFileStatistics());const y=this._fileInfos.values().next().value?.file;if(!y)return{layerDefinition:{},capabilities:k(null)};const{fields:h}=a;if(null==h)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",h);h.push(new w({name:B,type:"oid",alias:B}));const g={fields:h.map(e=>({...e.toJSON(),column:y.columnForFieldName(e.name)})),timeZoneByFieldName:null},I=x.fromJSON(g);this._fieldsIndex=I;const q=C(a.geometryType??"point");if(this._metadata=E.createFeature({fieldsIndex:g,geometryType:q,featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:a.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:q,featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:a.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},a.spatialReference&&(this._fullExtent=N(this._fileInfos.values(),a.spatialReference.toJSON())),null==this._fullExtent&&"location"===a.geometryEncoding?.type){const{xField:s,yField:r}=a.geometryEncoding,o=p(l(),f);for(const i of this._fileInfos.values())for(const n of i.file.rowGroups()){const i={stack:[],error:void 0,hasError:!1};try{const t=e(i,n.columnDescriptorForAttribute(s),!1),a=e(i,n.columnDescriptorForAttribute(r),!1),u=[t.minValue(),a.minValue(),t.maxValue(),a.maxValue()];c(o,u),n.free()}catch(v){i.error=v,i.hasError=!0}finally{t(i)}}this._fullExtent={xmin:o[0],ymin:o[1],xmax:o[3],ymax:o[4],spatialReference:a.spatialReference?.toJSON()}}return{capabilities:this._capabilities,layerDefinition:{fields:a.fields?.map(e=>e.toJSON()),drawingInfo:_(q),extent:this._fullExtent??void 0,geometryType:q,geometryEncoding:a.geometryEncoding?.toJSON(),displayOptimization:a.displayOptimization}}}destroy(){for(const e of this._fileInfos.values())e.file.free();this._fileInfos.clear(),this._queue.destroy()}setCustomParameters(e){this._customParameters=e}getFileStatistics(){if(!this._fileInfos.size)return null;const e=Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.byteLength(),0);return{featureCount:this._getFeatureCount(),byteLength:e}}async updateFiles(e){const t=new Set(e);for(const[s,r]of this._fileInfos.entries())t.has(s)?t.delete(s):(r.file.free(),this._fileInfos.delete(s));for(const s of t){const e=await b(s,{geometryInfo:this._geometryInfo,getCustomParameters:()=>this._customParameters});this._fileInfos.set(s,{index:this._fileInfos.size,file:e})}}async queryFeatures(e,t){this._validateQuery(e),W(e)||(e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0),(e.outStatistics||e.returnDistinctValues)&&delete e.returnGeometry;return(await this._enqueueQuery(e,t)).createQueryResponse()}async queryFeatureCount(e,t){if(this._validateQuery(e),!D(e))return this._getFeatureCount();delete e.outFields,delete e.returnGeometry;return(await this._enqueueQuery(e,t)).createQueryResponseForCount()}async queryObjectIds(e,t){if(this._validateQuery(e),!D(e))return Array.from({length:this._getFeatureCount()},(e,t)=>t);e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,delete e.returnGeometry,delete e.outFields;return(await this._enqueueQuery(e,t)).items.map(e=>e.getObjectId())}async queryExtent(e,t){if(this._validateQuery(e),this._fullExtent&&!D(e))return{count:this._getFeatureCount(),extent:this._fullExtent};const s=r(this._metadata.spatialReference);e.returnGeometry=!0,delete e.outFields;const o=p(l(),f),i=l(),n=await this._enqueueQuery(e,t);let a=0;for(const r of n.items)r.getBounds(i)&&(d(o,i),a+=1);return{count:a,extent:y(o,s,e.outSR?r(e.outSR):s,s,!1)}}_getFeatureCount(){return Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.numRows(),0)}_validateQuery(e){if(!this._capabilities.query.supportsStatistics&&e.outStatistics)throw new o("parquet:unsupported","Statistics queries are not supported",{query:e});if(!this._capabilities.query.supportsOrderBy&&e.orderByFields?.length)throw new o("parquet:unsupported","Queries using orderBy are not supported",{query:e});if(!this._capabilities.query.supportsDistinct&&e.returnDistinctValues)throw new o("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:e})}async*_fetchChunks(e,t){const s=await q();for(const r of this._fileInfos.values()){const o=s.Query.new();o.setOutFields(e.fields),o.setReturnGeometry(e.returnGeometry);const i=await r.file.executeQuery(o),a=[],u=i.next(t);for(let e=0;e<P;e++)a.push(i.next(t));let p=await u;for(;null!=p;){n(t);const e=new T(this._metadata,this._fieldsIndex,p,r.index),s=z([new Q(e,null,0,!1)],this._queryEngineParams),o=a.shift();a.push(i.next(t)),yield s,p=await o}}}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){const s=await this._getReadParams(e),r=await q();if(e.objectIds?.length)for(const a of this._fileInfos.values()){const o=r.Query.new();o.setOutFields(s.fields),o.setReturnGeometry(s.returnGeometry),o.setIds(new Uint32Array(e.objectIds));const i=await a.file.executeQuery(o,t);let n=await i.next(t),u=0;const p=[];for(;null!=n;){const e=new T(this._metadata,this._fieldsIndex,n,a.index),s=new Q(e,null,u++,!1);p.push(s),n=await i.next(t)}const l=[],c=z(p,this._queryEngineParams),d=await c.executeQueryForOpaqueFeatures(e,t);for(const e of d)l.push(e);return new g(l,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:A})}let o=e.resultRecordCount??this._getFeatureCount(),i=e.resultOffset??0;delete e.resultRecordCount,delete e.resultOffset;const n=[];for await(const a of this._fetchChunks(s,t)){const s=await a.executeQueryForOpaqueFeatures(e,t);if(s.length>i){const t=s.slice(i,Math.min(i+o,s.length));for(const e of t)n.push(e);if(i=0,o-=t.length,0===o)return new g(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:A})}else i-=s.length}return new g(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:A})}async _getReadParams(e){const t=new Set;if(e.where&&await I(t,this._fieldsIndex,e.where),e.outStatistics)for(const s of e.outStatistics)null!=s.onStatisticField&&t.add(s.onStatisticField);if(e.outFields)for(const s of e.outFields)t.add(s);return{fields:(t.has("*")?this._fieldsIndex.fields.map(e=>e.name):Array.from(t)).filter(e=>null!=this._fieldsIndex.get(e)?.column),returnGeometry:!!e.returnGeometry||!!e.geometry}}}function D(e){return Object.keys(e).some(e=>M(e))}function M(e){switch(e){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"where":case"objectIds":case"historicMoment":return!0;default:return!1}}function z(e,t){const s=new j;for(const r of e)s.insert(r);return new h({...t,featureStore:s})}function U(e){switch(e.length){case 4:return m(l(),e);case 6:return e;default:throw new o("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:e})}}function N(e,t){const s=p(l(),f);for(const r of e){const e=v(r.file);if(!e)return null;const t=e.columns[e.primary_column];if(!t.bbox)return null;const o=U(t.bbox);d(s,o)}return{xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:t}}function k(e){const t=e?.featureCount;let s=!1;return null!=t&&t<has("parquetlayer-full-query-feature-count")&&(s=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:s,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:s,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:s,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}function W(e){return!!(e.objectIds?.length||e.outStatistics||e.orderByFields?.length||e.returnDistinctValues)}export{G as default};
|
|
5
|
+
import{__addDisposableResource as e,__disposeResources as t}from"tslib";import s from"../../../../core/Collection.js";import{toConst as r}from"../../../../core/compilerUtils.js";import o from"../../../../core/Error.js";import has from"../../../../core/has.js";import i from"../../../../core/Logger.js";import{throwIfAborted as n}from"../../../../core/promiseUtils.js";import{QueueProcessor as a}from"../../../../core/QueueProcessor.js";import u from"../../../../geometry/SpatialReference.js";import{set as p,create as l,expandWithRect as c,expandWithAABB as d,negativeInfinity as f,fromRect as m}from"../../../../geometry/support/aaBoundingBox.js";import{getQueryResultExtent as y,QueryEngine as h}from"../../data/QueryEngine.js";import{QueryEngineResult as g}from"../../data/QueryEngineResult.js";import{createDrawingInfo as _}from"./clientSideDefaults.js";import w from"../../../support/Field.js";import x from"../../../support/FieldsIndex.js";import{collectSQLFieldNames as I}from"../../../support/fieldUtils.js";import{fromParquetGeometryEncodingJSON as R}from"../../../support/parquetEncodingUtils.js";import{completeParquetLayerInfo as F,fromParquetJSONGeometryType as S,toParquetJSONGeometryType as q}from"../../../support/parquetUtils.js";import{loadParquetModule as C}from"../../../../libs/parquet/loadParquetModule.js";import{createParquetFile as b,readGeoMetadata as v}from"../../../../libs/parquet/parquet.js";import{FeatureStoreQueryAdapter as O}from"../../../../views/2d/layers/features/FeatureStoreQueryAdapter.js";import{FeatureSnapshotSourceChunk as Q}from"../../../../views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js";import{FeatureSourceChunkStore as j}from"../../../../views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js";import{FeatureMetadata as E}from"../../../../views/2d/layers/features/support/FeatureMetadata.js";import{FeatureSetReaderParquet as T}from"../../../../views/2d/layers/features/support/FeatureSetReaderParquet.js";const A=new O,P=4,B="__OBJECTID";class G{constructor(){this._fileInfos=new Map,this._queue=new a({concurrency:P,process:(e,t)=>this._executeQuery(e,t)})}async load(r){const n=r.spatialReference?u.fromJSON(r.spatialReference):void 0;if(n&&!n.isWGS84&&!n.isWebMercator)throw new o("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");const a=await F({urls:new s(r.urls),fields:r.fields?.map(e=>w.fromJSON(e)),geometryEncoding:r.geometryEncoding?R(r.geometryEncoding):null,geometryType:r.geometryType?S(r.geometryType):null,displayOptimization:r.displayOptimization,spatialReference:n},{customParameters:r.customParameters});if(!a.fields)throw new o("parquet:unsupported","Fields must be defined");let d;if(a.spatialReference&&a.geometryType){if(!a.spatialReference)throw new o("parquet:unsupported","SpatialReference must be defined");if(!a.spatialReference.isGeographic&&!a.spatialReference.isWebMercator)throw new o("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");a.spatialReference.isGeographic&&!a.spatialReference.isWGS84&&(i.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:a.spatialReference}),a.spatialReference=u.WGS84),d={geometry:a.geometryEncoding?{geometryType:q(a.geometryType),spatialReference:a.spatialReference.toJSON(),encoding:a.geometryEncoding.toJSON()}:null,displayOptimization:a.displayOptimization}}this.setCustomParameters(r.customParameters),this._geometryInfo=d;const m=r.urls;await Promise.all(m.map(e=>this._addFile(e))),this._capabilities=k(this.getFileStatistics());const y=this._fileInfos.values().next().value?.file;if(!y)return{layerDefinition:{},capabilities:k(null)};const{fields:h}=a;if(null==h)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",h);h.push(new w({name:B,type:"oid",alias:B}));const g={fields:h.map(e=>({...e.toJSON(),column:y.columnForFieldName(e.name)})),timeZoneByFieldName:null},I=x.fromJSON(g);this._fieldsIndex=I;const C=q(a.geometryType??"point");if(this._metadata=E.createFeature({fieldsIndex:g,geometryType:C,featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:a.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:C,featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:a.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},a.spatialReference&&(this._fullExtent=N(this._fileInfos.values(),a.spatialReference.toJSON())),null==this._fullExtent&&"location"===a.geometryEncoding?.type){const{xField:s,yField:r}=a.geometryEncoding,o=p(l(),f);for(const i of this._fileInfos.values())for(const n of i.file.rowGroups()){const i={stack:[],error:void 0,hasError:!1};try{const t=e(i,n.columnDescriptorForAttribute(s),!1),a=e(i,n.columnDescriptorForAttribute(r),!1),u=[t.minValue(),a.minValue(),t.maxValue(),a.maxValue()];c(o,u),n.free()}catch(b){i.error=b,i.hasError=!0}finally{t(i)}}this._fullExtent={xmin:o[0],ymin:o[1],xmax:o[3],ymax:o[4],spatialReference:a.spatialReference?.toJSON()}}return{capabilities:this._capabilities,layerDefinition:{fields:a.fields?.map(e=>e.toJSON()),drawingInfo:_(C),extent:this._fullExtent??void 0,geometryType:C,geometryEncoding:a.geometryEncoding?.toJSON(),displayOptimization:a.displayOptimization}}}destroy(){for(const e of this._fileInfos.values())e.file.free();this._fileInfos.clear(),this._queue.destroy()}setCustomParameters(e){this._customParameters=e}getFileStatistics(){if(!this._fileInfos.size)return null;const e=Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.byteLength(),0);return{featureCount:this._getFeatureCount(),byteLength:e}}async updateFiles(e){const t=new Set(e);for(const[s,r]of this._fileInfos.entries())t.has(s)?t.delete(s):(r.file.free(),this._fileInfos.delete(s));await Promise.all(Array.from(t.values()).map(e=>this._addFile(e)))}async _addFile(e){const t=await b(e,{geometryInfo:this._geometryInfo,getCustomParameters:()=>this._customParameters});this._fileInfos.set(e,{index:this._fileInfos.size,file:t})}async queryFeatures(e,t){this._validateQuery(e),W(e)||(e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0),(e.outStatistics||e.returnDistinctValues)&&delete e.returnGeometry;return(await this._enqueueQuery(e,t)).createQueryResponse()}async queryFeatureCount(e,t){if(this._validateQuery(e),!D(e))return this._getFeatureCount();delete e.outFields,delete e.returnGeometry;return(await this._enqueueQuery(e,t)).createQueryResponseForCount()}async queryObjectIds(e,t){if(this._validateQuery(e),!D(e))return Array.from({length:this._getFeatureCount()},(e,t)=>t);e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,delete e.returnGeometry,delete e.outFields;return(await this._enqueueQuery(e,t)).items.map(e=>e.getObjectId())}async queryExtent(e,t){if(this._validateQuery(e),this._fullExtent&&!D(e))return{count:this._getFeatureCount(),extent:this._fullExtent};const s=r(this._metadata.spatialReference);e.returnGeometry=!0,delete e.outFields;const o=p(l(),f),i=l(),n=await this._enqueueQuery(e,t);let a=0;for(const r of n.items)r.getBounds(i)&&(d(o,i),a+=1);return{count:a,extent:y(o,s,e.outSR?r(e.outSR):s,s,!1)}}_getFeatureCount(){return Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.numRows(),0)}_validateQuery(e){if(!this._capabilities.query.supportsStatistics&&e.outStatistics)throw new o("parquet:unsupported","Statistics queries are not supported",{query:e});if(!this._capabilities.query.supportsOrderBy&&e.orderByFields?.length)throw new o("parquet:unsupported","Queries using orderBy are not supported",{query:e});if(!this._capabilities.query.supportsDistinct&&e.returnDistinctValues)throw new o("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:e})}async*_fetchChunks(e,t){const s=await C();for(const r of this._fileInfos.values()){const o=s.Query.new();o.setOutFields(e.fields),o.setReturnGeometry(e.returnGeometry);const i=await r.file.executeQuery(o),a=[],u=i.next(t);for(let e=0;e<P;e++)a.push(i.next(t));let p=await u;for(;null!=p;){n(t);const e=new T(this._metadata,this._fieldsIndex,p,r.index),s=U([new Q(e,null,0,!1)],this._queryEngineParams),o=a.shift();a.push(i.next(t)),yield s,p=await o}}}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){const s=await this._getReadParams(e),r=await C();if(e.objectIds?.length)for(const a of this._fileInfos.values()){const o=r.Query.new();o.setOutFields(s.fields),o.setReturnGeometry(s.returnGeometry),o.setIds(new Uint32Array(e.objectIds));const i=await a.file.executeQuery(o,t);let n=await i.next(t),u=0;const p=[];for(;null!=n;){const e=new T(this._metadata,this._fieldsIndex,n,a.index),s=new Q(e,null,u++,!1);p.push(s),n=await i.next(t)}const l=[],c=U(p,this._queryEngineParams),d=await c.executeQueryForOpaqueFeatures(e,t);for(const e of d)l.push(e);return new g(l,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:A})}let o=e.resultRecordCount??this._getFeatureCount(),i=e.resultOffset??0;delete e.resultRecordCount,delete e.resultOffset;const n=[];for await(const a of this._fetchChunks(s,t)){const s=await a.executeQueryForOpaqueFeatures(e,t);if(s.length>i){const t=s.slice(i,Math.min(i+o,s.length));for(const e of t)n.push(e);if(i=0,o-=t.length,0===o)return new g(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:A})}else i-=s.length}return new g(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:A})}async _getReadParams(e){const t=new Set;if(e.where&&await I(t,this._fieldsIndex,e.where),e.outStatistics)for(const s of e.outStatistics)null!=s.onStatisticField&&t.add(s.onStatisticField);if(e.outFields)for(const s of e.outFields)t.add(s);return{fields:(t.has("*")?this._fieldsIndex.fields.map(e=>e.name):Array.from(t)).filter(e=>null!=this._fieldsIndex.get(e)?.column),returnGeometry:!!e.returnGeometry||!!e.geometry}}}function D(e){return Object.keys(e).some(e=>M(e))}function M(e){switch(e){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"where":case"objectIds":case"historicMoment":return!0;default:return!1}}function U(e,t){const s=new j;for(const r of e)s.insert(r);return new h({...t,featureStore:s})}function z(e){switch(e.length){case 4:return m(l(),e);case 6:return e;default:throw new o("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:e})}}function N(e,t){const s=p(l(),f);for(const r of e){const e=v(r.file);if(!e)return null;const t=e.columns[e.primary_column];if(!t.bbox)return null;const o=z(t.bbox);d(s,o)}return{xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:t}}function k(e){const t=e?.featureCount;let s=!1;return null!=t&&t<has("parquetlayer-full-query-feature-count")&&(s=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:s,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:s,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:s,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}function W(e){return!!(e.objectIds?.length||e.outStatistics||e.orderByFields?.length||e.returnDistinctValues)}export{G as default};
|
|
@@ -13,6 +13,7 @@ import type ImageAngleParameters from "../../rest/support/ImageAngleParameters.j
|
|
|
13
13
|
import type ImageAngleResult from "../../rest/support/ImageAngleResult.js";
|
|
14
14
|
import type ImageAreaParameters from "../../rest/support/ImageAreaParameters.js";
|
|
15
15
|
import type ImageAreaResult from "../../rest/support/ImageAreaResult.js";
|
|
16
|
+
import type ImageBoundaryParameters from "../../rest/support/ImageBoundaryParameters.js";
|
|
16
17
|
import type ImageBoundaryResult from "../../rest/support/ImageBoundaryResult.js";
|
|
17
18
|
import type ImageDistanceParameters from "../../rest/support/ImageDistanceParameters.js";
|
|
18
19
|
import type ImageDistanceResult from "../../rest/support/ImageDistanceResult.js";
|
|
@@ -45,9 +46,22 @@ import type { DynamicFetchRasterOptions, RasterInterpolation, RasterNoDataInterp
|
|
|
45
46
|
import type { RasterRendererUnion } from "../../renderers/support/raster/types.js";
|
|
46
47
|
import type { RequestOptions } from "../../request/types.js";
|
|
47
48
|
import type { ImageServiceStatisticsHistogramsResult, ImageServiceHistogramsResult } from "../../rest/imageService.js";
|
|
49
|
+
import type { FindImagesParametersProperties } from "../../rest/support/FindImagesParameters.js";
|
|
50
|
+
import type { ImageAngleParametersProperties } from "../../rest/support/ImageAngleParameters.js";
|
|
51
|
+
import type { ImageAreaParametersProperties } from "../../rest/support/ImageAreaParameters.js";
|
|
48
52
|
import type { ImageBoundaryParametersProperties } from "../../rest/support/ImageBoundaryParameters.js";
|
|
53
|
+
import type { ImageDistanceParametersProperties } from "../../rest/support/ImageDistanceParameters.js";
|
|
49
54
|
import type { ImageGPSInfoParametersProperties } from "../../rest/support/ImageGPSInfoParameters.js";
|
|
55
|
+
import type { ImageHeightParametersProperties } from "../../rest/support/ImageHeightParameters.js";
|
|
56
|
+
import type { ImageHistogramParametersProperties } from "../../rest/support/ImageHistogramParameters.js";
|
|
57
|
+
import type { ImageIdentifyParametersProperties } from "../../rest/support/ImageIdentifyParameters.js";
|
|
58
|
+
import type { ImagePixelLocationParametersProperties } from "../../rest/support/ImagePixelLocationParameters.js";
|
|
59
|
+
import type { ImagePointParametersProperties } from "../../rest/support/ImagePointParameters.js";
|
|
60
|
+
import type { ImageSampleParametersProperties } from "../../rest/support/ImageSampleParameters.js";
|
|
61
|
+
import type { ImageToMapMultirayParametersProperties } from "../../rest/support/ImageToMapMultirayParameters.js";
|
|
62
|
+
import type { ImageUrlParametersProperties } from "../../rest/support/ImageUrlParameters.js";
|
|
50
63
|
import type { ImageVolumeParametersProperties } from "../../rest/support/ImageVolumeParameters.js";
|
|
64
|
+
import type { MapToImageParametersProperties } from "../../rest/support/MapToImageParameters.js";
|
|
51
65
|
import type { QueryProperties } from "../../rest/support/Query.js";
|
|
52
66
|
import type { MosaicRuleProperties } from "../support/MosaicRule.js";
|
|
53
67
|
import type { MultidimensionalSubsetProperties } from "../support/MultidimensionalSubset.js";
|
|
@@ -713,7 +727,7 @@ export abstract class ArcGISImageService {
|
|
|
713
727
|
* @since 4.22
|
|
714
728
|
* @see [ArcGIS REST API - Compute Angles](https://developers.arcgis.com/rest/services-reference/enterprise/compute-angles.htm)
|
|
715
729
|
*/
|
|
716
|
-
computeAngles(parameters: ImageAngleParameters, requestOptions?: RequestOptions): Promise<ImageAngleResult>;
|
|
730
|
+
computeAngles(parameters: ImageAngleParameters | ImageAngleParametersProperties, requestOptions?: RequestOptions): Promise<ImageAngleResult>;
|
|
717
731
|
/**
|
|
718
732
|
* Computes histograms based on the provided [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html).
|
|
719
733
|
* If a [raster function](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#rasterFunction) and
|
|
@@ -757,7 +771,7 @@ export abstract class ArcGISImageService {
|
|
|
757
771
|
* console.log("err", err)
|
|
758
772
|
* });
|
|
759
773
|
*/
|
|
760
|
-
computeHistograms(parameters: ImageHistogramParameters, requestOptions?: RequestOptions): Promise<ImageServiceHistogramsResult>;
|
|
774
|
+
computeHistograms(parameters: ImageHistogramParameters | ImageHistogramParametersProperties, requestOptions?: RequestOptions): Promise<ImageServiceHistogramsResult>;
|
|
761
775
|
/**
|
|
762
776
|
* Computes the corresponding pixel location in columns and rows for an image based on input geometry.
|
|
763
777
|
* Requires that the raster catalog item has a valid `icsToPixel` resource.
|
|
@@ -770,7 +784,7 @@ export abstract class ArcGISImageService {
|
|
|
770
784
|
* @since 4.22
|
|
771
785
|
* @see [ArcGIS REST API - Compute Pixel Location](https://developers.arcgis.com/rest/services-reference/enterprise/compute-pixel-location.htm)
|
|
772
786
|
*/
|
|
773
|
-
computePixelSpaceLocations(parameters: ImagePixelLocationParameters, requestOptions?: RequestOptions): Promise<ImagePixelLocationResult>;
|
|
787
|
+
computePixelSpaceLocations(parameters: ImagePixelLocationParameters | ImagePixelLocationParametersProperties, requestOptions?: RequestOptions): Promise<ImagePixelLocationResult>;
|
|
774
788
|
/**
|
|
775
789
|
* Computes [statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-raster-types.html#RasterBandStatistics) and [histograms](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-raster-types.html#RasterHistogram)
|
|
776
790
|
* for the provided [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html).
|
|
@@ -819,7 +833,7 @@ export abstract class ArcGISImageService {
|
|
|
819
833
|
* console.log("err", err)
|
|
820
834
|
* });
|
|
821
835
|
*/
|
|
822
|
-
computeStatisticsHistograms(parameters: ImageHistogramParameters, requestOptions?: RequestOptions): Promise<ImageServiceStatisticsHistogramsResult>;
|
|
836
|
+
computeStatisticsHistograms(parameters: ImageHistogramParameters | ImageHistogramParametersProperties, requestOptions?: RequestOptions): Promise<ImageServiceStatisticsHistogramsResult>;
|
|
823
837
|
/**
|
|
824
838
|
* Fetches raw pixel data for a specified extent, width, and height, preserving full pixel depth and including all bands without applying renderer to the layer.
|
|
825
839
|
* The operation uses the following layer properties: [mosaicRule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#mosaicRule), [rasterFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#rasterFunction), [compressionTolerance](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#compressionTolerance),
|
|
@@ -848,7 +862,7 @@ export abstract class ArcGISImageService {
|
|
|
848
862
|
* @returns Resolves to a [FindImagesResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindImagesResult.html) containing images that meet the search requirements.
|
|
849
863
|
* @since 4.29
|
|
850
864
|
*/
|
|
851
|
-
findImages(parameters: FindImagesParameters, requestOptions?: RequestOptions): Promise<FindImagesResult>;
|
|
865
|
+
findImages(parameters: FindImagesParameters | FindImagesParametersProperties, requestOptions?: RequestOptions): Promise<FindImagesResult>;
|
|
852
866
|
/**
|
|
853
867
|
* Generates raster info for the specified raster function.
|
|
854
868
|
*
|
|
@@ -929,7 +943,7 @@ export abstract class ArcGISImageService {
|
|
|
929
943
|
* @returns Resolves to a [ImageUrlResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageUrlResult.html) containing the image's url.
|
|
930
944
|
* @since 4.30
|
|
931
945
|
*/
|
|
932
|
-
getImageUrl(parameters: ImageUrlParameters, requestOptions?: RequestOptions): Promise<ImageUrlResult>;
|
|
946
|
+
getImageUrl(parameters: ImageUrlParameters | ImageUrlParametersProperties, requestOptions?: RequestOptions): Promise<ImageUrlResult>;
|
|
933
947
|
/**
|
|
934
948
|
* Returns sample point locations, pixel values and corresponding resolutions of the source data for a given geometry. When the input geometry
|
|
935
949
|
* is a [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html), [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html), or [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html),
|
|
@@ -971,7 +985,7 @@ export abstract class ArcGISImageService {
|
|
|
971
985
|
* console.log(error)
|
|
972
986
|
* })
|
|
973
987
|
*/
|
|
974
|
-
getSamples(parameters: ImageSampleParameters, requestOptions?: RequestOptions): Promise<ImageSampleResult>;
|
|
988
|
+
getSamples(parameters: ImageSampleParameters | ImageSampleParametersProperties, requestOptions?: RequestOptions): Promise<ImageSampleResult>;
|
|
975
989
|
/**
|
|
976
990
|
* Sends a request to the ArcGIS REST image service to identify content based on the
|
|
977
991
|
* specified [ImageIdentifyParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html).
|
|
@@ -986,7 +1000,7 @@ export abstract class ArcGISImageService {
|
|
|
986
1000
|
* is returned.
|
|
987
1001
|
* @since 4.18
|
|
988
1002
|
*/
|
|
989
|
-
identify(parameters: ImageIdentifyParameters, requestOptions?: RequestOptions): Promise<ImageIdentifyResult>;
|
|
1003
|
+
identify(parameters: ImageIdentifyParameters | ImageIdentifyParametersProperties, requestOptions?: RequestOptions): Promise<ImageIdentifyResult>;
|
|
990
1004
|
/**
|
|
991
1005
|
* Converts a geometry from an image space to a map space using the provided [ImageToMapParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageToMapParameters.html).
|
|
992
1006
|
* This operation is supported with ArcGIS Enterprise version 11.2 or higher image services.
|
|
@@ -997,7 +1011,7 @@ export abstract class ArcGISImageService {
|
|
|
997
1011
|
* @returns Resolves to a geometry object.
|
|
998
1012
|
* @since 4.29
|
|
999
1013
|
*/
|
|
1000
|
-
imageToMap(parameters: ImageToMapParameters, requestOptions?: RequestOptions): Promise<GeometryUnion>;
|
|
1014
|
+
imageToMap(parameters: ImageToMapParameters | ImageToMapMultirayParametersProperties, requestOptions?: RequestOptions): Promise<GeometryUnion>;
|
|
1001
1015
|
/**
|
|
1002
1016
|
* Creates a map space geometry from multiray image space geometries using the provided [ImageToMapMultirayParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageToMapMultirayParameters.html).
|
|
1003
1017
|
* For example, a house is shown in several raster items. Users can specify the house location on each image using the [ImageToMapMultirayParameters#geometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageToMapMultirayParameters.html#geometries)
|
|
@@ -1012,7 +1026,7 @@ export abstract class ArcGISImageService {
|
|
|
1012
1026
|
* @returns Resolves to a geometry object where the coordinates are in map coordinates.
|
|
1013
1027
|
* @since 4.29
|
|
1014
1028
|
*/
|
|
1015
|
-
imageToMapMultiray(parameters: ImageToMapMultirayParameters, requestOptions?: RequestOptions): Promise<GeometryUnion>;
|
|
1029
|
+
imageToMapMultiray(parameters: ImageToMapMultirayParameters | ImageToMapMultirayParametersProperties, requestOptions?: RequestOptions): Promise<GeometryUnion>;
|
|
1016
1030
|
/**
|
|
1017
1031
|
* Converts a given geometry from a map space to an image space using the provided [MapToImageParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-MapToImageParameters.html).
|
|
1018
1032
|
* This operation is supported with ArcGIS Enterprise version 11.2 or higher image services.
|
|
@@ -1023,7 +1037,7 @@ export abstract class ArcGISImageService {
|
|
|
1023
1037
|
* @returns Resolves to a geometry object where the coordinates are in image space.
|
|
1024
1038
|
* @since 4.29
|
|
1025
1039
|
*/
|
|
1026
|
-
mapToImage(parameters: MapToImageParameters, requestOptions?: RequestOptions): Promise<GeometryUnion>;
|
|
1040
|
+
mapToImage(parameters: MapToImageParameters | MapToImageParametersProperties, requestOptions?: RequestOptions): Promise<GeometryUnion>;
|
|
1027
1041
|
/**
|
|
1028
1042
|
* Calculates the area and perimeter of a given geometry on an image service. The result of this operation includes the name of the raster dataset being used,
|
|
1029
1043
|
* the sensor name, and measured values.
|
|
@@ -1047,7 +1061,7 @@ export abstract class ArcGISImageService {
|
|
|
1047
1061
|
* console.log(result);
|
|
1048
1062
|
* });
|
|
1049
1063
|
*/
|
|
1050
|
-
measureAreaAndPerimeter(parameters: ImageAreaParameters, requestOptions?: RequestOptions): Promise<ImageAreaResult>;
|
|
1064
|
+
measureAreaAndPerimeter(parameters: ImageAreaParameters | ImageAreaParametersProperties, requestOptions?: RequestOptions): Promise<ImageAreaResult>;
|
|
1051
1065
|
/**
|
|
1052
1066
|
* Measures the area and the perimeter of a polygon in an image space on a selected raster when the following conditions are met:
|
|
1053
1067
|
*
|
|
@@ -1072,7 +1086,7 @@ export abstract class ArcGISImageService {
|
|
|
1072
1086
|
* containing the name of the raster dataset being used, the sensor name, and measured values.
|
|
1073
1087
|
* @since 4.26
|
|
1074
1088
|
*/
|
|
1075
|
-
measureDistanceAndAngle(parameters: ImageDistanceParameters, requestOptions?: RequestOptions): Promise<ImageDistanceResult>;
|
|
1089
|
+
measureDistanceAndAngle(parameters: ImageDistanceParameters | ImageDistanceParametersProperties, requestOptions?: RequestOptions): Promise<ImageDistanceResult>;
|
|
1076
1090
|
/**
|
|
1077
1091
|
* Calculates the height of an object between two points on an image service if the sensor info is available.
|
|
1078
1092
|
* The result of this operation includes the name of the raster dataset being used, the sensor name, and measured values.
|
|
@@ -1087,7 +1101,7 @@ export abstract class ArcGISImageService {
|
|
|
1087
1101
|
* containing the name of the raster dataset being used, the sensor name, and measured values.
|
|
1088
1102
|
* @since 4.26
|
|
1089
1103
|
*/
|
|
1090
|
-
measureHeight(parameters: ImageHeightParameters, requestOptions?: RequestOptions): Promise<ImageHeightResult>;
|
|
1104
|
+
measureHeight(parameters: ImageHeightParameters | ImageHeightParametersProperties, requestOptions?: RequestOptions): Promise<ImageHeightResult>;
|
|
1091
1105
|
/**
|
|
1092
1106
|
* Measures the length of a polyline in an image space on a selected raster when the following conditions are met:
|
|
1093
1107
|
*
|
|
@@ -1112,7 +1126,7 @@ export abstract class ArcGISImageService {
|
|
|
1112
1126
|
* containing the name of the raster dataset being used, the sensor name, and measured values.
|
|
1113
1127
|
* @since 4.26
|
|
1114
1128
|
*/
|
|
1115
|
-
measurePointOrCentroid(parameters: ImagePointParameters, requestOptions?: RequestOptions): Promise<ImagePointResult>;
|
|
1129
|
+
measurePointOrCentroid(parameters: ImagePointParameters | ImagePointParametersProperties, requestOptions?: RequestOptions): Promise<ImagePointResult>;
|
|
1116
1130
|
/**
|
|
1117
1131
|
* Returns the boundary of an image for the provided [ImageBoundaryParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageBoundaryParameters.html).
|
|
1118
1132
|
* This operation is supported with ArcGIS Enterprise version 10.6 or higher image services.
|
|
@@ -1123,7 +1137,7 @@ export abstract class ArcGISImageService {
|
|
|
1123
1137
|
* @returns Resolves to an object containing boundary geometry of an image service.
|
|
1124
1138
|
* @since 4.29
|
|
1125
1139
|
*/
|
|
1126
|
-
queryBoundary(parameters?: ImageBoundaryParametersProperties, requestOptions?: RequestOptions): Promise<ImageBoundaryResult>;
|
|
1140
|
+
queryBoundary(parameters?: ImageBoundaryParameters | ImageBoundaryParametersProperties, requestOptions?: RequestOptions): Promise<ImageBoundaryResult>;
|
|
1127
1141
|
/**
|
|
1128
1142
|
* Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the image service and
|
|
1129
1143
|
* returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of rasters that satisfy the query.
|
|
@@ -12,6 +12,7 @@ import type TimeInterval from "../../time/TimeInterval.js";
|
|
|
12
12
|
import type { FetchRasterOptions, RasterIdentifyOptions, RasterIdentifyResult, RasterInterpolation } from "../raster/types.js";
|
|
13
13
|
import type { RasterRendererUnion } from "../../renderers/support/raster/types.js";
|
|
14
14
|
import type { RequestOptions } from "../../request/types.js";
|
|
15
|
+
import type { ImageSampleParametersProperties } from "../../rest/support/ImageSampleParameters.js";
|
|
15
16
|
import type { DimensionalDefinitionProperties } from "../support/DimensionalDefinition.js";
|
|
16
17
|
import type { MultidimensionalSubsetProperties } from "../support/MultidimensionalSubset.js";
|
|
17
18
|
import type { VectorFieldRendererProperties } from "../../renderers/VectorFieldRenderer.js";
|
|
@@ -371,7 +372,7 @@ export abstract class ImageryTileMixin {
|
|
|
371
372
|
* console.log(error)
|
|
372
373
|
* })
|
|
373
374
|
*/
|
|
374
|
-
getSamples(parameters: ImageSampleParameters, requestOptions?: RequestOptions): Promise<ImageSampleResult>;
|
|
375
|
+
getSamples(parameters: ImageSampleParameters | ImageSampleParametersProperties, requestOptions?: RequestOptions): Promise<ImageSampleResult>;
|
|
375
376
|
/**
|
|
376
377
|
* Identify pixel values at a given location. This method identifies the content of an image service for the input location and in a specified dimensional definition.
|
|
377
378
|
*
|