@agrotools1/at-components 0.3.2 → 0.3.3
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/dist/AGraphicContainer-0a4e0426.js +109 -0
- package/dist/APIKeyMixin-83e85532.js +19 -0
- package/dist/Analysis-c4011253.js +31 -0
- package/dist/ArcGISCachedService-1c6af1c1.js +47 -0
- package/dist/ArcGISService-1d880889.js +25 -0
- package/dist/AreaMeasurement2D-86006a71.js +405 -0
- package/dist/AreaMeasurement3D-1825243c.js +488 -0
- package/dist/AttachmentInfo-fa04c641.js +34 -0
- package/dist/AttachmentQuery-1450c2f7.js +18 -0
- package/dist/AttributeStore-02f947ea.js +1707 -0
- package/dist/BaseDynamicLayerView2D-eb11c757.js +63 -0
- package/dist/BingMapsLayer-7ad7d511.js +112 -0
- package/dist/Bitmap-14a020d8.js +128 -0
- package/dist/BitmapContainer-cc71fd24.js +23 -0
- package/dist/BlendLayer-e2f97659.js +13 -0
- package/dist/BoundsStore-8612892f.js +63 -0
- package/dist/BufferObject-bd932c2c.js +100 -0
- package/dist/BufferView-97ed14c7.js +683 -0
- package/dist/BuildingSceneLayer-3f5380c8.js +535 -0
- package/dist/Button-15031955.js +36 -0
- package/dist/CSVLayer-a76db6f4.js +208 -0
- package/dist/CSVSourceWorker-afe160ed.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-be946494.js +66 -0
- package/dist/CatalogFootprintLayerView2D-14763204.js +76 -0
- package/dist/CatalogLayer-7d6228dd.js +262 -0
- package/dist/CatalogLayerView2D-13e32a42.js +52 -0
- package/dist/ClassBreaksDefinition-7040a7fc.js +18 -0
- package/dist/ColorMaterial.glsl-e56765f1.js +64 -0
- package/dist/ColorSet-4ff0a7b7.js +45 -0
- package/dist/ColorStop-1e154045.js +29 -0
- package/dist/Container-6e3b610b.js +521 -0
- package/dist/CustomParametersMixin-c01280c0.js +12 -0
- package/dist/DefaultMaterial.glsl-e7e23b90.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-7fd21704.js +653 -0
- package/dist/DefaultTheme-3c5b433f.js +130 -0
- package/dist/DeleteForwardEditsParameters-7073c5e5.js +18 -0
- package/dist/DimensionLayer-f921dd3d.js +129 -0
- package/dist/DirectLineMeasurement3D-61d14af2.js +449 -0
- package/dist/DistanceMeasurement2D-b023b35c.js +303 -0
- package/dist/DoubleArray-1186b8b8.js +25 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +59 -10
- package/dist/Dropdown/Checklist/draggable.d.ts +5 -4
- package/dist/Dropdown/Dropdown.core.d.ts +0 -13
- package/dist/Dropdown/Dropdown.types.d.ts +16 -0
- package/dist/Dropdown/Filter/Filter.types.d.ts +17 -0
- package/dist/Dropdown/Filter/test.mocks.d.ts +2 -2
- package/dist/Dropdown/List/Dropdown.List.d.ts +6 -21
- package/dist/Dropdown/List/List.types.d.ts +11 -0
- package/dist/Dropdown/List/test.mocks.d.ts +1 -1
- package/dist/EdgeProcessingWorker-cb6277ad.js +63 -0
- package/dist/EditBusLayer-9d740f8f.js +107 -0
- package/dist/ElevationInfo-581ff99d.js +56 -0
- package/dist/ElevationLayer-42b57d9b.js +129 -0
- package/dist/ElevationQuery-f6d0cf9f.js +598 -0
- package/dist/ElevationSamplerWorker-50d805bb.js +62 -0
- package/dist/ExportImageParameters-5b047f92.js +66 -0
- package/dist/ExportStrategy-b6c54d77.js +93 -0
- package/dist/ExportWMSImageParameters-ff5a3ac8.js +33 -0
- package/dist/External-695a389a.js +110 -0
- package/dist/FeatureCollectionSnappingSource-fdaed9e0.js +130 -0
- package/dist/FeatureCommandQueue-c2bd1a39.js +1244 -0
- package/dist/FeatureEffect-9ea1b3da.js +39 -0
- package/dist/FeatureEffectLayer-0fa169c4.js +13 -0
- package/dist/FeatureFilter-638c4cae.js +27 -0
- package/dist/FeatureLayer-2a419d3e.js +693 -0
- package/dist/FeatureLayerBase-7331e738.js +148 -0
- package/dist/FeatureLayerSource-733186fb.js +444 -0
- package/dist/FeatureLayerView2D-bc4994b6.js +1967 -0
- package/dist/FeaturePipelineWorker-5f68488c.js +3633 -0
- package/dist/FeatureReductionLayer-0c152478.js +225 -0
- package/dist/FeatureReductionSelection-f952512d.js +22 -0
- package/dist/FeatureServiceSnappingSource-4c02d5a3.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-c2a1dc50.js +747 -0
- package/dist/FeatureSet-2c6b8e00.js +188 -0
- package/dist/FeatureStore-a26846c0.js +131 -0
- package/dist/FeatureTemplate-1b6b7e2d.js +12 -0
- package/dist/FeatureType-9e1f1a7d.js +25 -0
- package/dist/FieldsIndex-91711836.js +109 -0
- package/dist/FormTemplate-ae0cfb6e.js +350 -0
- package/dist/GeoJSONLayer-b2070c34.js +236 -0
- package/dist/GeoJSONSourceWorker-aecb5f9b.js +247 -0
- package/dist/GeoRSSLayer-3743b41f.js +73 -0
- package/dist/GeoRSSLayerView2D-098c24bc.js +140 -0
- package/dist/GeometryUtils-036c7f22.js +403 -0
- package/dist/GraphicContainer-ece3945e.js +26 -0
- package/dist/GraphicManipulator-bc92899f.js +1499 -0
- package/dist/GraphicsLayer-764f0324.js +38 -0
- package/dist/GraphicsLayerView2D-36908d0c.js +114 -0
- package/dist/GraphicsSnappingSource-2bb681c0.js +273 -0
- package/dist/GraphicsView2D-e9cf5cd6.js +620 -0
- package/dist/GroupLayer-5ea5b71b.js +147 -0
- package/dist/GroupLayerView2D-22ec9eaa.js +98 -0
- package/dist/HUDMaterial.glsl-80ab7d22.js +65 -0
- package/dist/HighlightCounter-36842e52.js +41 -0
- package/dist/HighlightGraphicContainer-10cb9671.js +18 -0
- package/dist/I3SBinaryReader-9dbdc661.js +310 -0
- package/dist/I3SLayerDefinitions-b56e2c87.js +55 -0
- package/dist/I3SUtil-5461dc89.js +59 -0
- package/dist/IdentityManager-bb063156.js +899 -0
- package/dist/ImageHistogramParameters-1f8e5179.js +905 -0
- package/dist/ImageryLayer-a807d3b3.js +1799 -0
- package/dist/ImageryLayerView2D-358a3267.js +352 -0
- package/dist/ImageryTileLayer-0f67f262.js +2157 -0
- package/dist/ImageryTileLayerView2D-2bc2bb67.js +1110 -0
- package/dist/Indices-0c5304f2.js +67 -0
- package/dist/IntegratedMesh3DTilesLayer-be69dca8.js +112 -0
- package/dist/IntegratedMeshLayer-3c070523.js +141 -0
- package/dist/InteractiveAnalysisViewModel-3005a4a6.js +7397 -0
- package/dist/InterleavedLayout-d37b99a2.js +163 -0
- package/dist/KMLLayer-2011c3c6.js +162 -0
- package/dist/KMLLayerView2D-5d17145f.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-7172b91b.js +43 -0
- package/dist/LRUCache-39211cf9.js +32 -0
- package/dist/LabelClass-d1080628.js +135 -0
- package/dist/LabelMetric-ab56c6b3.js +400 -0
- package/dist/LaserlinePath.glsl-df8f92cc.js +64 -0
- package/dist/Laserlines.glsl-f7d93e3f.js +65 -0
- package/dist/LayerFloorInfo-3edeb9a2.js +15 -0
- package/dist/LayerView-1c58c8c6.js +206 -0
- package/dist/LercWorker-c7a2aca1.js +157 -0
- package/dist/LineOfSightLayer-3028e21f.js +147 -0
- package/dist/LinkChartLayer-988ae660.js +1027 -0
- package/dist/Lyr3DWorker-4c8c758f.js +82 -0
- package/dist/MagnifierPrograms-123961a3.js +806 -0
- package/dist/MapImageLayer-9241ad63.js +169 -0
- package/dist/MapImageLayerView2D-726e5c66.js +146 -0
- package/dist/MapNotesLayer-2d2db99b.js +283 -0
- package/dist/MapNotesLayerView2D-41f5790c.js +161 -0
- package/dist/MapServiceLayerViewHelper-8f5228ec.js +288 -0
- package/dist/MeasurementWidgetContent-504fd868.js +2642 -0
- package/dist/MediaLayer-e71ce661.js +523 -0
- package/dist/MediaLayerView2D-33c67404.js +332 -0
- package/dist/MemCache-413327b3.js +227 -0
- package/dist/MemorySourceWorker-b0e70dd0.js +222 -0
- package/dist/Mesh-98c4e050.js +980 -0
- package/dist/MeshLocalVertexSpace-7a7e4d4e.js +19 -0
- package/dist/MultiOriginJSONSupport-2fca3cc5.js +158 -0
- package/dist/OGCFeatureLayer-451fbd45.js +211 -0
- package/dist/OGCFeatureLayerView2D-d23b08d2.js +82 -0
- package/dist/ObjectStack-742b2ff3.js +21 -0
- package/dist/Octree-a3c8e90e.js +495 -0
- package/dist/OpenStreetMapLayer-9bb91f97.js +30 -0
- package/dist/OperationalLayer-fbfada66.js +44 -0
- package/dist/OrderByInfo-335eb561.js +16 -0
- package/dist/OrderedLayer-29b4ac64.js +26 -0
- package/dist/OrientedImageryLayer-aa2498e2.js +216 -0
- package/dist/OverlayCompositing.glsl-4b1e83c2.js +65 -0
- package/dist/OverrideHelper-74cc3959.js +242 -0
- package/dist/PBFDecoderWorker-fd40e0f9.js +213 -0
- package/dist/PointCloudLayer-64cdbbb2.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-db9b3a98.js +115 -0
- package/dist/PointCloudWorker-a5eb5224.js +212 -0
- package/dist/PooledRBush-be6fe17a.js +272 -0
- package/dist/Popup-db250fe6.js +3990 -0
- package/dist/PortalLayer-a6ce110e.js +126 -0
- package/dist/Program-ecabc523.js +694 -0
- package/dist/ProgramTemplate-e5ce3b0f.js +35 -0
- package/dist/QueryEngine-87b2546b.js +896 -0
- package/dist/QueryTask-36400ec7.js +119 -0
- package/dist/RasterSymbolizer-cfd47847.js +3024 -0
- package/dist/RasterVFDisplayObject-d4c967ea.js +581 -0
- package/dist/RasterWorker-068ae23a.js +78 -0
- package/dist/RawBlockCache-9e8d4c35.js +185 -0
- package/dist/RealisticTree.glsl-adab8e44.js +42 -0
- package/dist/RefreshableLayer-eec34ca2.js +80 -0
- package/dist/RefreshableLayerView-ee06f08c.js +16 -0
- package/dist/Relationship-a7eb5489.js +64 -0
- package/dist/RelationshipQuery-4551bb04.js +22 -0
- package/dist/RenderingContext-9e8fac0d.js +889 -0
- package/dist/RibbonLine.glsl-5990bf5f.js +65 -0
- package/dist/RouteLayer-858bc482.js +786 -0
- package/dist/RouteLayerView2D-a70d519f.js +195 -0
- package/dist/SDFHelper-efca0a53.js +140 -0
- package/dist/SSAO.glsl-7670c1fc.js +43 -0
- package/dist/SSAOBlur.glsl-3523d6af.js +42 -0
- package/dist/ScaleRangeLayer-7f440b85.js +21 -0
- package/dist/SceneLayer-999bd23f.js +542 -0
- package/dist/SceneLayerSnappingSource-9420aaed.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-be67e552.js +112 -0
- package/dist/SceneLayerWorker-201939c2.js +164 -0
- package/dist/SceneService-318eff2f.js +215 -0
- package/dist/Scheduler-279ea0c3.js +373 -0
- package/dist/Search/Search.d.ts +1 -1
- package/dist/Search/test.mocks.d.ts +1 -1
- package/dist/Search/utils.d.ts +1 -1
- package/dist/Select/Select.core.d.ts +1 -1
- package/dist/Select/Single/Select.single.d.ts +1 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/ShadedColorMaterial.glsl-bd2979d8.js +64 -0
- package/dist/SnappingOperation-5100da71.js +48 -0
- package/dist/SourceLayerData-50c2b980.js +116 -0
- package/dist/SpatialFilter-b6c6b2fc.js +1701 -0
- package/dist/Stop-196981da.js +281 -0
- package/dist/StreamLayer-37b818b8.js +188 -0
- package/dist/StreamLayerView2D-7f0f45bc.js +164 -0
- package/dist/StyleRepository-4e8fa398.js +2212 -0
- package/dist/SublayersOwner-90d10612.js +545 -0
- package/dist/SubtypeGroupLayer-959cabf8.js +514 -0
- package/dist/SubtypeGroupLayerView2D-95e63b42.js +84 -0
- package/dist/TableConfig/TableConfig.d.ts +14 -6
- package/dist/TableConfig/test/mocks.d.ts +1 -1
- package/dist/TechniqueInstance-bd190c26.js +233 -0
- package/dist/TemporalLayer-aacda167.js +23 -0
- package/dist/Texture-3618be49.js +501 -0
- package/dist/TextureOnly.glsl-fcca7034.js +65 -0
- package/dist/Theme-85608a9a.js +3426 -0
- package/dist/Tick-79e96104.js +723 -0
- package/dist/TileContainer-f1e7edd8.js +31 -0
- package/dist/TileInfoTilemapCache-2f882821.js +38 -0
- package/dist/TileLayer-db13a237.js +194 -0
- package/dist/TileLayerView2D-15af6be4.js +187 -0
- package/dist/TilemapCache-fc4b2c6c.js +189 -0
- package/dist/TimeInfo-39a9d4e1.js +42 -0
- package/dist/TimeOnly-b759457a.js +706 -0
- package/dist/Toggle/Toggle.d.ts +9 -0
- package/dist/Tooltip-0ba72b27.js +138 -0
- package/dist/TopFeaturesQuery-a11ecc39.js +32 -0
- package/dist/TurboLine-5e62d290.js +565 -0
- package/dist/UniqueValueRenderer-bf2f3234.js +1039 -0
- package/dist/UnknownLayer-2cf71578.js +30 -0
- package/dist/UnknownTimeZone-aabdcf56.js +15 -0
- package/dist/UnsupportedLayer-36650e4a.js +31 -0
- package/dist/UpdateTracking2D-b6d16b0c.js +8566 -0
- package/dist/Util-8f54c96b.js +57 -0
- package/dist/VectorTileLayer-ddcca4ec.js +544 -0
- package/dist/VectorTileLayerView2D-8176946a.js +2108 -0
- package/dist/Version-9eb299cd.js +33 -0
- package/dist/VertexArrayObject-d1a4262b.js +73 -0
- package/dist/VertexColor.glsl-fd9f70e0.js +2683 -0
- package/dist/VertexSnappingCandidate-70513010.js +13 -0
- package/dist/VideoLayerView2D-e08e1d57.js +124 -0
- package/dist/VoxelLayer-959702aa.js +631 -0
- package/dist/WFSLayer-4a41b206.js +221 -0
- package/dist/WFSSourceWorker-53d88982.js +157 -0
- package/dist/WGLContainer-e9e8616e.js +5426 -0
- package/dist/WMSLayer-8e44f55c.js +536 -0
- package/dist/WMSLayerView2D-415a1793.js +117 -0
- package/dist/WMTSLayer-804f4bed.js +531 -0
- package/dist/WMTSLayerView2D-96186a90.js +142 -0
- package/dist/WebTileLayer-7391ea01.js +110 -0
- package/dist/WhereClause-1816217e.js +2766 -0
- package/dist/WorkerHandle-25f67c67.js +47 -0
- package/dist/WorkerTileHandler-a7e508bc.js +1539 -0
- package/dist/action-3ce81e45.js +198 -0
- package/dist/action-group-f2d26c2b.js +145 -0
- package/dist/action-menu-015d91ab.js +1759 -0
- package/dist/apng-e5532475.js +392 -0
- package/dist/arcade-dbe2ca4a.js +229 -0
- package/dist/arcadeAsyncRuntime-78b83b41.js +943 -0
- package/dist/arcadeUtils-cb1066a6.js +8741 -0
- package/dist/arcgis-knowledge-client-core-7379d99e.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-ea8b4d20.js +1218 -0
- package/dist/arcgisLayers-cd3494fd.js +152 -0
- package/dist/associatedFeatureServiceUtils-da8d377d.js +92 -0
- package/dist/axisAngleDegrees-19922758.js +49 -0
- package/dist/basis_transcoder-bf0490cc.js +1248 -0
- package/dist/calcite-action-0db4f61c.js +22 -0
- package/dist/calcite-action-bar-1b4c89cb.js +303 -0
- package/dist/calcite-action-group-3c8a934c.js +28 -0
- package/dist/calcite-button-1079a10c.js +228 -0
- package/dist/calcite-flow-c1e71a12.js +128 -0
- package/dist/calcite-flow-item-1097b48f.js +499 -0
- package/dist/calcite-icon-c88b4a67.js +16 -0
- package/dist/calcite-input-8c33ee84.js +24 -0
- package/dist/calcite-label-7fbfbe36.js +79 -0
- package/dist/calcite-list-93af4ae2.js +2135 -0
- package/dist/calcite-list-item-f0a6cda3.js +576 -0
- package/dist/calcite-list-item-group-107a313e.js +71 -0
- package/dist/calcite-loader-5194bf83.js +14 -0
- package/dist/calcite-modal-486280cc.js +333 -0
- package/dist/calcite-notice-a81274a8.js +181 -0
- package/dist/calcite-option-0020a955.js +94 -0
- package/dist/calcite-scrim-27d65e7f.js +18 -0
- package/dist/calcite-select-05f25c2a.js +231 -0
- package/dist/capabilities-238bde7d.js +50 -0
- package/dist/chartCommon-7eda170a.js +256 -0
- package/dist/chartUtilsAm5-fd8aeac2.js +2954 -0
- package/dist/clientSideDefaults-b91506af.js +39 -0
- package/dist/colorRamps-6027ea73.js +38 -0
- package/dist/colorUtils-3dd4b884.js +164 -0
- package/dist/commonProperties-bf4d305f.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-ca5a9439.js +60 -0
- package/dist/conditionalSlot-80a4c6ff.js +27 -0
- package/dist/createConnection-70dd787a.js +299 -0
- package/dist/dataUtils-b632d3a2.js +1421 -0
- package/dist/deduplicate-e13aa9e2.js +89 -0
- package/dist/defaults-40a1a995.js +31 -0
- package/dist/deleteForwardEdits-b0182a08.js +13 -0
- package/dist/diffUtils-5f43e52a.js +90 -0
- package/dist/drapedUtils-416e5304.js +75 -0
- package/dist/earcut-235aa57d.js +292 -0
- package/dist/edgeProcessing-43d45a32.js +252 -0
- package/dist/editingSupport-7706f838.js +203 -0
- package/dist/editsZScale-49d8a8cd.js +37 -0
- package/dist/elevationInfoUtils-3fbfcf1f.js +126 -0
- package/dist/executeForIds-419ba6a3.js +14 -0
- package/dist/executeForTopCount-8a8ba5c7.js +17 -0
- package/dist/executeForTopExtents-9f24d5d0.js +17 -0
- package/dist/executeForTopIds-0bfdb55f.js +17 -0
- package/dist/executeQueryJSON-2a2e9e1b.js +15 -0
- package/dist/executeQueryPBF-f10de9ec.js +152 -0
- package/dist/executeRelationshipQuery-0680cb30.js +53 -0
- package/dist/executeTopFeaturesQuery-c553d696.js +18 -0
- package/dist/featureConversionUtils-83783887.js +479 -0
- package/dist/featureLayerUtils-545d260a.js +250 -0
- package/dist/featureLayerUtils-b18e6016.js +142 -0
- package/dist/featureSetUtils-0c7ba073.js +2530 -0
- package/dist/featuresetbase-aadfabb3.js +707 -0
- package/dist/featuresetgeom-a405018e.js +99 -0
- package/dist/featuresetstats-f6602402.js +81 -0
- package/dist/featuresetstring-834ea865.js +95 -0
- package/dist/fetchService-dac740ef.js +33 -0
- package/dist/fieldProperties-b024e721.js +33 -0
- package/dist/floatRGBA-46ee3e38.js +20 -0
- package/dist/form-0b2f0ac9.js +138 -0
- package/dist/geohashUtils-418d1ca6.js +85 -0
- package/dist/geojson-96d3353d.js +208 -0
- package/dist/geomasync-ff5b3734.js +567 -0
- package/dist/geometryEngine-8fcb3d59.js +192 -0
- package/dist/geometryEngineAsync-212f4b0f.js +217 -0
- package/dist/geometryEngineBase-4c2ff8b9.js +18463 -0
- package/dist/geometryEngineJSON-131b461e.js +171 -0
- package/dist/geometryEngineJSON-b43cf67f.js +46 -0
- package/dist/geometryEngineWorker-707ca480.js +11 -0
- package/dist/geometryServiceUtils-af23d0b5.js +28 -0
- package/dist/georeference-02bc532d.js +291 -0
- package/dist/gif-b072aa1c.js +323 -0
- package/dist/gltfexport-3362ea71.js +705 -0
- package/dist/groupLayerUtils-81545911.js +39 -0
- package/dist/heatmapUtils-b25824e4.js +45 -0
- package/dist/highlightReasons-5b8b2665.js +19 -0
- package/dist/hydrated-b0c62926.js +40 -0
- package/dist/i3s-32edc725.js +809 -0
- package/dist/icon-453c7f62.js +127 -0
- package/dist/imageBitmapUtils-51497e26.js +23 -0
- package/dist/imageUtils-1d1da6e6.js +89 -0
- package/dist/imageUtils-8c40eba6.js +69 -0
- package/dist/imageryUtils-0c00fbf3.js +43 -0
- package/dist/index-3b4c2147.js +45568 -0
- package/dist/index.js +1 -1
- package/dist/input-message-32600f49.js +92 -0
- package/dist/input2-1c0831ed.js +575 -0
- package/dist/interactive-5824e097.js +80 -0
- package/dist/jsonContext-ec21ce85.js +15 -0
- package/dist/jsonUtils-012feb40.js +476 -0
- package/dist/jsonUtils-3979baa3.js +59 -0
- package/dist/jsonUtils-3eb7c689.js +86 -0
- package/dist/kmlUtils-4c198ea5.js +112 -0
- package/dist/knowledgeGraphService-a159d815.js +739 -0
- package/dist/knowledgegraph-eb0d44d4.js +149 -0
- package/dist/labelUtils-01b646c7.js +61 -0
- package/dist/labelingInfo-148dcd26.js +46 -0
- package/dist/layersCreator-4e94f616.js +151 -0
- package/dist/layersLoader-f4e3ab33.js +197 -0
- package/dist/lazyLayerLoader-eb51910e.js +10 -0
- package/dist/lclayout-4d303c41.js +773 -0
- package/dist/lengthUtils-6abaf27a.js +5 -0
- package/dist/lerc-wasm-0ae912df.js +325 -0
- package/dist/libtess-asm-91c97dcd.js +3673 -0
- package/dist/libtess-cba14731.js +269 -0
- package/dist/lineSegment-8f04aab4.js +76 -0
- package/dist/loadGLTFMesh-71542570.js +181 -0
- package/dist/loadable-e7c40a8a.js +24 -0
- package/dist/loader-6272e4b3.js +79 -0
- package/dist/lyr3DWorker-9ee4ee8b.js +2108 -0
- package/dist/mapViewDeps-b17a2e04.js +3052 -0
- package/dist/mediaLayerUtils-f0ccfd82.js +35 -0
- package/dist/meshFeatureSet-304dfa08.js +126 -0
- package/dist/meshVertexSpaceUtils-e7f774fa.js +58 -0
- package/dist/multidimensionalUtils-642f26da.js +290 -0
- package/dist/normalizeUtilsSync-b5f617e6.js +181 -0
- package/dist/number-3af512e3.js +128 -0
- package/dist/objectResourceUtils-d45057aa.js +1455 -0
- package/dist/observers-700e505d.js +30 -0
- package/dist/ogcFeatureUtils-440ed0bf.js +206 -0
- package/dist/openCloseComponent-1501c620.js +37 -0
- package/dist/orientedBoundingBox-80988e7f.js +447 -0
- package/dist/parser-6e351b85.js +488 -0
- package/dist/pbf-a85c52b3.js +215 -0
- package/dist/pbfQueryUtils-5f25f81f.js +422 -0
- package/dist/pe-wasm-e588110b.js +887 -0
- package/dist/persistable-ad01d0ca.js +89 -0
- package/dist/perspectiveUtils-ab58ddbb.js +42 -0
- package/dist/pieChart-d3793e8b.js +555 -0
- package/dist/plane-e103e8ed.js +160 -0
- package/dist/popupUtils-5f7c3e79.js +50 -0
- package/dist/popupUtils-b95ab60a.js +22 -0
- package/dist/portalItemUtils-3d59513a.js +57 -0
- package/dist/portalLayers-16b2f807.js +312 -0
- package/dist/portalUtils-3789afb0.js +7 -0
- package/dist/programUtils-c8d96b39.js +59 -0
- package/dist/project-7eaa59a4.js +21 -0
- package/dist/projectPointToVector-19151d97.js +14 -0
- package/dist/projectVectorToVector-d552535c.js +13 -0
- package/dist/quantityUtils-258bfdb4.js +33 -0
- package/dist/quantizationUtils-752e4d24.js +68 -0
- package/dist/quat-6dc51256.js +104 -0
- package/dist/query-da893693.js +89 -0
- package/dist/queryAttachments-df86b71d.js +39 -0
- package/dist/queryEngineUtils-ffc50ce5.js +21 -0
- package/dist/queryTopFeatures-5a58a12d.js +50 -0
- package/dist/queryZScale-39ffaf30.js +12 -0
- package/dist/rasterProjectionHelper-d13bc46d.js +577 -0
- package/dist/rasterUtils-22b15453.js +122 -0
- package/dist/rasterizingUtils-3388ddbf.js +46 -0
- package/dist/request-82a2415a.js +46 -0
- package/dist/requestImageUtils-2fca27f8.js +8 -0
- package/dist/resourceExtension-672d03cc.js +17 -0
- package/dist/resourceUtils-95b9964a.js +42 -0
- package/dist/resourceUtils-b1e50d5e.js +69 -0
- package/dist/resourceUtils-e8831103.js +62 -0
- package/dist/saveAPIKeyUtils-ee9b0447.js +8 -0
- package/dist/saveUtils-1323ad64.js +24 -0
- package/dist/scaleUtils-1a70f716.js +23 -0
- package/dist/scrim-c0a641cd.js +114 -0
- package/dist/serviceCapabilitiesUtils-33d4e1c0.js +64 -0
- package/dist/sourceUtils-e8c5db4e.js +71 -0
- package/dist/sphere-75cef429.js +199 -0
- package/dist/statsWorker-1f1bc582.js +37 -0
- package/dist/streamLayerUtils-c85a0eed.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-05bc85a5.js +75 -0
- package/dist/styleUtils-7bd8d0a7.js +14 -0
- package/dist/sublayerUtils-feb77591.js +37 -0
- package/dist/substitute-c31da60c.js +52 -0
- package/dist/symbolColorUtils-3c385668.js +8 -0
- package/dist/symbolLayerUtils-2d2753b7.js +31 -0
- package/dist/symbologySnappingCandidates-00eeca39.js +221 -0
- package/dist/t9n-55800455.js +349 -0
- package/dist/testSVGPremultipliedAlpha-ec1f73c4.js +94 -0
- package/dist/timeSupport-a7623294.js +410 -0
- package/dist/triangle-c799f11b.js +98 -0
- package/dist/unitConversionUtils-05050e6d.js +17 -0
- package/dist/unitFormatUtils-2a84c371.js +40 -0
- package/dist/uploadAssetErrors-601b044e.js +70 -0
- package/dist/uploadAssets-5a835c8a.js +330 -0
- package/dist/utils-2dc379da.js +79 -0
- package/dist/utils-34b1ea70.js +2746 -0
- package/dist/utils-45c14202.js +232 -0
- package/dist/utils-484969fb.js +91 -0
- package/dist/utils-5aaff624.js +433 -0
- package/dist/utils-a94dc35d.js +419 -0
- package/dist/utils-e68cfebf.js +34 -0
- package/dist/utils-fc14cc83.js +73 -0
- package/dist/utils3-5745e839.js +75 -0
- package/dist/vec3-12b9e1d8.js +81 -0
- package/dist/vec42-a1569d60.js +125 -0
- package/dist/versionUtils-c4f3617a.js +161 -0
- package/dist/visualVariableUtils-bcb95edc.js +267 -0
- package/dist/webStyleSymbolUtils-9db5b81c.js +48 -0
- package/dist/webglDeps-05e0410a.js +23 -0
- package/dist/wfsUtils-7caaa2cc.js +343 -0
- package/dist/workerHelper-86e37deb.js +11 -0
- package/dist/xyChart-0673158d.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-232b465f.js +0 -109
- package/dist/APIKeyMixin-6c797b4c.js +0 -19
- package/dist/Analysis-fb0fc04a.js +0 -31
- package/dist/ArcGISCachedService-e0930844.js +0 -47
- package/dist/ArcGISService-81baed4d.js +0 -25
- package/dist/AreaMeasurement2D-1dbe17c7.js +0 -405
- package/dist/AreaMeasurement3D-3b80654b.js +0 -488
- package/dist/AttachmentInfo-e02ca554.js +0 -34
- package/dist/AttachmentQuery-1667a134.js +0 -18
- package/dist/AttributeStore-2f8bce1a.js +0 -1707
- package/dist/BaseDynamicLayerView2D-6ed632c7.js +0 -63
- package/dist/BingMapsLayer-1b540400.js +0 -112
- package/dist/Bitmap-625c3ae1.js +0 -128
- package/dist/BitmapContainer-ac2e261c.js +0 -23
- package/dist/BlendLayer-38d68343.js +0 -13
- package/dist/BoundsStore-f1942e67.js +0 -63
- package/dist/BufferObject-faafd842.js +0 -100
- package/dist/BufferView-c2f86567.js +0 -683
- package/dist/BuildingSceneLayer-95da2010.js +0 -535
- package/dist/Button-312c8286.js +0 -36
- package/dist/CSVLayer-68bdf977.js +0 -208
- package/dist/CSVSourceWorker-df47e4b9.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-5ff99579.js +0 -66
- package/dist/CatalogFootprintLayerView2D-9f09a894.js +0 -76
- package/dist/CatalogLayer-6b5e756d.js +0 -262
- package/dist/CatalogLayerView2D-4f9ea89a.js +0 -52
- package/dist/ClassBreaksDefinition-d32b0ea5.js +0 -18
- package/dist/ColorMaterial.glsl-5fa4dda6.js +0 -64
- package/dist/ColorSet-59641c11.js +0 -45
- package/dist/ColorStop-d5b563ab.js +0 -29
- package/dist/Container-879e59ef.js +0 -521
- package/dist/CustomParametersMixin-c281d5e7.js +0 -12
- package/dist/DefaultMaterial.glsl-6cc65bf3.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-14d3794c.js +0 -653
- package/dist/DefaultTheme-6f3c03ba.js +0 -130
- package/dist/DeleteForwardEditsParameters-127d0833.js +0 -18
- package/dist/DimensionLayer-031be560.js +0 -129
- package/dist/DirectLineMeasurement3D-342dea70.js +0 -449
- package/dist/DistanceMeasurement2D-a628b12a.js +0 -303
- package/dist/DoubleArray-61325dbc.js +0 -25
- package/dist/EdgeProcessingWorker-9baa9f38.js +0 -63
- package/dist/EditBusLayer-b7db2f6c.js +0 -107
- package/dist/ElevationInfo-016cc1c4.js +0 -56
- package/dist/ElevationLayer-ae7cbbb9.js +0 -129
- package/dist/ElevationQuery-96db182d.js +0 -598
- package/dist/ElevationSamplerWorker-ab27b576.js +0 -62
- package/dist/ExportImageParameters-d1792a7e.js +0 -66
- package/dist/ExportStrategy-a42be397.js +0 -93
- package/dist/ExportWMSImageParameters-853db12a.js +0 -33
- package/dist/External-a5c4899d.js +0 -110
- package/dist/FeatureCollectionSnappingSource-40da43c0.js +0 -130
- package/dist/FeatureCommandQueue-68735fa7.js +0 -1244
- package/dist/FeatureEffect-20b68d20.js +0 -39
- package/dist/FeatureEffectLayer-65d674f5.js +0 -13
- package/dist/FeatureFilter-0babb1a1.js +0 -27
- package/dist/FeatureLayer-bb266fef.js +0 -693
- package/dist/FeatureLayerBase-583207e8.js +0 -148
- package/dist/FeatureLayerSource-daea2938.js +0 -444
- package/dist/FeatureLayerView2D-a93360fa.js +0 -1967
- package/dist/FeaturePipelineWorker-f8bb9d01.js +0 -3633
- package/dist/FeatureReductionLayer-b540e503.js +0 -225
- package/dist/FeatureReductionSelection-75ac9c66.js +0 -22
- package/dist/FeatureServiceSnappingSource-8d342703.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-97c5a3e7.js +0 -747
- package/dist/FeatureSet-769d2f68.js +0 -188
- package/dist/FeatureStore-cfee3322.js +0 -131
- package/dist/FeatureTemplate-1be6448a.js +0 -12
- package/dist/FeatureType-69365546.js +0 -25
- package/dist/FieldsIndex-fd635f39.js +0 -109
- package/dist/FormTemplate-8a69784e.js +0 -350
- package/dist/GeoJSONLayer-288dc230.js +0 -236
- package/dist/GeoJSONSourceWorker-2a406166.js +0 -247
- package/dist/GeoRSSLayer-b6cf0b9a.js +0 -73
- package/dist/GeoRSSLayerView2D-a2d897cc.js +0 -140
- package/dist/GeometryUtils-42ae242b.js +0 -403
- package/dist/GraphicContainer-f39e4cce.js +0 -26
- package/dist/GraphicManipulator-d94e3db2.js +0 -1499
- package/dist/GraphicsLayer-06f54c2b.js +0 -38
- package/dist/GraphicsLayerView2D-6b0c439f.js +0 -114
- package/dist/GraphicsSnappingSource-cdbd5c58.js +0 -273
- package/dist/GraphicsView2D-5c69cd54.js +0 -620
- package/dist/GroupLayer-d90d1469.js +0 -147
- package/dist/GroupLayerView2D-47ee20d3.js +0 -98
- package/dist/HUDMaterial.glsl-1f7c8dc7.js +0 -65
- package/dist/HighlightCounter-82aefa16.js +0 -41
- package/dist/HighlightGraphicContainer-5887470a.js +0 -18
- package/dist/I3SBinaryReader-bc4c80ba.js +0 -310
- package/dist/I3SLayerDefinitions-dcda247e.js +0 -55
- package/dist/I3SUtil-f0366135.js +0 -59
- package/dist/IdentityManager-488a6f1a.js +0 -899
- package/dist/ImageHistogramParameters-4dc64f39.js +0 -905
- package/dist/ImageryLayer-b486249a.js +0 -1799
- package/dist/ImageryLayerView2D-f1c342ad.js +0 -352
- package/dist/ImageryTileLayer-12ada40b.js +0 -2157
- package/dist/ImageryTileLayerView2D-f35352b1.js +0 -1110
- package/dist/Indices-d59209a8.js +0 -67
- package/dist/IntegratedMesh3DTilesLayer-be58f806.js +0 -112
- package/dist/IntegratedMeshLayer-7b709481.js +0 -141
- package/dist/InteractiveAnalysisViewModel-cc8c864a.js +0 -7397
- package/dist/InterleavedLayout-31a7340e.js +0 -163
- package/dist/KMLLayer-599771d7.js +0 -162
- package/dist/KMLLayerView2D-017f9a86.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-2578f250.js +0 -43
- package/dist/LRUCache-d9e4b57a.js +0 -32
- package/dist/LabelClass-909af0e5.js +0 -135
- package/dist/LabelMetric-a3f892e4.js +0 -400
- package/dist/LaserlinePath.glsl-763a0501.js +0 -64
- package/dist/Laserlines.glsl-75db5218.js +0 -65
- package/dist/LayerFloorInfo-8abaffaa.js +0 -15
- package/dist/LayerView-2a8c8edc.js +0 -206
- package/dist/LercWorker-06fcacbd.js +0 -157
- package/dist/LineOfSightLayer-019d46c8.js +0 -147
- package/dist/LinkChartLayer-332a03e2.js +0 -1027
- package/dist/Lyr3DWorker-5d6064e5.js +0 -82
- package/dist/MagnifierPrograms-4170fe79.js +0 -806
- package/dist/MapImageLayer-d86788de.js +0 -169
- package/dist/MapImageLayerView2D-0b2dddf2.js +0 -146
- package/dist/MapNotesLayer-07a5011d.js +0 -283
- package/dist/MapNotesLayerView2D-37f2c3b3.js +0 -161
- package/dist/MapServiceLayerViewHelper-f4014bfb.js +0 -288
- package/dist/MeasurementWidgetContent-31e1b266.js +0 -2642
- package/dist/MediaLayer-cd8e19fe.js +0 -523
- package/dist/MediaLayerView2D-bd3bc699.js +0 -332
- package/dist/MemCache-6249a3f0.js +0 -227
- package/dist/MemorySourceWorker-074a99da.js +0 -222
- package/dist/Mesh-17dfbf3e.js +0 -980
- package/dist/MeshLocalVertexSpace-a0c9365a.js +0 -19
- package/dist/MultiOriginJSONSupport-677c0e5f.js +0 -158
- package/dist/OGCFeatureLayer-1db569c4.js +0 -211
- package/dist/OGCFeatureLayerView2D-3dacad79.js +0 -82
- package/dist/ObjectStack-5e8cdae7.js +0 -21
- package/dist/Octree-0cab1591.js +0 -495
- package/dist/OpenStreetMapLayer-4b9e6867.js +0 -30
- package/dist/OperationalLayer-96cb1405.js +0 -44
- package/dist/OrderByInfo-4cb60db9.js +0 -16
- package/dist/OrderedLayer-cbff4a31.js +0 -26
- package/dist/OrientedImageryLayer-301c702b.js +0 -216
- package/dist/OverlayCompositing.glsl-cdda5153.js +0 -65
- package/dist/OverrideHelper-f9ba3c94.js +0 -242
- package/dist/PBFDecoderWorker-eac75de9.js +0 -213
- package/dist/PointCloudLayer-ce8e5fd6.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-ca506fdf.js +0 -115
- package/dist/PointCloudWorker-49b24336.js +0 -212
- package/dist/PooledRBush-af918d48.js +0 -272
- package/dist/Popup-e996c502.js +0 -3990
- package/dist/PortalLayer-60c1c36d.js +0 -126
- package/dist/Program-5b5c8288.js +0 -694
- package/dist/ProgramTemplate-62d54e1b.js +0 -35
- package/dist/QueryEngine-1b2a6d7d.js +0 -896
- package/dist/QueryTask-07de3621.js +0 -119
- package/dist/RasterSymbolizer-c6f76134.js +0 -3024
- package/dist/RasterVFDisplayObject-573f0530.js +0 -581
- package/dist/RasterWorker-f428c6b4.js +0 -78
- package/dist/RawBlockCache-0803fdd7.js +0 -185
- package/dist/RealisticTree.glsl-abb5883e.js +0 -42
- package/dist/RefreshableLayer-0d1a28eb.js +0 -80
- package/dist/RefreshableLayerView-19c8ff47.js +0 -16
- package/dist/Relationship-35bb85fc.js +0 -64
- package/dist/RelationshipQuery-1cb86efa.js +0 -22
- package/dist/RenderingContext-34f41421.js +0 -889
- package/dist/RibbonLine.glsl-88da820b.js +0 -65
- package/dist/RouteLayer-b6a064d9.js +0 -786
- package/dist/RouteLayerView2D-b14b84ae.js +0 -195
- package/dist/SDFHelper-49b28369.js +0 -140
- package/dist/SSAO.glsl-b5eba45c.js +0 -43
- package/dist/SSAOBlur.glsl-7377bef6.js +0 -42
- package/dist/ScaleRangeLayer-d06647e5.js +0 -21
- package/dist/SceneLayer-34617ffa.js +0 -542
- package/dist/SceneLayerSnappingSource-2115fd1b.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-5051ed2a.js +0 -112
- package/dist/SceneLayerWorker-416bda11.js +0 -164
- package/dist/SceneService-337f7bcd.js +0 -215
- package/dist/Scheduler-b0e8df04.js +0 -373
- package/dist/ShadedColorMaterial.glsl-8dd39e79.js +0 -64
- package/dist/SnappingOperation-726320a3.js +0 -48
- package/dist/SourceLayerData-b2da5f90.js +0 -116
- package/dist/SpatialFilter-0839066d.js +0 -1701
- package/dist/Stop-16e18837.js +0 -281
- package/dist/StreamLayer-a2c5ad69.js +0 -188
- package/dist/StreamLayerView2D-b1cb419c.js +0 -164
- package/dist/StyleRepository-55975dc1.js +0 -2212
- package/dist/SublayersOwner-dfd52113.js +0 -545
- package/dist/SubtypeGroupLayer-19990fdc.js +0 -514
- package/dist/SubtypeGroupLayerView2D-039eecec.js +0 -84
- package/dist/TechniqueInstance-f272ce92.js +0 -233
- package/dist/TemporalLayer-960c7904.js +0 -23
- package/dist/Texture-08e8abdd.js +0 -501
- package/dist/TextureOnly.glsl-adbd8e1e.js +0 -65
- package/dist/Theme-a0c472c9.js +0 -3426
- package/dist/Tick-ad80492f.js +0 -723
- package/dist/TileContainer-6b12d8e1.js +0 -31
- package/dist/TileInfoTilemapCache-b78dac78.js +0 -38
- package/dist/TileLayer-4db1b607.js +0 -194
- package/dist/TileLayerView2D-1f2d0b4c.js +0 -187
- package/dist/TilemapCache-671945d2.js +0 -189
- package/dist/TimeInfo-48493242.js +0 -42
- package/dist/TimeOnly-40ea9bb9.js +0 -706
- package/dist/Tooltip-9ecc3c9d.js +0 -138
- package/dist/TopFeaturesQuery-c0fd4e83.js +0 -32
- package/dist/TurboLine-cb0c9eaa.js +0 -565
- package/dist/UniqueValueRenderer-e4a27dfc.js +0 -1039
- package/dist/UnknownLayer-c3ba50b7.js +0 -30
- package/dist/UnknownTimeZone-832b690f.js +0 -15
- package/dist/UnsupportedLayer-0a89352f.js +0 -31
- package/dist/UpdateTracking2D-881e1d79.js +0 -8566
- package/dist/Util-b8d78341.js +0 -57
- package/dist/VectorTileLayer-43223ebe.js +0 -544
- package/dist/VectorTileLayerView2D-3d5f0721.js +0 -2108
- package/dist/Version-014efc62.js +0 -33
- package/dist/VertexArrayObject-4c6a6897.js +0 -73
- package/dist/VertexColor.glsl-e1468339.js +0 -2683
- package/dist/VertexSnappingCandidate-b3a3d14d.js +0 -13
- package/dist/VideoLayerView2D-f24c6919.js +0 -124
- package/dist/VoxelLayer-5ab46878.js +0 -631
- package/dist/WFSLayer-e8a081ca.js +0 -221
- package/dist/WFSSourceWorker-55c872f8.js +0 -157
- package/dist/WGLContainer-f4c4a8dc.js +0 -5426
- package/dist/WMSLayer-e9d5e4a6.js +0 -536
- package/dist/WMSLayerView2D-56144a1d.js +0 -117
- package/dist/WMTSLayer-c571ae0f.js +0 -531
- package/dist/WMTSLayerView2D-81b561e0.js +0 -142
- package/dist/WebTileLayer-cd295f56.js +0 -110
- package/dist/WhereClause-8bc4aa58.js +0 -2766
- package/dist/WorkerHandle-f8e580f2.js +0 -47
- package/dist/WorkerTileHandler-0f73a7f2.js +0 -1539
- package/dist/action-53058ddb.js +0 -198
- package/dist/action-group-ff2ef7e7.js +0 -145
- package/dist/action-menu-fefff035.js +0 -1759
- package/dist/apng-ac31a3d2.js +0 -392
- package/dist/arcade-ce9e8356.js +0 -229
- package/dist/arcadeAsyncRuntime-068150f3.js +0 -943
- package/dist/arcadeUtils-38c2028a.js +0 -8741
- package/dist/arcgis-knowledge-client-core-418d2890.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-bf207cbd.js +0 -1218
- package/dist/arcgisLayers-f9b73e96.js +0 -152
- package/dist/associatedFeatureServiceUtils-f1895302.js +0 -92
- package/dist/axisAngleDegrees-abd6e971.js +0 -49
- package/dist/basis_transcoder-ba9d02db.js +0 -1248
- package/dist/calcite-action-07342a33.js +0 -22
- package/dist/calcite-action-bar-b8b194bf.js +0 -303
- package/dist/calcite-action-group-f93a5b76.js +0 -28
- package/dist/calcite-button-13172f9c.js +0 -228
- package/dist/calcite-flow-959098df.js +0 -128
- package/dist/calcite-flow-item-9141ea0e.js +0 -499
- package/dist/calcite-icon-1f1f741d.js +0 -16
- package/dist/calcite-input-99b0c89d.js +0 -24
- package/dist/calcite-label-5daa57c6.js +0 -79
- package/dist/calcite-list-543efc4b.js +0 -2135
- package/dist/calcite-list-item-a148ac57.js +0 -576
- package/dist/calcite-list-item-group-4da974f3.js +0 -71
- package/dist/calcite-loader-8b29a4cd.js +0 -14
- package/dist/calcite-modal-b64d2a9b.js +0 -333
- package/dist/calcite-notice-1527bc00.js +0 -181
- package/dist/calcite-option-5ea94a2a.js +0 -94
- package/dist/calcite-scrim-35fd270f.js +0 -18
- package/dist/calcite-select-a936a6d4.js +0 -231
- package/dist/capabilities-eb05cd14.js +0 -50
- package/dist/chartCommon-af447b81.js +0 -256
- package/dist/chartUtilsAm5-21243f3e.js +0 -2954
- package/dist/clientSideDefaults-0197b13d.js +0 -39
- package/dist/colorRamps-100595ab.js +0 -38
- package/dist/colorUtils-1a8cc2f8.js +0 -164
- package/dist/commonProperties-7d8f6b56.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-466bc2c5.js +0 -60
- package/dist/conditionalSlot-55a86124.js +0 -27
- package/dist/createConnection-37afc89c.js +0 -299
- package/dist/dataUtils-efd5edf8.js +0 -1421
- package/dist/deduplicate-be0453c1.js +0 -89
- package/dist/defaults-3495cefd.js +0 -31
- package/dist/deleteForwardEdits-8ffa4b4e.js +0 -13
- package/dist/diffUtils-cccaeaa2.js +0 -90
- package/dist/drapedUtils-dfe3325a.js +0 -75
- package/dist/earcut-1a1bdd2c.js +0 -292
- package/dist/edgeProcessing-b0f5f4f0.js +0 -252
- package/dist/editingSupport-93603f8d.js +0 -203
- package/dist/editsZScale-8a2a7226.js +0 -37
- package/dist/elevationInfoUtils-96b1ac38.js +0 -126
- package/dist/executeForIds-48f5ccd3.js +0 -14
- package/dist/executeForTopCount-6ba38c5f.js +0 -17
- package/dist/executeForTopExtents-570aeb4a.js +0 -17
- package/dist/executeForTopIds-066c5e05.js +0 -17
- package/dist/executeQueryJSON-f5d65f6d.js +0 -15
- package/dist/executeQueryPBF-4ff20838.js +0 -152
- package/dist/executeRelationshipQuery-60c2686f.js +0 -53
- package/dist/executeTopFeaturesQuery-029eb564.js +0 -18
- package/dist/featureConversionUtils-8635d4bd.js +0 -479
- package/dist/featureLayerUtils-883379f8.js +0 -250
- package/dist/featureLayerUtils-89be3008.js +0 -142
- package/dist/featureSetUtils-3ba52dc3.js +0 -2530
- package/dist/featuresetbase-360521bb.js +0 -707
- package/dist/featuresetgeom-1c40fbf0.js +0 -99
- package/dist/featuresetstats-8b7ee0fc.js +0 -81
- package/dist/featuresetstring-502232ab.js +0 -95
- package/dist/fetchService-81224f29.js +0 -33
- package/dist/fieldProperties-1d23cc31.js +0 -33
- package/dist/floatRGBA-8dd8f77f.js +0 -20
- package/dist/form-81637afc.js +0 -138
- package/dist/geohashUtils-7a5a8250.js +0 -85
- package/dist/geojson-b271f3fc.js +0 -208
- package/dist/geomasync-4182a04e.js +0 -567
- package/dist/geometryEngine-170fd2fc.js +0 -192
- package/dist/geometryEngineAsync-ff5386c8.js +0 -217
- package/dist/geometryEngineBase-292b6d6f.js +0 -18463
- package/dist/geometryEngineJSON-15d3dac3.js +0 -46
- package/dist/geometryEngineJSON-c8044348.js +0 -171
- package/dist/geometryEngineWorker-19511bd8.js +0 -11
- package/dist/geometryServiceUtils-a348e7af.js +0 -28
- package/dist/georeference-72e12165.js +0 -291
- package/dist/gif-48b9a7df.js +0 -323
- package/dist/gltfexport-45261c80.js +0 -705
- package/dist/groupLayerUtils-f400995e.js +0 -39
- package/dist/heatmapUtils-81245e4b.js +0 -45
- package/dist/highlightReasons-23d6c956.js +0 -19
- package/dist/hydrated-e88a116e.js +0 -40
- package/dist/i3s-8b6deab9.js +0 -809
- package/dist/icon-422742c4.js +0 -127
- package/dist/imageBitmapUtils-12016538.js +0 -23
- package/dist/imageUtils-b38618d9.js +0 -89
- package/dist/imageUtils-c550215a.js +0 -69
- package/dist/imageryUtils-ac0e6068.js +0 -43
- package/dist/index-a450f76b.js +0 -45553
- package/dist/input-message-c606a089.js +0 -92
- package/dist/input2-8de5385e.js +0 -575
- package/dist/interactive-1bfa32d8.js +0 -80
- package/dist/jsonContext-70d89bc5.js +0 -15
- package/dist/jsonUtils-599f89fd.js +0 -86
- package/dist/jsonUtils-59cbda09.js +0 -476
- package/dist/jsonUtils-dbeb4b10.js +0 -59
- package/dist/kmlUtils-acfd0be5.js +0 -112
- package/dist/knowledgeGraphService-d0de6015.js +0 -739
- package/dist/knowledgegraph-1d25377f.js +0 -149
- package/dist/labelUtils-17e6e19c.js +0 -61
- package/dist/labelingInfo-7583b96a.js +0 -46
- package/dist/layersCreator-a7588c85.js +0 -151
- package/dist/layersLoader-503fa253.js +0 -197
- package/dist/lazyLayerLoader-14780aaf.js +0 -10
- package/dist/lclayout-b5aeb13b.js +0 -773
- package/dist/lengthUtils-15c44621.js +0 -5
- package/dist/lerc-wasm-57456401.js +0 -325
- package/dist/libtess-asm-08a80cbf.js +0 -3673
- package/dist/libtess-bcb513a0.js +0 -269
- package/dist/lineSegment-53f5f3d5.js +0 -76
- package/dist/loadGLTFMesh-561cd76a.js +0 -181
- package/dist/loadable-11e952cf.js +0 -24
- package/dist/loader-aafdf7c3.js +0 -79
- package/dist/lyr3DWorker-1876a7b0.js +0 -2108
- package/dist/mapViewDeps-c8de4ef9.js +0 -3052
- package/dist/mediaLayerUtils-236fdb9c.js +0 -35
- package/dist/meshFeatureSet-cf240f51.js +0 -126
- package/dist/meshVertexSpaceUtils-3647b869.js +0 -58
- package/dist/multidimensionalUtils-611e5cda.js +0 -290
- package/dist/normalizeUtilsSync-90304e5d.js +0 -181
- package/dist/number-d1e69c5f.js +0 -128
- package/dist/objectResourceUtils-237c5dab.js +0 -1455
- package/dist/observers-7ebedc04.js +0 -30
- package/dist/ogcFeatureUtils-f14754d3.js +0 -206
- package/dist/openCloseComponent-f7f72e31.js +0 -37
- package/dist/orientedBoundingBox-75e679bc.js +0 -447
- package/dist/parser-54b64f9a.js +0 -488
- package/dist/pbf-4b5a905e.js +0 -215
- package/dist/pbfQueryUtils-780daa49.js +0 -422
- package/dist/pe-wasm-7eeff6bc.js +0 -887
- package/dist/persistable-2afd8b64.js +0 -89
- package/dist/perspectiveUtils-78d50b08.js +0 -42
- package/dist/pieChart-f5575f34.js +0 -555
- package/dist/plane-ee1849b4.js +0 -160
- package/dist/popupUtils-5d826c7a.js +0 -50
- package/dist/popupUtils-8f261298.js +0 -22
- package/dist/portalItemUtils-07c1c29f.js +0 -57
- package/dist/portalLayers-199d1cb1.js +0 -312
- package/dist/portalUtils-f3c544f6.js +0 -7
- package/dist/programUtils-cd0377dc.js +0 -59
- package/dist/project-6d7a2904.js +0 -21
- package/dist/projectPointToVector-5800baf2.js +0 -14
- package/dist/projectVectorToVector-fdcb00cb.js +0 -13
- package/dist/quantityUtils-ab7a657b.js +0 -33
- package/dist/quantizationUtils-dde8a0c2.js +0 -68
- package/dist/quat-48b188ff.js +0 -104
- package/dist/query-581e35c7.js +0 -89
- package/dist/queryAttachments-191977a0.js +0 -39
- package/dist/queryEngineUtils-15b0748f.js +0 -21
- package/dist/queryTopFeatures-e6b8517a.js +0 -50
- package/dist/queryZScale-b9c83898.js +0 -12
- package/dist/rasterProjectionHelper-9e69c84d.js +0 -577
- package/dist/rasterUtils-76d2db45.js +0 -122
- package/dist/rasterizingUtils-730137a6.js +0 -46
- package/dist/request-3c238dd9.js +0 -46
- package/dist/requestImageUtils-6a0b710a.js +0 -8
- package/dist/resourceExtension-8e2ef6d4.js +0 -17
- package/dist/resourceUtils-49ebeb9f.js +0 -42
- package/dist/resourceUtils-b3c85655.js +0 -62
- package/dist/resourceUtils-b45c0ef9.js +0 -69
- package/dist/saveAPIKeyUtils-1146065e.js +0 -8
- package/dist/saveUtils-196e791e.js +0 -24
- package/dist/scaleUtils-7e908168.js +0 -23
- package/dist/scrim-56f6fa37.js +0 -114
- package/dist/serviceCapabilitiesUtils-266d7001.js +0 -64
- package/dist/sourceUtils-0d21eace.js +0 -71
- package/dist/sphere-8103ac36.js +0 -199
- package/dist/statsWorker-04df4d99.js +0 -37
- package/dist/streamLayerUtils-6b66a73a.js +0 -31
- package/dist/styleUtils-31e64784.js +0 -75
- package/dist/styleUtils-3951c967.js +0 -14
- package/dist/sublayerUtils-d60d357a.js +0 -37
- package/dist/substitute-77b7b80a.js +0 -52
- package/dist/symbolColorUtils-d97fe12d.js +0 -8
- package/dist/symbolLayerUtils-5f73a9b9.js +0 -31
- package/dist/symbologySnappingCandidates-bd284687.js +0 -221
- package/dist/t9n-2012740c.js +0 -349
- package/dist/testSVGPremultipliedAlpha-bb386a75.js +0 -94
- package/dist/timeSupport-2eb266be.js +0 -410
- package/dist/triangle-cac8dd7a.js +0 -98
- package/dist/unitConversionUtils-ad9151e0.js +0 -17
- package/dist/unitFormatUtils-3096fcbf.js +0 -40
- package/dist/uploadAssetErrors-b8ec890d.js +0 -70
- package/dist/uploadAssets-42d5e368.js +0 -330
- package/dist/utils-0ec1deff.js +0 -232
- package/dist/utils-25ac5b7c.js +0 -73
- package/dist/utils-3fc8cef0.js +0 -79
- package/dist/utils-59c058ba.js +0 -2746
- package/dist/utils-5a4ac69c.js +0 -419
- package/dist/utils-93ae7d8a.js +0 -34
- package/dist/utils-bba64d46.js +0 -91
- package/dist/utils-ce8900dc.js +0 -433
- package/dist/utils3-72b32be5.js +0 -75
- package/dist/vec3-0abe1464.js +0 -81
- package/dist/vec42-1641eab7.js +0 -125
- package/dist/versionUtils-6a805b25.js +0 -161
- package/dist/visualVariableUtils-7ae62b11.js +0 -267
- package/dist/webStyleSymbolUtils-038dca4c.js +0 -48
- package/dist/webglDeps-c2957fe0.js +0 -23
- package/dist/wfsUtils-a332128b.js +0 -343
- package/dist/workerHelper-2a48e790.js +0 -11
- package/dist/xyChart-131284db.js +0 -3335
package/dist/utils-59c058ba.js
DELETED
|
@@ -1,2746 +0,0 @@
|
|
|
1
|
-
import { y as _e } from "./colorUtils-1a8cc2f8.js";
|
|
2
|
-
import { e as c, y as m, c as A, bx as $e, ei as rs, bu as jt, db as Y, bz as L, bv as vs, c7 as ws, c5 as Ct, c2 as _t, kI as kt, W as Bt, a$ as Be, b3 as bs } from "./index-a450f76b.js";
|
|
3
|
-
import { u as w, r as nt, i as vt, o as As, t as Ts, n as Fe, v as os, d as Xt, w as is, x as Ps, y as K, z as $s, A as Fs, B as Ns, C as Is } from "./dataUtils-efd5edf8.js";
|
|
4
|
-
import { a as Rs, s as ks, v as Vt, C as Cs, w as as, e as je, x as _s, y as Bs, z as Kt, E as js, H as Ss, I as Jt, J as Ms, M as Os, K as Ds } from "./RasterSymbolizer-c6f76134.js";
|
|
5
|
-
import { m as Gs, p as zs } from "./colorRamps-100595ab.js";
|
|
6
|
-
let Ut = class extends $e {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments), this.raster = void 0;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
c([m({ json: { write: !0 } })], Ut.prototype, "raster", void 0), Ut = c([A("esri.layers.support.rasterFunctions.AspectFunctionArguments")], Ut);
|
|
12
|
-
const D = Ut;
|
|
13
|
-
var Yt;
|
|
14
|
-
let wt = Yt = class extends D {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments), this.raster2 = void 0;
|
|
17
|
-
}
|
|
18
|
-
get rasters() {
|
|
19
|
-
return [this.raster, this.raster2];
|
|
20
|
-
}
|
|
21
|
-
clone() {
|
|
22
|
-
return new Yt({ raster: this.raster, raster2: this.raster2, operation: this.operation });
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
c([m({ json: { write: !0 } })], wt.prototype, "operation", void 0), c([m({ json: { write: !0 } })], wt.prototype, "raster2", void 0), c([m({ readOnly: !0 })], wt.prototype, "rasters", null), wt = Yt = c([A("esri.layers.support.rasterFunctions.ArithmeticFunctionArguments")], wt);
|
|
26
|
-
const Es = wt, Vs = /* @__PURE__ */ new Set(["slope", "aspect", "curvature", "hillshade", "shadedrelief", "statistics"]);
|
|
27
|
-
let S = class extends $e {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments), this.functionArguments = null, this.readingBufferSize = 0, this.id = -1, this.isNoopProcess = !1, this.rawInputBandIds = [], this.rawSourceRasterInfos = null, this.isInputBandIdsSwizzled = !1, this.swizzledBandSelection = [], this.isBranch = !1, this._bindingResult = null;
|
|
30
|
-
}
|
|
31
|
-
get supportsGPU() {
|
|
32
|
-
return this._bindingResult.supportsGPU;
|
|
33
|
-
}
|
|
34
|
-
get flatWebGLFunctionChain() {
|
|
35
|
-
var u;
|
|
36
|
-
const t = this.getWebGLProcessorDefinition();
|
|
37
|
-
if (!t)
|
|
38
|
-
return null;
|
|
39
|
-
const e = [t], { parameters: s } = t;
|
|
40
|
-
let o = s.rasters || s.raster && [s.raster];
|
|
41
|
-
for (; o != null && o.length; ) {
|
|
42
|
-
e.unshift(...o);
|
|
43
|
-
const l = [];
|
|
44
|
-
for (let p = 0; p < o.length; p++) {
|
|
45
|
-
const { parameters: h } = o[p], f = h.rasters || h.raster && [h.raster];
|
|
46
|
-
f != null && f.length && l.push(...f);
|
|
47
|
-
}
|
|
48
|
-
o = l;
|
|
49
|
-
}
|
|
50
|
-
for (let l = e.length - 1; l >= 0; l--)
|
|
51
|
-
e[l].isNoopProcess && e.splice(l, 1);
|
|
52
|
-
let r = !1;
|
|
53
|
-
for (let l = 0; l < e.length; l++) {
|
|
54
|
-
const p = e[l];
|
|
55
|
-
p.id = e.length - l - 1;
|
|
56
|
-
const { rasters: h } = p.parameters;
|
|
57
|
-
r = r || h != null && h.length > 1;
|
|
58
|
-
}
|
|
59
|
-
const a = e.some(({ name: l }) => Vs.has(l.toLowerCase())), { rawSourceRasterInfos: n } = this;
|
|
60
|
-
return { functions: e, hasBranches: r, hasFocalFunction: a, isSourceSingleBand: ((u = n == null ? void 0 : n[0]) == null ? void 0 : u.bandCount) === 1 };
|
|
61
|
-
}
|
|
62
|
-
bind(t, e = !1, s = -1) {
|
|
63
|
-
this.id = s + 1;
|
|
64
|
-
const o = this._getRasterValues();
|
|
65
|
-
let r = !0;
|
|
66
|
-
for (let a = 0; a < o.length; a++) {
|
|
67
|
-
const n = o[a];
|
|
68
|
-
if (n != null && this._isRasterFunctionValue(n)) {
|
|
69
|
-
const u = n.bind(t, e, this.id + a);
|
|
70
|
-
if (!u.success)
|
|
71
|
-
return this._bindingResult = u, u;
|
|
72
|
-
r = r && u.supportsGPU;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return !this.rasterInfo || e ? (this.sourceRasterInfos = this._getSourceRasterInfos(t), this._bindingResult = this._bindSourceRasters(), this._bindingResult.success && this._patchRasterInfo(), this._bindingResult.supportsGPU = r && this._bindingResult.supportsGPU, this.processInputBandIds(), this._bindingResult) : (this._bindingResult = { success: !0, supportsGPU: !0 }, this.processInputBandIds(), this._bindingResult);
|
|
76
|
-
}
|
|
77
|
-
process(t) {
|
|
78
|
-
const e = this._getRasterValues(), s = e.length === 0 ? t.pixelBlocks ?? t.primaryPixelBlocks : e.map((o) => this._readRasterValue(o, t));
|
|
79
|
-
return this._processPixels({ ...t, pixelBlocks: s });
|
|
80
|
-
}
|
|
81
|
-
processInputBandIds() {
|
|
82
|
-
const t = this._getRasterValues().filter(this._isRasterFunctionValue);
|
|
83
|
-
let e;
|
|
84
|
-
if (t.length > 1) {
|
|
85
|
-
const r = t.map((n) => n.processInputBandIds()[0]);
|
|
86
|
-
this.rawInputBandIds = r, this.isInputBandIdsSwizzled = this.rawInputBandIds.some((n, u) => n !== u);
|
|
87
|
-
const a = t.filter((n) => n.functionName === "ExtractBand");
|
|
88
|
-
return a.length && a.forEach((n, u) => {
|
|
89
|
-
n.isInputBandIdsSwizzled = !0, n.swizzledBandSelection = [u, u, u];
|
|
90
|
-
}), this.rawInputBandIds;
|
|
91
|
-
}
|
|
92
|
-
const s = t[0];
|
|
93
|
-
if (s) {
|
|
94
|
-
if (e = s.processInputBandIds(), s.isInputBandIdsSwizzled)
|
|
95
|
-
return this.rawInputBandIds = e, e;
|
|
96
|
-
} else {
|
|
97
|
-
e = [];
|
|
98
|
-
const { bandCount: r } = this.sourceRasterInfos[0];
|
|
99
|
-
for (let a = 0; a < r; a++)
|
|
100
|
-
e.push(a);
|
|
101
|
-
}
|
|
102
|
-
const o = this._getInputBandIds(e);
|
|
103
|
-
return this.isInputBandIdsSwizzled = o.some((r, a) => r !== a), this.rawInputBandIds = o, this.rawInputBandIds;
|
|
104
|
-
}
|
|
105
|
-
getPrimaryRasters() {
|
|
106
|
-
const t = [], e = [];
|
|
107
|
-
return this._getPrimaryRasters(this, t, e), { rasters: t, rasterIds: e };
|
|
108
|
-
}
|
|
109
|
-
getWebGLProcessorDefinition() {
|
|
110
|
-
const t = this._getWebGLParameters(), { raster: e, rasters: s } = this.functionArguments;
|
|
111
|
-
return s && Array.isArray(s) && s.length ? (t.rasters = s.map((o) => this._isRasterFunctionValue(o) ? o.getWebGLProcessorDefinition() : typeof o == "number" ? { name: "Constant", parameters: { value: o }, pixelType: "f32", id: -1, isNoopProcess: !1 } : { name: "Identity", parameters: { value: o }, pixelType: "f32", id: -1, isNoopProcess: !1 }), t.rasters.some((o) => o != null) || (t.rasters = null)) : this._isRasterFunctionValue(e) && (t.raster = e.getWebGLProcessorDefinition()), { name: this.functionName, parameters: t, pixelType: this.outputPixelType, id: this.id, isNoopProcess: this.isNoopProcess };
|
|
112
|
-
}
|
|
113
|
-
getClippingGeometries() {
|
|
114
|
-
const t = [];
|
|
115
|
-
this.functionName === "Clip" && t.push(this.functionArguments);
|
|
116
|
-
const { raster: e, rasters: s } = this.functionArguments;
|
|
117
|
-
if (s && Array.isArray(s) && s.length)
|
|
118
|
-
s.forEach((o) => {
|
|
119
|
-
if (this._isRasterFunctionValue(o)) {
|
|
120
|
-
const r = o.getClippingGeometries();
|
|
121
|
-
t.push(...r);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
else if (this._isRasterFunctionValue(e)) {
|
|
125
|
-
const o = e.getClippingGeometries();
|
|
126
|
-
t.push(...o);
|
|
127
|
-
}
|
|
128
|
-
return t;
|
|
129
|
-
}
|
|
130
|
-
_getOutputPixelType(t) {
|
|
131
|
-
return this.outputPixelType === "unknown" ? t : this.outputPixelType ?? t;
|
|
132
|
-
}
|
|
133
|
-
_getWebGLParameters() {
|
|
134
|
-
return {};
|
|
135
|
-
}
|
|
136
|
-
_getInputBandIds(t) {
|
|
137
|
-
return t;
|
|
138
|
-
}
|
|
139
|
-
_removeStatsHistColormapVAT(t) {
|
|
140
|
-
t.statistics = null, t.histograms = null, t.colormap = null, t.attributeTable = null;
|
|
141
|
-
}
|
|
142
|
-
_getRasterValues() {
|
|
143
|
-
const { rasterArgumentNames: t } = this;
|
|
144
|
-
return t[0] === "rasters" ? this.functionArguments.rasters ?? [] : t.flatMap((e) => this.functionArguments[e]);
|
|
145
|
-
}
|
|
146
|
-
_getSourceRasterInfos(t) {
|
|
147
|
-
const e = this._getRasterValues(), { rasterInfos: s, rasterIds: o } = t;
|
|
148
|
-
if (e.length === 0)
|
|
149
|
-
return s;
|
|
150
|
-
const r = e.map((n) => n && typeof n == "object" && "bind" in n && n.rasterInfo ? n.rasterInfo : typeof n == "string" && o.includes(n) ? s[o.indexOf(n)] : typeof n != "number" ? s[0] : void 0), a = r.find((n) => n) ?? s[0];
|
|
151
|
-
return r.forEach((n, u) => {
|
|
152
|
-
n === void 0 && (r[u] = a);
|
|
153
|
-
}), r;
|
|
154
|
-
}
|
|
155
|
-
_getPrimaryRasterId(t) {
|
|
156
|
-
return t == null ? void 0 : t.rasterId;
|
|
157
|
-
}
|
|
158
|
-
_getPrimaryRasters(t, e = [], s = []) {
|
|
159
|
-
for (let o = 0; o < t.sourceRasters.length; o++) {
|
|
160
|
-
const r = t.sourceRasters[o];
|
|
161
|
-
if (typeof r != "number")
|
|
162
|
-
if ("bind" in r)
|
|
163
|
-
this._getPrimaryRasters(r, e, s);
|
|
164
|
-
else {
|
|
165
|
-
const a = r, n = this._getPrimaryRasterId(a);
|
|
166
|
-
if (n == null)
|
|
167
|
-
continue;
|
|
168
|
-
s.includes(n) || (this.mainPrimaryRasterId === n ? (e.unshift(a), s.unshift(n)) : (e.push(a), s.push(n)));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
_isRasterFunctionValue(t) {
|
|
173
|
-
return t != null && typeof t == "object" && "getWebGLProcessorDefinition" in t;
|
|
174
|
-
}
|
|
175
|
-
_readRasterValue(t, e) {
|
|
176
|
-
const { primaryPixelBlocks: s } = e;
|
|
177
|
-
if (t == null || t === "$$") {
|
|
178
|
-
const o = s[0];
|
|
179
|
-
return o == null ? null : o.clone();
|
|
180
|
-
}
|
|
181
|
-
if (typeof t == "string") {
|
|
182
|
-
const o = e.primaryRasterIds.indexOf(t);
|
|
183
|
-
return o === -1 ? null : s[o];
|
|
184
|
-
}
|
|
185
|
-
if (typeof t == "number") {
|
|
186
|
-
const o = s[0];
|
|
187
|
-
if (o == null)
|
|
188
|
-
return null;
|
|
189
|
-
const { width: r, height: a, pixelType: n } = o, u = new Float32Array(r * a);
|
|
190
|
-
u.fill(t);
|
|
191
|
-
const l = this.sourceRasterInfos[0].bandCount, p = new Array(l).fill(u);
|
|
192
|
-
return new w({ width: r, height: a, pixelType: n, pixels: p });
|
|
193
|
-
}
|
|
194
|
-
return t.process(e);
|
|
195
|
-
}
|
|
196
|
-
_patchRasterInfo() {
|
|
197
|
-
const { rasterInfo: t } = this;
|
|
198
|
-
if (!(t != null && t.keyProperties))
|
|
199
|
-
return;
|
|
200
|
-
const { bandCount: e, keyProperties: s, statistics: o, histograms: r } = t, a = s.BandProperties;
|
|
201
|
-
a && a.length !== e && (t.keyProperties = { ...s, BandProperties: void 0 }), o && o.length !== e && (t.statistics = o.length > e ? o.slice(0, e) : null), r && r.length !== e && (t.histograms = r.length > e ? r.slice(0, e) : null), s.BAND_COUNT && Number(s.BAND_COUNT) !== e && (t.keyProperties = { ...s, BAND_COUNT: typeof s.BAND_COUNT == "string" ? String(e) : e });
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
c([m({ json: { write: !0 } })], S.prototype, "functionName", void 0), c([m({ json: { write: !0 } })], S.prototype, "functionArguments", void 0), c([m()], S.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } }), rs((i) => i == null ? void 0 : i.toLowerCase())], S.prototype, "outputPixelType", void 0), c([m({ json: { write: !0 } })], S.prototype, "mainPrimaryRasterId", void 0), c([m()], S.prototype, "sourceRasters", void 0), c([m({ type: [Rs], json: { write: !0 } })], S.prototype, "sourceRasterInfos", void 0), c([m({ json: { write: !0 } })], S.prototype, "rasterInfo", void 0), c([m({ json: { write: !0 } })], S.prototype, "readingBufferSize", void 0), c([m({ json: { write: !0 } })], S.prototype, "id", void 0), c([m()], S.prototype, "isNoopProcess", void 0), c([m()], S.prototype, "supportsGPU", null), c([m()], S.prototype, "rawInputBandIds", void 0), c([m()], S.prototype, "rawSourceRasterInfos", void 0), c([m()], S.prototype, "isInputBandIdsSwizzled", void 0), c([m()], S.prototype, "swizzledBandSelection", void 0), c([m()], S.prototype, "isBranch", void 0), c([m({ readOnly: !0 })], S.prototype, "flatWebGLFunctionChain", null), c([m()], S.prototype, "_bindingResult", void 0), S = c([A("esri.layers.support.rasterFunctions.BaseRasterFunction")], S);
|
|
205
|
-
const G = S, $ = { userDefined: -1, lineDetectionHorizontal: 0, lineDetectionVertical: 1, lineDetectionLeftDiagonal: 2, lineDetectionRightDiagonal: 3, gradientNorth: 4, gradientWest: 5, gradientEast: 6, gradientSouth: 7, gradientNorthEast: 8, gradientNorthWest: 9, smoothArithmeticMean: 10, smoothing3x3: 11, smoothing5x5: 12, sharpening3x3: 13, sharpening5x5: 14, laplacian3x3: 15, laplacian5x5: 16, sobelHorizontal: 17, sobelVertical: 18, sharpen: 19, sharpen2: 20, pointSpread: 21, none: 255 }, Us = { plus: 1, minus: 2, times: 3, sqrt: 4, power: 5, abs: 10, divide: 23, exp: 25, exp10: 26, exp2: 27, int: 30, float: 32, ln: 35, log10: 36, log2: 37, mod: 44, negate: 45, roundDown: 48, roundUp: 49, square: 53, floatDivide: 64, floorDivide: 65 }, U = { bitwiseAnd: 11, bitwiseLeftShift: 12, bitwiseNot: 13, bitwiseOr: 14, bitwiseRightShift: 15, bitwiseXOr: 16, booleanAnd: 17, booleanNot: 18, booleanOr: 19, booleanXOr: 20, equalTo: 24, greaterThan: 28, greaterThanEqual: 29, lessThan: 33, lessThanEqual: 34, isNull: 31, notEqual: 46 }, H = { acos: 6, asin: 7, atan: 8, atanh: 9, cos: 21, cosh: 22, sin: 51, sinh: 52, tan: 56, tanh: 57, acosh: 59, asinh: 60, atan2: 61 }, Ls = { majority: 38, max: 39, mean: 40, med: 41, min: 42, minority: 43, range: 47, stddev: 54, sum: 55, variety: 58, majorityIgnoreNoData: 66, maxIgnoreNoData: 67, meanIgnoreNoData: 68, medIgnoreNoData: 69, minIgnoreNoData: 70, minorityIgnoreNoData: 71, rangeIgnoreNoData: 72, stddevIgnoreNoData: 73, sumIgnoreNoData: 74, varietyIgnoreNoData: 75 }, us = { setNull: 50, conditional: 78 }, Se = { ...Us, ...U, ...H, ...Ls, ...us }, ls = /* @__PURE__ */ new Map([[H.acos, { domain: [0, Math.PI], isInteger: !1 }], [H.asin, { domain: [-Math.PI / 2, Math.PI / 2], isInteger: !1 }], [H.atan, { domain: [-Math.PI / 2, Math.PI / 2], isInteger: !1 }], [H.cos, { domain: [-1, 1], isInteger: !1 }], [H.sin, { domain: [-1, 1], isInteger: !1 }], [U.booleanAnd, { domain: [0, 1], isInteger: !0 }], [U.booleanNot, { domain: [0, 1], isInteger: !0 }], [U.booleanOr, { domain: [0, 1], isInteger: !0 }], [U.booleanXOr, { domain: [0, 1], isInteger: !0 }], [U.equalTo, { domain: [0, 1], isInteger: !0 }], [U.notEqual, { domain: [0, 1], isInteger: !0 }], [U.greaterThan, { domain: [0, 1], isInteger: !0 }], [U.greaterThanEqual, { domain: [0, 1], isInteger: !0 }], [U.lessThan, { domain: [0, 1], isInteger: !0 }], [U.lessThanEqual, { domain: [0, 1], isInteger: !0 }], [U.isNull, { domain: [0, 1], isInteger: !0 }]]);
|
|
206
|
-
function Me(i) {
|
|
207
|
-
return ls.get(i);
|
|
208
|
-
}
|
|
209
|
-
const Oe = [0, 2, 2, 2, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 999, 999, 999, 999, 999, 999, 2, 1, 2, 999, 1, 1, 2, 1, 1, 1, 999, 999, 1, 1, 999, 1, 1, 2, 999, 999, 2, 2, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 3, 999, 3];
|
|
210
|
-
function Ws(i, t = !1) {
|
|
211
|
-
const e = i.map((n) => n.mask), s = e.filter((n) => n != null), o = i[0].pixels[0].length;
|
|
212
|
-
if (s.length === 0 || t && s.length !== e.length)
|
|
213
|
-
return new Uint8Array(o).fill(255);
|
|
214
|
-
const r = s[0], a = new Uint8Array(r);
|
|
215
|
-
if (s.length === 1)
|
|
216
|
-
return a;
|
|
217
|
-
if (!t) {
|
|
218
|
-
for (let n = 1; n < s.length; n++) {
|
|
219
|
-
const u = s[n];
|
|
220
|
-
for (let l = 0; l < a.length; l++)
|
|
221
|
-
a[l] && (a[l] = u[l] ? 255 : 0);
|
|
222
|
-
}
|
|
223
|
-
return a;
|
|
224
|
-
}
|
|
225
|
-
for (let n = 1; n < s.length; n++) {
|
|
226
|
-
const u = s[n];
|
|
227
|
-
for (let l = 0; l < a.length; l++)
|
|
228
|
-
a[l] === 0 && (a[l] = u[l] ? 255 : 0);
|
|
229
|
-
}
|
|
230
|
-
return a;
|
|
231
|
-
}
|
|
232
|
-
function qs(i, t, e) {
|
|
233
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
234
|
-
for (let n = 0; n < r; n++)
|
|
235
|
-
t && !t[n] || (a[n] = s[n] + o[n]);
|
|
236
|
-
return a;
|
|
237
|
-
}
|
|
238
|
-
function Hs(i, t, e) {
|
|
239
|
-
const [s] = i, o = s.length, r = w.createEmptyBand("f32", o);
|
|
240
|
-
return r.set(s), r;
|
|
241
|
-
}
|
|
242
|
-
function Xs(i, t, e) {
|
|
243
|
-
const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
|
|
244
|
-
for (let a = 0; a < o; a++)
|
|
245
|
-
t && !t[a] || (r[a] = s[a] * s[a]);
|
|
246
|
-
return r;
|
|
247
|
-
}
|
|
248
|
-
function Js(i, t, e) {
|
|
249
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
250
|
-
for (let n = 0; n < r; n++)
|
|
251
|
-
t && !t[n] || (a[n] = s[n] - o[n]);
|
|
252
|
-
return a;
|
|
253
|
-
}
|
|
254
|
-
function Ks(i, t, e) {
|
|
255
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
256
|
-
for (let n = 0; n < r; n++)
|
|
257
|
-
t && !t[n] || (a[n] = s[n] * o[n]);
|
|
258
|
-
return a;
|
|
259
|
-
}
|
|
260
|
-
function Ys(i, t, e) {
|
|
261
|
-
const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
|
|
262
|
-
for (let a = 0; a < o; a++)
|
|
263
|
-
t && !t[a] || (r[a] = Math.sign(s[a]) * Math.floor(Math.abs(s[a])));
|
|
264
|
-
return r;
|
|
265
|
-
}
|
|
266
|
-
function cs(i, t, e) {
|
|
267
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
268
|
-
for (let n = 0; n < r; n++)
|
|
269
|
-
t && !t[n] || (a[n] = s[n] / o[n]);
|
|
270
|
-
return a;
|
|
271
|
-
}
|
|
272
|
-
function Zs(i, t, e) {
|
|
273
|
-
return cs(i, t, "f32");
|
|
274
|
-
}
|
|
275
|
-
function Qs(i, t, e) {
|
|
276
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
277
|
-
for (let n = 0; n < r; n++)
|
|
278
|
-
t && !t[n] || (a[n] = Math.floor(s[n] / o[n]));
|
|
279
|
-
return a;
|
|
280
|
-
}
|
|
281
|
-
function tn(i, t, e, s) {
|
|
282
|
-
const o = i[0], r = o.length, a = w.createEmptyBand(e, r);
|
|
283
|
-
if (s === H.atanh) {
|
|
284
|
-
for (let u = 0; u < r; u++)
|
|
285
|
-
if (t[u]) {
|
|
286
|
-
const l = o[u];
|
|
287
|
-
Math.abs(l) >= 1 ? t[u] = 0 : a[u] = Math.atanh(l);
|
|
288
|
-
}
|
|
289
|
-
return a;
|
|
290
|
-
}
|
|
291
|
-
const n = s === H.asin ? Math.asin : Math.acos;
|
|
292
|
-
for (let u = 0; u < r; u++)
|
|
293
|
-
if (t[u]) {
|
|
294
|
-
const l = o[u];
|
|
295
|
-
Math.abs(l) > 1 ? t[u] = 0 : a[u] = n(l);
|
|
296
|
-
}
|
|
297
|
-
return a;
|
|
298
|
-
}
|
|
299
|
-
function en(i, t, e, s) {
|
|
300
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
301
|
-
for (let n = 0; n < r; n++)
|
|
302
|
-
t && !t[n] || (a[n] = s(o[n]));
|
|
303
|
-
return a;
|
|
304
|
-
}
|
|
305
|
-
function sn(i, t, e, s) {
|
|
306
|
-
const [o, r] = i, a = o.length, n = w.createEmptyBand(e, a);
|
|
307
|
-
for (let u = 0; u < a; u++)
|
|
308
|
-
t && !t[u] || (n[u] = s(o[u], r[u]));
|
|
309
|
-
return n;
|
|
310
|
-
}
|
|
311
|
-
function nn(i, t, e) {
|
|
312
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
313
|
-
for (let n = 0; n < r; n++)
|
|
314
|
-
t && !t[n] || (a[n] = s[n] & o[n]);
|
|
315
|
-
return a;
|
|
316
|
-
}
|
|
317
|
-
function rn(i, t, e) {
|
|
318
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
319
|
-
for (let n = 0; n < r; n++)
|
|
320
|
-
t && !t[n] || (a[n] = s[n] << o[n]);
|
|
321
|
-
return a;
|
|
322
|
-
}
|
|
323
|
-
function on(i, t, e) {
|
|
324
|
-
const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
|
|
325
|
-
for (let a = 0; a < o; a++)
|
|
326
|
-
t && !t[a] || (r[a] = ~s[a]);
|
|
327
|
-
return r;
|
|
328
|
-
}
|
|
329
|
-
function an(i, t, e) {
|
|
330
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
331
|
-
for (let n = 0; n < r; n++)
|
|
332
|
-
t && !t[n] || (a[n] = s[n] | o[n]);
|
|
333
|
-
return a;
|
|
334
|
-
}
|
|
335
|
-
function un(i, t, e) {
|
|
336
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
337
|
-
for (let n = 0; n < r; n++)
|
|
338
|
-
t && !t[n] || (a[n] = s[n] >> o[n]);
|
|
339
|
-
return a;
|
|
340
|
-
}
|
|
341
|
-
function ln(i, t, e) {
|
|
342
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
343
|
-
for (let n = 0; n < r; n++)
|
|
344
|
-
t && !t[n] || (a[n] = s[n] ^ o[n]);
|
|
345
|
-
return a;
|
|
346
|
-
}
|
|
347
|
-
function cn(i, t, e) {
|
|
348
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
349
|
-
for (let n = 0; n < r; n++)
|
|
350
|
-
t && !t[n] || (a[n] = s[n] && o[n] ? 1 : 0);
|
|
351
|
-
return a;
|
|
352
|
-
}
|
|
353
|
-
function pn(i, t, e) {
|
|
354
|
-
const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
|
|
355
|
-
for (let a = 0; a < o; a++)
|
|
356
|
-
t && !t[a] || (r[a] = s[a] ? 0 : 1);
|
|
357
|
-
return r;
|
|
358
|
-
}
|
|
359
|
-
function hn(i, t, e) {
|
|
360
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
361
|
-
for (let n = 0; n < r; n++)
|
|
362
|
-
t && !t[n] || (a[n] = s[n] || o[n] ? 1 : 0);
|
|
363
|
-
return a;
|
|
364
|
-
}
|
|
365
|
-
function mn(i, t, e) {
|
|
366
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
367
|
-
for (let n = 0; n < r; n++)
|
|
368
|
-
t && !t[n] || (a[n] = (s[n] ? 1 : 0) ^ (o[n] ? 1 : 0));
|
|
369
|
-
return a;
|
|
370
|
-
}
|
|
371
|
-
function fn(i, t, e) {
|
|
372
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
373
|
-
for (let n = 0; n < r; n++)
|
|
374
|
-
t && !t[n] || (a[n] = s[n] === o[n] ? 1 : 0);
|
|
375
|
-
return a;
|
|
376
|
-
}
|
|
377
|
-
function Ne(i, t, e, s) {
|
|
378
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r), n = s === Math.E;
|
|
379
|
-
for (let u = 0; u < r; u++)
|
|
380
|
-
t && !t[u] || (a[u] = n ? Math.exp(o[u]) : s ** o[u]);
|
|
381
|
-
return a;
|
|
382
|
-
}
|
|
383
|
-
function dn(i, t, e) {
|
|
384
|
-
return Ne(i, t, e, 10);
|
|
385
|
-
}
|
|
386
|
-
function gn(i, t, e) {
|
|
387
|
-
return Ne(i, t, e, 2);
|
|
388
|
-
}
|
|
389
|
-
function yn(i, t, e) {
|
|
390
|
-
return Ne(i, t, e, Math.E);
|
|
391
|
-
}
|
|
392
|
-
function Ie(i, t, e, s) {
|
|
393
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
394
|
-
for (let n = 0; n < r; n++)
|
|
395
|
-
t && !t[n] || (o[n] <= 0 ? t[n] = 0 : a[n] = s(o[n]));
|
|
396
|
-
return a;
|
|
397
|
-
}
|
|
398
|
-
function xn(i, t, e) {
|
|
399
|
-
return Ie(i, t, e, Math.log10);
|
|
400
|
-
}
|
|
401
|
-
function vn(i, t, e) {
|
|
402
|
-
return Ie(i, t, e, Math.log2);
|
|
403
|
-
}
|
|
404
|
-
function wn(i, t, e) {
|
|
405
|
-
return Ie(i, t, e, Math.log);
|
|
406
|
-
}
|
|
407
|
-
function bn(i, t, e) {
|
|
408
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
409
|
-
for (let n = 0; n < r; n++)
|
|
410
|
-
t && !t[n] || (a[n] = s[n] > o[n] ? 1 : 0);
|
|
411
|
-
return a;
|
|
412
|
-
}
|
|
413
|
-
function An(i, t, e) {
|
|
414
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
415
|
-
for (let n = 0; n < r; n++)
|
|
416
|
-
t && !t[n] || (a[n] = s[n] >= o[n] ? 1 : 0);
|
|
417
|
-
return a;
|
|
418
|
-
}
|
|
419
|
-
function Tn(i, t, e) {
|
|
420
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
421
|
-
for (let n = 0; n < r; n++)
|
|
422
|
-
t && !t[n] || (a[n] = s[n] < o[n] ? 1 : 0);
|
|
423
|
-
return a;
|
|
424
|
-
}
|
|
425
|
-
function Pn(i, t, e) {
|
|
426
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
427
|
-
for (let n = 0; n < r; n++)
|
|
428
|
-
t && !t[n] || (a[n] = s[n] <= o[n] ? 1 : 0);
|
|
429
|
-
return a;
|
|
430
|
-
}
|
|
431
|
-
function $n(i, t, e) {
|
|
432
|
-
const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
|
|
433
|
-
if (!t)
|
|
434
|
-
return r;
|
|
435
|
-
for (let a = 0; a < o; a++)
|
|
436
|
-
r[a] = t[a] ? 0 : 1;
|
|
437
|
-
return r;
|
|
438
|
-
}
|
|
439
|
-
function Fn(i, t, e) {
|
|
440
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
441
|
-
for (let n = 0; n < r; n++)
|
|
442
|
-
t && !t[n] || (a[n] = s[n] % o[n]);
|
|
443
|
-
return a;
|
|
444
|
-
}
|
|
445
|
-
function Nn(i, t, e) {
|
|
446
|
-
const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
|
|
447
|
-
for (let a = 0; a < o; a++)
|
|
448
|
-
t && !t[a] || (r[a] = -s[a]);
|
|
449
|
-
return r;
|
|
450
|
-
}
|
|
451
|
-
function In(i, t, e) {
|
|
452
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
|
|
453
|
-
for (let n = 0; n < r; n++)
|
|
454
|
-
t && !t[n] || (a[n] = s[n] === o[n] ? 0 : 1);
|
|
455
|
-
return a;
|
|
456
|
-
}
|
|
457
|
-
function Rn(i, t, e) {
|
|
458
|
-
const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r), n = new Uint8Array(r);
|
|
459
|
-
for (let u = 0; u < r; u++)
|
|
460
|
-
t != null && !t[u] || s[u] !== 0 || (a[u] = o[u], n[u] = 255);
|
|
461
|
-
return { band: a, mask: n };
|
|
462
|
-
}
|
|
463
|
-
function De(i, t, e) {
|
|
464
|
-
const [s, o, r] = i, a = s.length, n = w.createEmptyBand(e, a);
|
|
465
|
-
for (let u = 0; u < a; u++)
|
|
466
|
-
t && !t[u] || (n[u] = s[u] ? o[u] : r[u]);
|
|
467
|
-
return n;
|
|
468
|
-
}
|
|
469
|
-
function Ge(i, t, e) {
|
|
470
|
-
const s = i.length;
|
|
471
|
-
if (s < 2)
|
|
472
|
-
return i[0];
|
|
473
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
474
|
-
for (let n = 0; n < r; n++)
|
|
475
|
-
if (!t || t[n]) {
|
|
476
|
-
let u = o[n];
|
|
477
|
-
for (let l = 1; l < s; l++) {
|
|
478
|
-
const p = i[l][n];
|
|
479
|
-
u < p && (u = p);
|
|
480
|
-
}
|
|
481
|
-
a[n] = u;
|
|
482
|
-
}
|
|
483
|
-
return a;
|
|
484
|
-
}
|
|
485
|
-
function ze(i, t, e) {
|
|
486
|
-
const s = i.length;
|
|
487
|
-
if (s < 2)
|
|
488
|
-
return i[0];
|
|
489
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
490
|
-
for (let n = 0; n < r; n++)
|
|
491
|
-
if (!t || t[n]) {
|
|
492
|
-
let u = o[n];
|
|
493
|
-
for (let l = 1; l < s; l++) {
|
|
494
|
-
const p = i[l][n];
|
|
495
|
-
u > p && (u = p);
|
|
496
|
-
}
|
|
497
|
-
a[n] = u;
|
|
498
|
-
}
|
|
499
|
-
return a;
|
|
500
|
-
}
|
|
501
|
-
function Ee(i, t, e) {
|
|
502
|
-
const s = i.length;
|
|
503
|
-
if (s < 2)
|
|
504
|
-
return i[0];
|
|
505
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
506
|
-
for (let n = 0; n < r; n++)
|
|
507
|
-
if (!t || t[n]) {
|
|
508
|
-
let u = o[n], l = u;
|
|
509
|
-
for (let p = 1; p < s; p++) {
|
|
510
|
-
const h = i[p][n];
|
|
511
|
-
l < h ? l = h : u > h && (u = h);
|
|
512
|
-
}
|
|
513
|
-
a[n] = l - u;
|
|
514
|
-
}
|
|
515
|
-
return a;
|
|
516
|
-
}
|
|
517
|
-
function Ve(i, t, e) {
|
|
518
|
-
const s = i.length;
|
|
519
|
-
if (s < 2)
|
|
520
|
-
return i[0];
|
|
521
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
522
|
-
for (let n = 0; n < r; n++)
|
|
523
|
-
if (!t || t[n]) {
|
|
524
|
-
let u = 0;
|
|
525
|
-
for (let l = 0; l < s; l++)
|
|
526
|
-
u += i[l][n];
|
|
527
|
-
a[n] = u / s;
|
|
528
|
-
}
|
|
529
|
-
return a;
|
|
530
|
-
}
|
|
531
|
-
function Ue(i, t, e) {
|
|
532
|
-
const s = i.length;
|
|
533
|
-
if (s < 2)
|
|
534
|
-
return i[0];
|
|
535
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
536
|
-
for (let n = 0; n < r; n++)
|
|
537
|
-
if (!t || t[n])
|
|
538
|
-
for (let u = 0; u < s; u++) {
|
|
539
|
-
const l = i[u];
|
|
540
|
-
a[n] += l[n];
|
|
541
|
-
}
|
|
542
|
-
return a;
|
|
543
|
-
}
|
|
544
|
-
function Le(i, t, e) {
|
|
545
|
-
const s = i.length;
|
|
546
|
-
if (s < 2)
|
|
547
|
-
return i[0];
|
|
548
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
|
|
549
|
-
for (let n = 0; n < r; n++)
|
|
550
|
-
if (!t || t[n]) {
|
|
551
|
-
const u = new Float32Array(s);
|
|
552
|
-
let l = 0;
|
|
553
|
-
for (let h = 0; h < s; h++) {
|
|
554
|
-
const f = i[h];
|
|
555
|
-
l += f[n], u[h] = f[n];
|
|
556
|
-
}
|
|
557
|
-
l /= s;
|
|
558
|
-
let p = 0;
|
|
559
|
-
for (let h = 0; h < s; h++)
|
|
560
|
-
p += (u[h] - l) ** 2;
|
|
561
|
-
a[n] = Math.sqrt(p / s);
|
|
562
|
-
}
|
|
563
|
-
return a;
|
|
564
|
-
}
|
|
565
|
-
function We(i, t, e) {
|
|
566
|
-
const s = i.length;
|
|
567
|
-
if (s < 2)
|
|
568
|
-
return i[0];
|
|
569
|
-
const o = Math.floor(s / 2), [r] = i, a = r.length, n = w.createEmptyBand(e, a), u = new Float32Array(s), l = s % 2 == 1;
|
|
570
|
-
for (let p = 0; p < a; p++)
|
|
571
|
-
if (!t || t[p]) {
|
|
572
|
-
for (let h = 0; h < s; h++)
|
|
573
|
-
u[h] = i[h][p];
|
|
574
|
-
u.sort(), n[p] = l ? u[o] : (u[o] + u[o - 1]) / 2;
|
|
575
|
-
}
|
|
576
|
-
return n;
|
|
577
|
-
}
|
|
578
|
-
function ps(i, t, e) {
|
|
579
|
-
const [s, o] = i;
|
|
580
|
-
if (o == null)
|
|
581
|
-
return s;
|
|
582
|
-
const r = s.length, a = w.createEmptyBand(e, r);
|
|
583
|
-
for (let n = 0; n < r; n++)
|
|
584
|
-
t[n] && (s[n] === o[n] ? a[n] = s[n] : t[n] = 0);
|
|
585
|
-
return a;
|
|
586
|
-
}
|
|
587
|
-
function qe(i, t, e) {
|
|
588
|
-
const s = i.length;
|
|
589
|
-
if (s <= 2)
|
|
590
|
-
return ps(i, t, e);
|
|
591
|
-
const o = i[0].length, r = w.createEmptyBand(e, o), a = /* @__PURE__ */ new Map();
|
|
592
|
-
for (let n = 0; n < o; n++)
|
|
593
|
-
if (!t || t[n]) {
|
|
594
|
-
let u;
|
|
595
|
-
a.clear();
|
|
596
|
-
for (let h = 0; h < s; h++)
|
|
597
|
-
u = i[h][n], a.set(u, a.has(u) ? a.get(u) + 1 : 1);
|
|
598
|
-
let l = 0, p = 0;
|
|
599
|
-
for (const h of a.keys())
|
|
600
|
-
l = a.get(h), l > p && (p = l, u = h);
|
|
601
|
-
r[n] = u;
|
|
602
|
-
}
|
|
603
|
-
return r;
|
|
604
|
-
}
|
|
605
|
-
function He(i, t, e) {
|
|
606
|
-
const s = i.length;
|
|
607
|
-
if (s <= 2)
|
|
608
|
-
return ps(i, t, e);
|
|
609
|
-
const o = i[0].length, r = w.createEmptyBand(e, o), a = /* @__PURE__ */ new Map();
|
|
610
|
-
for (let n = 0; n < o; n++)
|
|
611
|
-
if (!t || t[n]) {
|
|
612
|
-
let u;
|
|
613
|
-
a.clear();
|
|
614
|
-
for (let h = 0; h < s; h++)
|
|
615
|
-
u = i[h][n], a.set(u, a.has(u) ? a.get(u) + 1 : 1);
|
|
616
|
-
let l = 0, p = i.length;
|
|
617
|
-
for (const h of a.keys())
|
|
618
|
-
l = a.get(h), l < p && (p = l, u = h);
|
|
619
|
-
r[n] = u;
|
|
620
|
-
}
|
|
621
|
-
return r;
|
|
622
|
-
}
|
|
623
|
-
function Xe(i, t, e) {
|
|
624
|
-
const s = i.length;
|
|
625
|
-
if (s < 2)
|
|
626
|
-
return i[0];
|
|
627
|
-
const [o] = i, r = o.length, a = w.createEmptyBand(e, r), n = /* @__PURE__ */ new Set();
|
|
628
|
-
for (let u = 0; u < r; u++)
|
|
629
|
-
if (!t || t[u]) {
|
|
630
|
-
let l;
|
|
631
|
-
n.clear();
|
|
632
|
-
for (let p = 0; p < s; p++)
|
|
633
|
-
l = i[p][u], n.add(l);
|
|
634
|
-
a[u] = n.size;
|
|
635
|
-
}
|
|
636
|
-
return a;
|
|
637
|
-
}
|
|
638
|
-
const O = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map();
|
|
639
|
-
function kn() {
|
|
640
|
-
O.size || (O.set(4, Math.sqrt), O.set(6, Math.acos), O.set(7, Math.asin), O.set(8, Math.atan), O.set(9, Math.atanh), O.set(10, Math.abs), O.set(21, Math.cos), O.set(22, Math.cosh), O.set(48, Math.floor), O.set(49, Math.ceil), O.set(51, Math.sin), O.set(52, Math.sinh), O.set(56, Math.tan), O.set(57, Math.tanh), O.set(59, Math.acosh), O.set(60, Math.asinh), O.set(65, Math.floor), Ht.set(5, Math.pow), Ht.set(61, Math.atan2), T.set(1, qs), T.set(2, Js), T.set(3, Ks), T.set(11, nn), T.set(12, rn), T.set(13, on), T.set(14, an), T.set(15, un), T.set(16, ln), T.set(17, cn), T.set(18, pn), T.set(19, hn), T.set(20, mn), T.set(23, cs), T.set(24, fn), T.set(25, yn), T.set(26, dn), T.set(27, gn), T.set(28, bn), T.set(29, An), T.set(30, Ys), T.set(31, $n), T.set(32, Hs), T.set(33, Tn), T.set(34, Pn), T.set(35, wn), T.set(36, xn), T.set(37, vn), T.set(44, Fn), T.set(45, Nn), T.set(46, In), T.set(53, Xs), T.set(64, Zs), T.set(65, Qs), T.set(76, De), T.set(78, De), j.set(38, qe), j.set(39, Ge), j.set(40, Ve), j.set(41, We), j.set(42, ze), j.set(43, He), j.set(47, Ee), j.set(54, Le), j.set(55, Ue), j.set(58, Xe), j.set(66, qe), j.set(67, Ge), j.set(68, Ve), j.set(69, We), j.set(70, ze), j.set(71, He), j.set(72, Ee), j.set(73, Le), j.set(74, Ue), j.set(75, Xe));
|
|
641
|
-
}
|
|
642
|
-
function Cn(i, t, e, s) {
|
|
643
|
-
let [o, r] = vt(e);
|
|
644
|
-
const a = nt(e);
|
|
645
|
-
a && (o -= 1e-5, r += 1e-5);
|
|
646
|
-
for (let n = 0; n < t.length; n++)
|
|
647
|
-
if (t[n]) {
|
|
648
|
-
const u = i[n];
|
|
649
|
-
isNaN(u) || u < o || u > r ? t[n] = 0 : s[n] = a ? Math.round(u) : u;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
function hs(i, t, e = {}) {
|
|
653
|
-
kn();
|
|
654
|
-
let s = Ws(i, t >= 66 && t <= 75);
|
|
655
|
-
const { outputPixelType: o = "f32" } = e, r = !j.has(t) || e.processAsMultiband, a = r ? i[0].pixels.length : 1, n = [];
|
|
656
|
-
for (let l = 0; l < a; l++) {
|
|
657
|
-
const p = j.has(t) && !r ? i.flatMap((g) => g.pixels) : i.map((g) => g.pixels[l]);
|
|
658
|
-
let h, f = !0;
|
|
659
|
-
if (t === us.setNull) {
|
|
660
|
-
const g = Rn(p, s, o);
|
|
661
|
-
h = g.band, s = g.mask, f = !1;
|
|
662
|
-
} else
|
|
663
|
-
T.has(t) ? h = T.get(t)(p, s, "f64") : O.has(t) ? h = t === H.asin || t === H.acos || t === H.atanh ? tn(p, s, "f64", t) : en(p, s, "f64", O.get(t)) : Ht.has(t) ? h = sn(p, s, "f64", Ht.get(t)) : j.has(t) ? h = j.get(t)(p, s, "f64") : (h = p[0], f = !1);
|
|
664
|
-
if (f && t !== U.isNull && !ls.has(t)) {
|
|
665
|
-
const g = w.createEmptyBand(o, h.length);
|
|
666
|
-
s || (s = new Uint8Array(h.length).fill(255)), Cn(h, s, o, g), h = g;
|
|
667
|
-
}
|
|
668
|
-
n.push(h);
|
|
669
|
-
}
|
|
670
|
-
const u = i[0];
|
|
671
|
-
return new w({ width: u.width, height: u.height, pixelType: o, mask: t === U.isNull ? null : s, pixels: n });
|
|
672
|
-
}
|
|
673
|
-
function _n(i, t, e) {
|
|
674
|
-
return hs(i, t = [null, 1, 2, 3, 23, 5, 44][t] ?? 1, { outputPixelType: e });
|
|
675
|
-
}
|
|
676
|
-
let bt = class extends G {
|
|
677
|
-
constructor() {
|
|
678
|
-
super(...arguments), this.functionName = "Arithmetic", this.functionArguments = null, this.rasterArgumentNames = ["raster", "raster2"];
|
|
679
|
-
}
|
|
680
|
-
_bindSourceRasters() {
|
|
681
|
-
const { operation: t } = this.functionArguments;
|
|
682
|
-
if (t < 1 || t > 6)
|
|
683
|
-
return { success: !1, supportsGPU: !1, error: "unsupported operation" };
|
|
684
|
-
const e = this.sourceRasterInfos[0].clone();
|
|
685
|
-
return this.outputPixelType = this._getOutputPixelType(e.pixelType), e.pixelType = this.outputPixelType, this._removeStatsHistColormapVAT(e), this.rasterInfo = e, { success: !0, supportsGPU: e.bandCount <= 3 };
|
|
686
|
-
}
|
|
687
|
-
_processPixels(t) {
|
|
688
|
-
const { pixelBlocks: e } = t;
|
|
689
|
-
return (e == null ? void 0 : e[0]) == null || (e == null ? void 0 : e[1]) == null ? null : _n(e, this.functionArguments.operation, this.outputPixelType);
|
|
690
|
-
}
|
|
691
|
-
_getWebGLParameters() {
|
|
692
|
-
const { operation: t } = this.functionArguments, e = ["", "plus", "minus", "times", "divide", "power", "mod"][t], s = this.outputPixelType ?? "f32";
|
|
693
|
-
let [o, r] = vt(s);
|
|
694
|
-
const a = nt(s);
|
|
695
|
-
return a && (o -= 1e-4, r += 1e-4), { imageCount: 2, operationName: e, domainRange: [o, r], isOutputRounded: a };
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], bt.prototype, "functionName", void 0), c([m({ type: Es, json: { write: !0, name: "rasterFunctionArguments" } })], bt.prototype, "functionArguments", void 0), c([m()], bt.prototype, "rasterArgumentNames", void 0), bt = c([A("esri.layers.support.rasterFunctions.ArithmeticFunction")], bt);
|
|
699
|
-
const Bn = bt;
|
|
700
|
-
var Zt;
|
|
701
|
-
let Qt = Zt = class extends D {
|
|
702
|
-
clone() {
|
|
703
|
-
return new Zt({ raster: this.raster });
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
Qt = Zt = c([A("esri.layers.support.rasterFunctions.AspectFunctionArguments")], Qt);
|
|
707
|
-
const jn = Qt;
|
|
708
|
-
let rt = class extends G {
|
|
709
|
-
constructor() {
|
|
710
|
-
super(...arguments), this.functionName = "Aspect", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isGCS = !1;
|
|
711
|
-
}
|
|
712
|
-
_bindSourceRasters() {
|
|
713
|
-
var s;
|
|
714
|
-
const t = this.sourceRasterInfos[0];
|
|
715
|
-
this.isGCS = ((s = t.spatialReference) == null ? void 0 : s.isGeographic) ?? !1, this.outputPixelType = this._getOutputPixelType("f32");
|
|
716
|
-
const e = t.clone();
|
|
717
|
-
return e.pixelType = this.outputPixelType, e.statistics = [{ min: -1, max: 360, avg: 180, stddev: 30 }], e.histograms = null, e.colormap = null, e.attributeTable = null, e.bandCount = 1, this.rasterInfo = e, { success: !0, supportsGPU: !0 };
|
|
718
|
-
}
|
|
719
|
-
_processPixels(t) {
|
|
720
|
-
var n;
|
|
721
|
-
const e = (n = t.pixelBlocks) == null ? void 0 : n[0];
|
|
722
|
-
if (e == null)
|
|
723
|
-
return null;
|
|
724
|
-
const { extent: s, primaryPixelSizes: o } = t, r = o == null ? void 0 : o[0], a = r ?? (s ? { x: s.width / e.width, y: s.height / e.height } : { x: 1, y: 1 });
|
|
725
|
-
return ks(e, { resolution: a });
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], rt.prototype, "functionName", void 0), c([m({ type: jn, json: { write: !0, name: "rasterFunctionArguments" } })], rt.prototype, "functionArguments", void 0), c([m()], rt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], rt.prototype, "isGCS", void 0), rt = c([A("esri.layers.support.rasterFunctions.AspectFunction")], rt);
|
|
729
|
-
const Sn = rt, Mn = /* @__PURE__ */ new Set(["+", "-", "*", "/", "(", ")"]);
|
|
730
|
-
function On(i, t) {
|
|
731
|
-
(i = i.replaceAll(" ", "")).startsWith("-") && (i = "0" + i), i.startsWith("+") && (i = i.slice(1, i.length));
|
|
732
|
-
const e = i.split(""), s = [], o = [];
|
|
733
|
-
let r = "";
|
|
734
|
-
for (let a = 0; a < e.length; a++) {
|
|
735
|
-
const n = e[a];
|
|
736
|
-
Mn.has(n) ? (r.length && o.push(Je(r, t)), s.push(n), r = "") : r = r.concat(n);
|
|
737
|
-
}
|
|
738
|
-
return r.length && o.push(Je(r, t)), { ops: s, nums: o };
|
|
739
|
-
}
|
|
740
|
-
function Je(i, t) {
|
|
741
|
-
return i.toLowerCase().startsWith("b") ? t[parseInt(i.slice(1), 10) - 1] : parseFloat(i);
|
|
742
|
-
}
|
|
743
|
-
function Dn(i, t, e, s) {
|
|
744
|
-
if (typeof e == "number" && typeof s == "number")
|
|
745
|
-
return e + s;
|
|
746
|
-
let o, r, a;
|
|
747
|
-
typeof e == "number" ? (a = s, o = a.length, r = new Float32Array(o), r.fill(e)) : (o = e.length, r = e, s.constructor === Number ? (a = new Float32Array(o), a.fill(s)) : a = s);
|
|
748
|
-
const n = new Float32Array(o);
|
|
749
|
-
switch (t) {
|
|
750
|
-
case "+":
|
|
751
|
-
for (let u = 0; u < o; u++)
|
|
752
|
-
(i == null || i[u]) && (n[u] = r[u] + a[u]);
|
|
753
|
-
break;
|
|
754
|
-
case "-":
|
|
755
|
-
for (let u = 0; u < o; u++)
|
|
756
|
-
(i == null || i[u]) && (n[u] = r[u] - a[u]);
|
|
757
|
-
break;
|
|
758
|
-
case "*":
|
|
759
|
-
for (let u = 0; u < o; u++)
|
|
760
|
-
(i == null || i[u]) && (n[u] = r[u] * a[u]);
|
|
761
|
-
break;
|
|
762
|
-
case "/":
|
|
763
|
-
for (let u = 0; u < o; u++)
|
|
764
|
-
(i == null || i[u]) && a[u] && (n[u] = r[u] / a[u]);
|
|
765
|
-
break;
|
|
766
|
-
case "(":
|
|
767
|
-
case ")":
|
|
768
|
-
throw new Error("encountered error with custom band index equation");
|
|
769
|
-
}
|
|
770
|
-
return n;
|
|
771
|
-
}
|
|
772
|
-
function Gn(i, t) {
|
|
773
|
-
i.splice(t, 1);
|
|
774
|
-
let e = 0, s = 0;
|
|
775
|
-
do {
|
|
776
|
-
e = 0, s = 0;
|
|
777
|
-
for (let o = 0; o < i.length; o++)
|
|
778
|
-
if (i[o] === "(")
|
|
779
|
-
e = o;
|
|
780
|
-
else if (i[o] === ")") {
|
|
781
|
-
s = o;
|
|
782
|
-
break;
|
|
783
|
-
}
|
|
784
|
-
s === e + 1 && i.splice(e, 2);
|
|
785
|
-
} while (s === e + 1);
|
|
786
|
-
return i;
|
|
787
|
-
}
|
|
788
|
-
function zn(i) {
|
|
789
|
-
if (i.length === 1)
|
|
790
|
-
return { opIndex: 0, numIndex: 0 };
|
|
791
|
-
let t = 0, e = 0;
|
|
792
|
-
for (let a = 0; a < i.length; a++)
|
|
793
|
-
if (i[a] === "(")
|
|
794
|
-
t = a;
|
|
795
|
-
else if (i[a] === ")") {
|
|
796
|
-
e = a;
|
|
797
|
-
break;
|
|
798
|
-
}
|
|
799
|
-
const s = e === 0 ? i : i.slice(t + 1, e);
|
|
800
|
-
let o = -1;
|
|
801
|
-
for (let a = 0; a < s.length; a++)
|
|
802
|
-
if (s[a] === "*" || s[a] === "/") {
|
|
803
|
-
o = a;
|
|
804
|
-
break;
|
|
805
|
-
}
|
|
806
|
-
if (o > -1)
|
|
807
|
-
e > 0 && (o += t + 1);
|
|
808
|
-
else {
|
|
809
|
-
for (let a = 0; a < s.length; a++)
|
|
810
|
-
if (s[a] === "+" || s[a] === "-") {
|
|
811
|
-
o = a;
|
|
812
|
-
break;
|
|
813
|
-
}
|
|
814
|
-
e > 0 && (o += t + 1);
|
|
815
|
-
}
|
|
816
|
-
let r = 0;
|
|
817
|
-
for (let a = 0; a < o; a++)
|
|
818
|
-
i[a] === "(" && r++;
|
|
819
|
-
return { opIndex: o, numIndex: o - r };
|
|
820
|
-
}
|
|
821
|
-
function En(i, t, e) {
|
|
822
|
-
let s, { ops: o, nums: r } = On(e, t);
|
|
823
|
-
if (o.length === 0) {
|
|
824
|
-
const a = r.length === 1 ? r[0] : t[0];
|
|
825
|
-
if (a instanceof Float32Array)
|
|
826
|
-
return [a];
|
|
827
|
-
const n = new Float32Array(t[0].length);
|
|
828
|
-
return typeof a == "number" ? n.fill(a) : n.set(a), [n];
|
|
829
|
-
}
|
|
830
|
-
for (; o.length > 0; ) {
|
|
831
|
-
const { numIndex: a, opIndex: n } = zn(o);
|
|
832
|
-
if (s = Dn(i, o[n], r[a], r[a + 1]), o.length === 1)
|
|
833
|
-
break;
|
|
834
|
-
o = Gn(o, n), r.splice(a, 2, s);
|
|
835
|
-
}
|
|
836
|
-
return [s];
|
|
837
|
-
}
|
|
838
|
-
const Vn = new jt({ 0: "custom", 1: "ndvi", 2: "savi", 3: "tsavi", 4: "msavi", 5: "gemi", 6: "pvi", 7: "gvitm", 8: "sultan", 9: "vari", 10: "gndvi", 11: "sr", 12: "ndvi-re", 13: "sr-re", 14: "mtvi2", 15: "rtvi-core", 16: "ci-re", 17: "ci-g", 18: "ndwi", 19: "evi", 20: "iron-oxide", 21: "ferrous-minerals", 22: "clay-minerals", 23: "wndwi", 24: "bai", 25: "nbr", 26: "ndbi", 27: "ndmi", 28: "ndsi", 29: "mndwi" }, { useNumericKeys: !0 });
|
|
839
|
-
function Un(i, t) {
|
|
840
|
-
if (!As(i))
|
|
841
|
-
return i;
|
|
842
|
-
const { equation: e, method: s } = t, o = t.bandIndexes.map((p) => p - 1), { pixels: r, mask: a } = i;
|
|
843
|
-
let n;
|
|
844
|
-
switch (s) {
|
|
845
|
-
case "gndvi":
|
|
846
|
-
case "nbr":
|
|
847
|
-
case "ndbi":
|
|
848
|
-
case "ndvi":
|
|
849
|
-
case "ndvi-re":
|
|
850
|
-
case "ndsi":
|
|
851
|
-
case "ndmi":
|
|
852
|
-
case "mndwi":
|
|
853
|
-
n = Ke(a, r[o[0]], r[o[1]]);
|
|
854
|
-
break;
|
|
855
|
-
case "ndwi":
|
|
856
|
-
n = Ke(a, r[o[1]], r[o[0]]);
|
|
857
|
-
break;
|
|
858
|
-
case "sr":
|
|
859
|
-
case "sr-re":
|
|
860
|
-
case "iron-oxide":
|
|
861
|
-
case "ferrous-minerals":
|
|
862
|
-
case "clay-minerals":
|
|
863
|
-
n = Wn(a, r[o[0]], r[o[1]]);
|
|
864
|
-
break;
|
|
865
|
-
case "ci-g":
|
|
866
|
-
case "ci-re":
|
|
867
|
-
n = qn(a, r[o[0]], r[o[1]]);
|
|
868
|
-
break;
|
|
869
|
-
case "savi":
|
|
870
|
-
n = Hn(a, r[o[0]], r[o[1]], o[2] + 1);
|
|
871
|
-
break;
|
|
872
|
-
case "tsavi":
|
|
873
|
-
n = Xn(a, r[o[0]], r[o[1]], o[2] + 1, o[3] + 1, o[4] + 1);
|
|
874
|
-
break;
|
|
875
|
-
case "msavi":
|
|
876
|
-
n = Jn(a, r[o[0]], r[o[1]]);
|
|
877
|
-
break;
|
|
878
|
-
case "gemi":
|
|
879
|
-
n = Kn(a, r[o[0]], r[o[1]]);
|
|
880
|
-
break;
|
|
881
|
-
case "pvi":
|
|
882
|
-
n = Yn(a, r[o[0]], r[o[1]], o[2] + 1, o[3] + 1);
|
|
883
|
-
break;
|
|
884
|
-
case "gvitm":
|
|
885
|
-
n = Zn(a, [r[o[0]], r[o[1]], r[o[2]], r[o[3]], r[o[4]], r[o[5]]]);
|
|
886
|
-
break;
|
|
887
|
-
case "sultan":
|
|
888
|
-
n = Qn(a, [r[o[0]], r[o[1]], r[o[2]], r[o[3]], r[o[4]]]);
|
|
889
|
-
break;
|
|
890
|
-
case "vari":
|
|
891
|
-
n = tr(a, [r[o[0]], r[o[1]], r[o[2]]]);
|
|
892
|
-
break;
|
|
893
|
-
case "mtvi2":
|
|
894
|
-
n = er(a, [r[o[0]], r[o[1]], r[o[2]]]);
|
|
895
|
-
break;
|
|
896
|
-
case "rtvi-core":
|
|
897
|
-
n = sr(a, [r[o[0]], r[o[1]], r[o[2]]]);
|
|
898
|
-
break;
|
|
899
|
-
case "evi":
|
|
900
|
-
n = nr(a, [r[o[0]], r[o[1]], r[o[2]]]);
|
|
901
|
-
break;
|
|
902
|
-
case "wndwi":
|
|
903
|
-
n = rr(a, [r[o[0]], r[o[1]], r[o[2]]], o[3] ? o[3] + 1 : 0.5);
|
|
904
|
-
break;
|
|
905
|
-
case "bai":
|
|
906
|
-
n = or(a, r[o[0]], r[o[1]]);
|
|
907
|
-
break;
|
|
908
|
-
case "custom":
|
|
909
|
-
n = En(a, r, e);
|
|
910
|
-
break;
|
|
911
|
-
default:
|
|
912
|
-
return i;
|
|
913
|
-
}
|
|
914
|
-
const u = a != null ? new Uint8Array(a.length) : null;
|
|
915
|
-
a != null && u != null && u.set(a);
|
|
916
|
-
const l = new w({ width: i.width, height: i.height, pixelType: "f32", pixels: n, mask: u });
|
|
917
|
-
return l.updateStatistics(), l;
|
|
918
|
-
}
|
|
919
|
-
function Ln(i, t, e, s) {
|
|
920
|
-
const { mask: o, pixels: r, width: a, height: n } = i, u = r[e], l = r[t], p = l.length, h = s ? new Uint8Array(p) : new Float32Array(p), f = s ? 100 : 1, g = s ? 100.5 : 0;
|
|
921
|
-
for (let y = 0; y < p; y++)
|
|
922
|
-
if (o == null || o[y]) {
|
|
923
|
-
const d = u[y], b = l[y], v = d + b;
|
|
924
|
-
v && (h[y] = (d - b) / v * f + g);
|
|
925
|
-
}
|
|
926
|
-
const x = new w({ width: a, height: n, mask: o, pixelType: s ? "u8" : "f32", pixels: [h] });
|
|
927
|
-
return x.updateStatistics(), x;
|
|
928
|
-
}
|
|
929
|
-
function E(i) {
|
|
930
|
-
const t = new Float32Array(9);
|
|
931
|
-
return t[3 * i[0]] = 1, t[3 * i[1] + 1] = 1, t[3 * i[2] + 2] = 1, t;
|
|
932
|
-
}
|
|
933
|
-
function Ke(i, t, e) {
|
|
934
|
-
const s = e.length, o = new Float32Array(s);
|
|
935
|
-
for (let r = 0; r < s; r++)
|
|
936
|
-
if (i == null || i[r]) {
|
|
937
|
-
const a = t[r], n = e[r], u = a + n;
|
|
938
|
-
u && (o[r] = (a - n) / u);
|
|
939
|
-
}
|
|
940
|
-
return [o];
|
|
941
|
-
}
|
|
942
|
-
function Wn(i, t, e) {
|
|
943
|
-
const s = e.length, o = new Float32Array(s);
|
|
944
|
-
for (let r = 0; r < s; r++)
|
|
945
|
-
if (i == null || i[r]) {
|
|
946
|
-
const a = t[r], n = e[r];
|
|
947
|
-
n && (o[r] = a / n);
|
|
948
|
-
}
|
|
949
|
-
return [o];
|
|
950
|
-
}
|
|
951
|
-
function qn(i, t, e) {
|
|
952
|
-
const s = t.length, o = new Float32Array(s);
|
|
953
|
-
for (let r = 0; r < s; r++)
|
|
954
|
-
if (i == null || i[r]) {
|
|
955
|
-
const a = t[r], n = e[r];
|
|
956
|
-
n && (o[r] = a / n - 1);
|
|
957
|
-
}
|
|
958
|
-
return [o];
|
|
959
|
-
}
|
|
960
|
-
function Hn(i, t, e, s) {
|
|
961
|
-
const o = e.length, r = new Float32Array(o);
|
|
962
|
-
for (let a = 0; a < o; a++)
|
|
963
|
-
if (i == null || i[a]) {
|
|
964
|
-
const n = e[a], u = t[a], l = u + n + s;
|
|
965
|
-
l && (r[a] = (u - n) / l * (1 + s));
|
|
966
|
-
}
|
|
967
|
-
return [r];
|
|
968
|
-
}
|
|
969
|
-
function Xn(i, t, e, s, o, r) {
|
|
970
|
-
const a = e.length, n = new Float32Array(a), u = -o * s + r * (1 + s * s);
|
|
971
|
-
for (let l = 0; l < a; l++)
|
|
972
|
-
if (i == null || i[l]) {
|
|
973
|
-
const p = e[l], h = t[l], f = o * h + p + u;
|
|
974
|
-
f && (n[l] = s * (h - s * p - o) / f);
|
|
975
|
-
}
|
|
976
|
-
return [n];
|
|
977
|
-
}
|
|
978
|
-
function Jn(i, t, e) {
|
|
979
|
-
const s = e.length, o = new Float32Array(s);
|
|
980
|
-
for (let r = 0; r < s; r++)
|
|
981
|
-
if (i == null || i[r]) {
|
|
982
|
-
const a = e[r], n = t[r], u = 2 * n + 1;
|
|
983
|
-
o[r] = 0.5 * (u - Math.sqrt(u * u - 8 * (n - a)));
|
|
984
|
-
}
|
|
985
|
-
return [o];
|
|
986
|
-
}
|
|
987
|
-
function Kn(i, t, e) {
|
|
988
|
-
const s = e.length, o = new Float32Array(s);
|
|
989
|
-
for (let r = 0; r < s; r++)
|
|
990
|
-
if (i == null || i[r]) {
|
|
991
|
-
const a = e[r], n = t[r];
|
|
992
|
-
if (a !== 1 && n + a + 0.5 !== 0) {
|
|
993
|
-
const u = (2 * (n * n - a * a) + 1.5 * n + 0.5 * a) / (n + a + 0.5);
|
|
994
|
-
o[r] = u * (1 - 0.25 * u) - (a - 0.125) / (1 - a);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
return [o];
|
|
998
|
-
}
|
|
999
|
-
function Yn(i, t, e, s, o) {
|
|
1000
|
-
const r = e.length, a = new Float32Array(r), n = 1 / Math.sqrt(1 + s * s);
|
|
1001
|
-
for (let u = 0; u < r; u++)
|
|
1002
|
-
if (i == null || i[u]) {
|
|
1003
|
-
const l = e[u], p = t[u];
|
|
1004
|
-
a[u] = (p - s * l - o) * n;
|
|
1005
|
-
}
|
|
1006
|
-
return [a];
|
|
1007
|
-
}
|
|
1008
|
-
function Zn(i, t) {
|
|
1009
|
-
const [e, s, o, r, a, n] = t, u = e.length, l = new Float32Array(u);
|
|
1010
|
-
for (let p = 0; p < u; p++)
|
|
1011
|
-
(i == null || i[p]) && (l[p] = -0.2848 * e[p] - 0.2435 * s[p] - 0.5436 * o[p] + 0.7243 * r[p] + 0.084 * a[p] - 0.18 * n[p]);
|
|
1012
|
-
return [l];
|
|
1013
|
-
}
|
|
1014
|
-
function Qn(i, t) {
|
|
1015
|
-
const [e, s, o, r, a] = t, n = e.length, u = new Float32Array(n), l = new Float32Array(n), p = new Float32Array(n);
|
|
1016
|
-
for (let h = 0; h < n; h++)
|
|
1017
|
-
(i == null || i[h]) && (u[h] = a[h] ? r[h] / a[h] * 100 : 0, l[h] = e[h] ? r[h] / e[h] * 100 : 0, p[h] = o[h] ? s[h] / o[h] * (r[h] / o[h]) * 100 : 0);
|
|
1018
|
-
return [u, l, p];
|
|
1019
|
-
}
|
|
1020
|
-
function tr(i, t) {
|
|
1021
|
-
const [e, s, o] = t, r = e.length, a = new Float32Array(r);
|
|
1022
|
-
for (let n = 0; n < r; n++)
|
|
1023
|
-
if (i == null || i[n])
|
|
1024
|
-
for (n = 0; n < r; n++) {
|
|
1025
|
-
const u = e[n], l = s[n], p = l + u - o[n];
|
|
1026
|
-
p && (a[n] = (l - u) / p);
|
|
1027
|
-
}
|
|
1028
|
-
return [a];
|
|
1029
|
-
}
|
|
1030
|
-
function er(i, t) {
|
|
1031
|
-
const [e, s, o] = t, r = e.length, a = new Float32Array(r);
|
|
1032
|
-
for (let n = 0; n < r; n++)
|
|
1033
|
-
if (i == null || i[n])
|
|
1034
|
-
for (n = 0; n < r; n++) {
|
|
1035
|
-
const u = e[n], l = s[n], p = o[n], h = Math.sqrt((2 * u + 1) ** 2 - (6 * u - 5 * Math.sqrt(l)) - 0.5);
|
|
1036
|
-
if (h) {
|
|
1037
|
-
const f = 1.5 * (1.2 * (u - p) - 2.5 * (l - p));
|
|
1038
|
-
a[n] = f / h;
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
return [a];
|
|
1042
|
-
}
|
|
1043
|
-
function sr(i, t) {
|
|
1044
|
-
const [e, s, o] = t, r = e.length, a = new Float32Array(r);
|
|
1045
|
-
for (let n = 0; n < r; n++)
|
|
1046
|
-
if (i == null || i[n])
|
|
1047
|
-
for (n = 0; n < r; n++) {
|
|
1048
|
-
const u = e[n], l = s[n], p = o[n];
|
|
1049
|
-
a[n] = 100 * (u - l) - 10 * (u - p);
|
|
1050
|
-
}
|
|
1051
|
-
return [a];
|
|
1052
|
-
}
|
|
1053
|
-
function nr(i, t) {
|
|
1054
|
-
const [e, s, o] = t, r = e.length, a = new Float32Array(r);
|
|
1055
|
-
for (let n = 0; n < r; n++)
|
|
1056
|
-
if (i == null || i[n])
|
|
1057
|
-
for (n = 0; n < r; n++) {
|
|
1058
|
-
const u = e[n], l = s[n], p = u + 6 * l - 7.5 * o[n] + 1;
|
|
1059
|
-
p && (a[n] = 2.5 * (u - l) / p);
|
|
1060
|
-
}
|
|
1061
|
-
return [a];
|
|
1062
|
-
}
|
|
1063
|
-
function rr(i, t, e = 0.5) {
|
|
1064
|
-
const [s, o, r] = t, a = o.length, n = new Float32Array(a);
|
|
1065
|
-
for (let u = 0; u < a; u++)
|
|
1066
|
-
if (i == null || i[u])
|
|
1067
|
-
for (u = 0; u < a; u++) {
|
|
1068
|
-
const l = s[u], p = o[u], h = r[u], f = l + e * p + (1 - e) * h;
|
|
1069
|
-
f && (n[u] = (l - e * p - (1 - e) * h) / f);
|
|
1070
|
-
}
|
|
1071
|
-
return [n];
|
|
1072
|
-
}
|
|
1073
|
-
function or(i, t, e) {
|
|
1074
|
-
const s = e.length, o = new Float32Array(s);
|
|
1075
|
-
for (let r = 0; r < s; r++)
|
|
1076
|
-
if (i == null || i[r])
|
|
1077
|
-
for (r = 0; r < s; r++) {
|
|
1078
|
-
const a = (0.1 - t[r]) ** 2 + (0.06 - e[r]) ** 2;
|
|
1079
|
-
a && (o[r] = 1 / a);
|
|
1080
|
-
}
|
|
1081
|
-
return [o];
|
|
1082
|
-
}
|
|
1083
|
-
var te;
|
|
1084
|
-
let Mt = te = class extends D {
|
|
1085
|
-
constructor() {
|
|
1086
|
-
super(...arguments), this.method = "custom";
|
|
1087
|
-
}
|
|
1088
|
-
clone() {
|
|
1089
|
-
return new te({ method: this.method, bandIndexes: this.bandIndexes, raster: L(this.raster) });
|
|
1090
|
-
}
|
|
1091
|
-
};
|
|
1092
|
-
c([m({ json: { type: String, write: !0 } })], Mt.prototype, "bandIndexes", void 0), c([Y(Vn)], Mt.prototype, "method", void 0), Mt = te = c([A("esri.layers.support.rasterFunctions.BandArithmeticFunctionArguments")], Mt);
|
|
1093
|
-
const ir = Mt, ar = /* @__PURE__ */ new Set(["vari", "mtvi2", "rtvi-core", "evi"]);
|
|
1094
|
-
let At = class extends G {
|
|
1095
|
-
constructor() {
|
|
1096
|
-
super(...arguments), this.functionName = "BandArithmetic", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
|
|
1097
|
-
}
|
|
1098
|
-
_bindSourceRasters() {
|
|
1099
|
-
this.outputPixelType = this._getOutputPixelType("f32");
|
|
1100
|
-
const t = this.sourceRasterInfos[0];
|
|
1101
|
-
if (t.bandCount < 2)
|
|
1102
|
-
return { success: !1, supportsGPU: !1, error: "band-arithmetic-function: source raster has insufficient amount of raster bands" };
|
|
1103
|
-
const e = t.clone();
|
|
1104
|
-
return e.pixelType = this.outputPixelType, e.bandCount = this.functionArguments.method === "sultan" ? 3 : 1, this._removeStatsHistColormapVAT(e), e.keyProperties = { ...e.keyProperties, BandProperties: void 0 }, this.rasterInfo = e, { success: !0, supportsGPU: !["custom", "gvitm", "sultan"].includes(this.functionArguments.method) };
|
|
1105
|
-
}
|
|
1106
|
-
_processPixels(t) {
|
|
1107
|
-
var a;
|
|
1108
|
-
const e = (a = t.pixelBlocks) == null ? void 0 : a[0];
|
|
1109
|
-
if (e == null)
|
|
1110
|
-
return e;
|
|
1111
|
-
const { method: s, bandIndexes: o } = this.functionArguments, r = o.split(" ").map((n) => parseFloat(n));
|
|
1112
|
-
return Un(e, { method: s, bandIndexes: r, equation: o });
|
|
1113
|
-
}
|
|
1114
|
-
_getWebGLParameters() {
|
|
1115
|
-
const t = this.functionArguments.bandIndexes.split(" ").map((n) => parseFloat(n) - 1);
|
|
1116
|
-
t.length === 2 && t.push(0);
|
|
1117
|
-
const e = this.isInputBandIdsSwizzled ? [0, 1, 2] : t;
|
|
1118
|
-
let s, o;
|
|
1119
|
-
const r = new Float32Array(3), { method: a } = this.functionArguments;
|
|
1120
|
-
switch (a) {
|
|
1121
|
-
case "gndvi":
|
|
1122
|
-
case "nbr":
|
|
1123
|
-
case "ndbi":
|
|
1124
|
-
case "ndvi":
|
|
1125
|
-
case "ndvi-re":
|
|
1126
|
-
case "ndsi":
|
|
1127
|
-
case "ndmi":
|
|
1128
|
-
case "mndwi":
|
|
1129
|
-
s = E([e[0], e[1], 0]), o = "ndxi";
|
|
1130
|
-
break;
|
|
1131
|
-
case "ndwi":
|
|
1132
|
-
s = E([e[1], e[0], 0]), o = "ndxi";
|
|
1133
|
-
break;
|
|
1134
|
-
case "sr":
|
|
1135
|
-
case "sr-re":
|
|
1136
|
-
case "iron-oxide":
|
|
1137
|
-
case "ferrous-minerals":
|
|
1138
|
-
case "clay-minerals":
|
|
1139
|
-
s = E([e[0], e[1], 0]), o = "sr";
|
|
1140
|
-
break;
|
|
1141
|
-
case "ci-g":
|
|
1142
|
-
case "ci-re":
|
|
1143
|
-
s = E([e[0], e[1], 0]), o = "ci";
|
|
1144
|
-
break;
|
|
1145
|
-
case "savi":
|
|
1146
|
-
s = E([e[0], e[1], 0]), o = "savi", r[0] = t[2] + 1;
|
|
1147
|
-
break;
|
|
1148
|
-
case "tsavi":
|
|
1149
|
-
s = E([e[0], e[1], 0]), o = "tsavi", r[0] = t[2] + 1, r[1] = t[3] + 1, r[2] = t[4] + 1;
|
|
1150
|
-
break;
|
|
1151
|
-
case "msavi":
|
|
1152
|
-
s = E([e[0], e[1], 0]), o = "msavi";
|
|
1153
|
-
break;
|
|
1154
|
-
case "gemi":
|
|
1155
|
-
s = E([e[0], e[1], 0]), o = "gemi";
|
|
1156
|
-
break;
|
|
1157
|
-
case "pvi":
|
|
1158
|
-
s = E([e[0], e[1], 0]), o = "tsavi", r[0] = t[2] + 1, r[1] = t[3] + 1;
|
|
1159
|
-
break;
|
|
1160
|
-
case "vari":
|
|
1161
|
-
s = E([e[0], e[1], e[2]]), o = "vari";
|
|
1162
|
-
break;
|
|
1163
|
-
case "mtvi2":
|
|
1164
|
-
s = E([e[0], e[1], e[2]]), o = "mtvi";
|
|
1165
|
-
break;
|
|
1166
|
-
case "rtvi-core":
|
|
1167
|
-
s = E([e[0], e[1], e[2]]), o = "rtvicore";
|
|
1168
|
-
break;
|
|
1169
|
-
case "evi":
|
|
1170
|
-
s = E([e[0], e[1], e[2]]), o = "evi";
|
|
1171
|
-
break;
|
|
1172
|
-
case "wndwi":
|
|
1173
|
-
s = E([e[0], e[1], 0]), o = "wndwi", r[0] = t[3] ? t[3] + 1 : 0.5;
|
|
1174
|
-
break;
|
|
1175
|
-
case "bai":
|
|
1176
|
-
s = E([e[1], e[0], 0]), o = "bai";
|
|
1177
|
-
break;
|
|
1178
|
-
default:
|
|
1179
|
-
s = E([0, 1, 2]), o = "custom";
|
|
1180
|
-
}
|
|
1181
|
-
return { bandIndexMat3: s, indexType: o, adjustments: r };
|
|
1182
|
-
}
|
|
1183
|
-
_getInputBandIds(t) {
|
|
1184
|
-
if (this.functionArguments.method === "custom")
|
|
1185
|
-
return t;
|
|
1186
|
-
const e = this.functionArguments.bandIndexes.split(" ").map((n) => parseFloat(n) - 1), s = t.length, o = e.map((n) => n >= s ? s - 1 : n), r = ar.has(this.functionArguments.method) ? 3 : 2, a = o.slice(0, r).map((n) => t[n]);
|
|
1187
|
-
return a.length === 2 && a.push(0), a;
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], At.prototype, "functionName", void 0), c([m({ type: ir, json: { write: !0, name: "rasterFunctionArguments" } })], At.prototype, "functionArguments", void 0), c([m()], At.prototype, "rasterArgumentNames", void 0), At = c([A("esri.layers.support.rasterFunctions.BandArithmeticFunction")], At);
|
|
1191
|
-
const ur = At;
|
|
1192
|
-
var ee;
|
|
1193
|
-
const Ye = new jt({ 1: "outside", 2: "inside" }, { useNumericKeys: !0 });
|
|
1194
|
-
let Ot = ee = class extends D {
|
|
1195
|
-
constructor() {
|
|
1196
|
-
super(...arguments), this.clippingType = "outside";
|
|
1197
|
-
}
|
|
1198
|
-
clone() {
|
|
1199
|
-
return new ee({ clippingGeometry: this.clippingGeometry.clone(), clippingType: this.clippingType });
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
c([m({ types: vs, json: { read: ws, write: !0 } })], Ot.prototype, "clippingGeometry", void 0), c([m({ json: { read: Ye.read, write: Ye.write } })], Ot.prototype, "clippingType", void 0), Ot = ee = c([A("esri.layers.support.rasterFunctions.ClipFunctionArguments")], Ot);
|
|
1203
|
-
const lr = Ot;
|
|
1204
|
-
let ot = class extends G {
|
|
1205
|
-
constructor() {
|
|
1206
|
-
super(...arguments), this.functionName = "Clip", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
|
|
1207
|
-
}
|
|
1208
|
-
_bindSourceRasters() {
|
|
1209
|
-
const t = this.sourceRasterInfos[0].clone();
|
|
1210
|
-
return this.outputPixelType = this._getOutputPixelType(t.pixelType), t.pixelType = this.outputPixelType, this.rasterInfo = t, { success: !0, supportsGPU: !0 };
|
|
1211
|
-
}
|
|
1212
|
-
_processPixels(t) {
|
|
1213
|
-
var e;
|
|
1214
|
-
return (e = t.pixelBlocks) == null ? void 0 : e[0];
|
|
1215
|
-
}
|
|
1216
|
-
_getWebGLParameters() {
|
|
1217
|
-
const { clippingGeometry: t, clippingType: e } = this.functionArguments;
|
|
1218
|
-
return { clippingGeometry: t.toJSON(), clippingType: e };
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], ot.prototype, "functionName", void 0), c([m({ type: lr, json: { write: !0, name: "rasterFunctionArguments" } })], ot.prototype, "functionArguments", void 0), c([m()], ot.prototype, "rasterArgumentNames", void 0), c([m()], ot.prototype, "isNoopProcess", void 0), ot = c([A("esri.layers.support.rasterFunctions.ClipFunction")], ot);
|
|
1222
|
-
const cr = ot;
|
|
1223
|
-
var se;
|
|
1224
|
-
let X = se = class extends D {
|
|
1225
|
-
castColormapName(i) {
|
|
1226
|
-
if (!i)
|
|
1227
|
-
return null;
|
|
1228
|
-
const t = i.toLowerCase();
|
|
1229
|
-
return Cs.includes(t) ? t : null;
|
|
1230
|
-
}
|
|
1231
|
-
readColorRamp(i) {
|
|
1232
|
-
return zs(i);
|
|
1233
|
-
}
|
|
1234
|
-
readColorRampName(i, t) {
|
|
1235
|
-
if (!i)
|
|
1236
|
-
return null;
|
|
1237
|
-
const e = Vt.jsonValues.find((s) => s.toLowerCase() === i.toLowerCase());
|
|
1238
|
-
return e ? Vt.fromJSON(e) : null;
|
|
1239
|
-
}
|
|
1240
|
-
clone() {
|
|
1241
|
-
var i;
|
|
1242
|
-
return new se({ colormap: L(this.colormap), colormapName: this.colormapName, colorRamp: (i = this.colorRamp) == null ? void 0 : i.clone(), colorRampName: this.colorRampName });
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
c([m({ type: [[Number]], json: { write: !0 } })], X.prototype, "colormap", void 0), c([m({ type: String, json: { write: !0 } })], X.prototype, "colormapName", void 0), c([rs("colormapName")], X.prototype, "castColormapName", null), c([m({ types: Gs, json: { write: !0 } })], X.prototype, "colorRamp", void 0), c([Ct("colorRamp")], X.prototype, "readColorRamp", null), c([m({ type: Vt.apiValues, json: { type: Vt.jsonValues, write: Vt.write } })], X.prototype, "colorRampName", void 0), c([Ct("colorRampName")], X.prototype, "readColorRampName", null), X = se = c([A("esri.layers.support.rasterFunctions.ColormapFunctionArguments")], X);
|
|
1246
|
-
const pr = X, hr = [[36, 0, 255], [36, 0, 255], [36, 0, 255], [36, 0, 255], [112, 75, 3], [113, 76, 3], [114, 77, 3], [115, 77, 3], [116, 78, 3], [117, 79, 3], [118, 79, 3], [119, 80, 3], [121, 81, 4], [122, 82, 4], [123, 82, 4], [124, 83, 4], [125, 84, 4], [126, 84, 4], [127, 85, 4], [128, 86, 4], [129, 86, 4], [130, 87, 4], [131, 88, 4], [132, 89, 4], [133, 89, 4], [134, 90, 4], [135, 91, 4], [136, 91, 4], [137, 92, 4], [138, 93, 4], [139, 94, 4], [140, 94, 4], [142, 95, 5], [143, 96, 5], [144, 96, 5], [145, 97, 5], [146, 98, 5], [147, 99, 5], [148, 99, 5], [149, 100, 5], [150, 101, 5], [151, 101, 5], [152, 102, 5], [153, 103, 5], [154, 104, 5], [155, 104, 5], [156, 105, 5], [157, 106, 5], [158, 106, 5], [159, 107, 5], [160, 108, 5], [161, 108, 5], [162, 109, 5], [164, 110, 6], [165, 111, 6], [166, 111, 6], [167, 112, 6], [168, 113, 6], [169, 113, 6], [170, 114, 6], [171, 115, 6], [172, 116, 6], [173, 116, 6], [174, 117, 6], [245, 0, 0], [245, 5, 0], [245, 10, 0], [246, 15, 0], [246, 20, 0], [246, 25, 0], [246, 30, 0], [247, 35, 0], [247, 40, 0], [247, 45, 0], [247, 50, 0], [247, 55, 0], [248, 60, 0], [248, 65, 0], [248, 70, 0], [248, 75, 0], [249, 81, 0], [249, 86, 0], [249, 91, 0], [249, 96, 0], [250, 101, 0], [250, 106, 0], [250, 111, 0], [250, 116, 0], [250, 121, 0], [251, 126, 0], [251, 131, 0], [251, 136, 0], [251, 141, 0], [252, 146, 0], [252, 151, 0], [252, 156, 0], [252, 156, 0], [251, 159, 0], [250, 162, 0], [249, 165, 0], [248, 168, 0], [247, 171, 0], [246, 174, 0], [245, 177, 0], [245, 179, 0], [244, 182, 0], [243, 185, 0], [242, 188, 0], [241, 191, 0], [240, 194, 0], [239, 197, 0], [238, 200, 0], [237, 203, 0], [236, 206, 0], [235, 209, 0], [234, 212, 0], [233, 215, 0], [232, 218, 0], [231, 221, 0], [230, 224, 0], [230, 226, 0], [229, 229, 0], [228, 232, 0], [227, 235, 0], [226, 238, 0], [225, 241, 0], [224, 244, 0], [223, 247, 0], [165, 247, 0], [163, 244, 0], [161, 240, 0], [158, 237, 0], [156, 233, 1], [154, 230, 1], [152, 227, 1], [149, 223, 1], [147, 220, 1], [145, 216, 1], [143, 213, 1], [140, 210, 2], [138, 206, 2], [136, 203, 2], [134, 200, 2], [132, 196, 2], [129, 193, 2], [127, 189, 2], [125, 186, 3], [123, 183, 3], [120, 179, 3], [118, 176, 3], [116, 172, 3], [114, 169, 3], [111, 166, 3], [109, 162, 4], [107, 159, 4], [105, 155, 4], [103, 152, 4], [100, 149, 4], [98, 145, 4], [96, 142, 4], [94, 138, 5], [91, 135, 5], [89, 132, 5], [87, 128, 5], [85, 125, 5], [82, 121, 5], [80, 118, 5], [78, 115, 6], [76, 111, 6], [73, 108, 6], [71, 105, 6], [69, 101, 6], [67, 98, 6], [65, 94, 6], [62, 91, 7], [60, 88, 7], [58, 84, 7], [56, 81, 7], [53, 77, 7], [51, 74, 7], [49, 71, 7], [47, 67, 8], [44, 64, 8], [42, 60, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8], [40, 57, 8]], mr = [[36, 0, 255], [36, 0, 255], [36, 0, 255], [36, 0, 255], [245, 20, 0], [245, 24, 0], [245, 29, 0], [245, 31, 0], [247, 33, 0], [247, 33, 0], [247, 37, 0], [247, 41, 0], [247, 41, 0], [247, 41, 0], [247, 45, 0], [247, 45, 0], [247, 47, 0], [247, 49, 0], [247, 49, 0], [247, 54, 0], [247, 54, 0], [247, 56, 0], [247, 58, 0], [247, 58, 0], [250, 62, 0], [250, 62, 0], [250, 62, 0], [250, 67, 0], [250, 67, 0], [250, 67, 0], [250, 69, 0], [250, 71, 0], [250, 71, 0], [250, 75, 0], [250, 75, 0], [250, 78, 0], [250, 79, 0], [250, 79, 0], [250, 79, 0], [250, 81, 0], [250, 83, 0], [250, 83, 0], [250, 87, 0], [250, 87, 0], [250, 90, 0], [250, 92, 0], [252, 93, 0], [252, 93, 0], [252, 97, 0], [252, 97, 0], [252, 97, 0], [252, 97, 0], [252, 101, 0], [252, 101, 0], [252, 101, 0], [252, 101, 0], [252, 105, 0], [252, 105, 0], [252, 107, 0], [252, 109, 0], [252, 109, 0], [252, 113, 13], [255, 118, 20], [255, 119, 23], [255, 121, 25], [255, 126, 33], [255, 132, 38], [255, 133, 40], [255, 135, 43], [255, 141, 48], [255, 144, 54], [255, 150, 59], [255, 152, 61], [255, 153, 64], [255, 159, 69], [255, 163, 77], [255, 165, 79], [255, 168, 82], [255, 174, 87], [255, 176, 92], [255, 181, 97], [255, 183, 99], [255, 186, 102], [255, 191, 107], [255, 197, 115], [255, 201, 120], [255, 203, 123], [255, 205, 125], [255, 209, 130], [255, 214, 138], [255, 216, 141], [255, 218, 143], [255, 224, 150], [255, 228, 156], [255, 234, 163], [255, 236, 165], [255, 238, 168], [255, 243, 173], [255, 248, 181], [255, 252, 186], [253, 252, 186], [250, 252, 187], [244, 250, 180], [238, 247, 176], [234, 246, 173], [231, 245, 169], [223, 240, 163], [217, 237, 157], [211, 235, 150], [205, 233, 146], [200, 230, 142], [195, 227, 136], [189, 224, 132], [184, 222, 126], [180, 220, 123], [174, 217, 119], [169, 214, 114], [163, 212, 108], [160, 210, 105], [154, 207, 101], [148, 204, 96], [143, 201, 93], [138, 199, 88], [134, 197, 84], [130, 194, 81], [126, 191, 77], [117, 189, 70], [115, 186, 68], [112, 184, 64], [106, 181, 60], [100, 179, 55], [94, 176, 49], [92, 174, 47], [90, 173, 45], [81, 168, 37], [75, 166, 33], [71, 163, 28], [66, 160, 24], [62, 158, 21], [56, 156, 14], [51, 153, 0], [51, 153, 0], [51, 153, 0], [50, 150, 0], [50, 150, 0], [50, 150, 0], [50, 150, 0], [49, 148, 0], [49, 148, 0], [49, 148, 0], [48, 145, 0], [48, 145, 0], [48, 145, 0], [48, 145, 0], [48, 143, 0], [48, 143, 0], [48, 143, 0], [48, 143, 0], [47, 140, 0], [47, 140, 0], [47, 140, 0], [47, 140, 0], [46, 138, 0], [46, 138, 0], [46, 138, 0], [46, 138, 0], [45, 135, 0], [45, 135, 0], [45, 135, 0], [45, 135, 0], [44, 133, 0], [44, 133, 0], [44, 133, 0], [43, 130, 0], [43, 130, 0], [43, 130, 0], [43, 130, 0], [43, 130, 0], [43, 130, 0], [42, 128, 0], [42, 128, 0], [42, 128, 0], [42, 125, 0], [42, 125, 0], [42, 125, 0], [42, 125, 0], [41, 122, 0], [41, 122, 0], [41, 122, 0], [41, 122, 0], [40, 120, 0], [40, 120, 0], [40, 120, 0], [40, 120, 0], [40, 120, 0], [39, 117, 0], [39, 117, 0], [39, 117, 0], [39, 117, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0], [38, 115, 0]];
|
|
1247
|
-
function Re(i, t) {
|
|
1248
|
-
const e = [], s = [];
|
|
1249
|
-
for (let r = 0; r < i.length - 1; r++)
|
|
1250
|
-
e.push({ type: "algorithmic", algorithm: "esriHSVAlgorithm", fromColor: i[r].slice(1), toColor: i[r + 1].slice(1) }), s.push(i[r + 1][0] - i[r][0]);
|
|
1251
|
-
const o = i[i.length - 1][0];
|
|
1252
|
-
return as({ type: "multipart", colorRamps: e }, { numColors: o, weights: t = t ?? s });
|
|
1253
|
-
}
|
|
1254
|
-
function fr() {
|
|
1255
|
-
return Re([[0, 0, 191, 191], [51, 0, 0, 255], [102, 255, 0, 255], [153, 255, 0, 127], [204, 191, 63, 127], [256, 20, 20, 20]]);
|
|
1256
|
-
}
|
|
1257
|
-
function dr() {
|
|
1258
|
-
const i = Re([[0, 255, 255, 255], [70, 0, 255, 0], [80, 205, 173, 193], [100, 150, 150, 150], [110, 120, 51, 100], [130, 120, 100, 200], [140, 28, 3, 144], [160, 6, 0, 55], [180, 10, 25, 30], [201, 6, 7, 27]]);
|
|
1259
|
-
for (let t = i.length; t < 256; t++)
|
|
1260
|
-
i.push([6, 27, 7]);
|
|
1261
|
-
return i;
|
|
1262
|
-
}
|
|
1263
|
-
function gr() {
|
|
1264
|
-
return as({ type: "algorithmic", algorithm: "esriHSVAlgorithm", fromColor: [0, 0, 0], toColor: [255, 255, 255] });
|
|
1265
|
-
}
|
|
1266
|
-
function yr() {
|
|
1267
|
-
const i = [];
|
|
1268
|
-
for (let t = 0; t < 256; t++) {
|
|
1269
|
-
const e = [];
|
|
1270
|
-
for (let s = 0; s < 3; s++)
|
|
1271
|
-
e.push(Math.round(255 * Math.random()));
|
|
1272
|
-
i.push(e);
|
|
1273
|
-
}
|
|
1274
|
-
return i;
|
|
1275
|
-
}
|
|
1276
|
-
function xr() {
|
|
1277
|
-
return Re([[0, 38, 41, 54], [69, 79, 82, 90], [131, 156, 156, 156], [256, 253, 253, 241]], [0.268, 0.238, 0.495]);
|
|
1278
|
-
}
|
|
1279
|
-
function vr(i) {
|
|
1280
|
-
let t;
|
|
1281
|
-
switch (i) {
|
|
1282
|
-
case "elevation":
|
|
1283
|
-
t = fr();
|
|
1284
|
-
break;
|
|
1285
|
-
case "gray":
|
|
1286
|
-
t = gr();
|
|
1287
|
-
break;
|
|
1288
|
-
case "hillshade":
|
|
1289
|
-
t = xr();
|
|
1290
|
-
break;
|
|
1291
|
-
case "ndvi":
|
|
1292
|
-
t = hr;
|
|
1293
|
-
break;
|
|
1294
|
-
case "ndvi2":
|
|
1295
|
-
t = dr();
|
|
1296
|
-
break;
|
|
1297
|
-
case "ndvi3":
|
|
1298
|
-
t = mr;
|
|
1299
|
-
break;
|
|
1300
|
-
case "random":
|
|
1301
|
-
t = yr();
|
|
1302
|
-
}
|
|
1303
|
-
return t ? (t = t.map((e, s) => [s, ...e]), t) : null;
|
|
1304
|
-
}
|
|
1305
|
-
let Z = class extends G {
|
|
1306
|
-
constructor() {
|
|
1307
|
-
super(...arguments), this.functionName = "Colormap", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
|
|
1308
|
-
}
|
|
1309
|
-
_bindSourceRasters() {
|
|
1310
|
-
const t = this.sourceRasterInfos[0];
|
|
1311
|
-
if (t.bandCount > 1)
|
|
1312
|
-
return { success: !1, supportsGPU: !1, error: "colormap-function: source data must be single band" };
|
|
1313
|
-
let { colormap: e, colormapName: s, colorRamp: o, colorRampName: r } = this.functionArguments;
|
|
1314
|
-
if (!(e != null && e.length))
|
|
1315
|
-
if (o)
|
|
1316
|
-
e = je(o, { interpolateAlpha: !0 });
|
|
1317
|
-
else if (r) {
|
|
1318
|
-
const u = _s(r);
|
|
1319
|
-
u && (e = je(u));
|
|
1320
|
-
} else
|
|
1321
|
-
s && (e = vr(s));
|
|
1322
|
-
if (!(e != null && e.length))
|
|
1323
|
-
return { success: !1, supportsGPU: !1, error: "colormap-function: missing colormap argument" };
|
|
1324
|
-
const a = this._getOutputPixelType(t.pixelType);
|
|
1325
|
-
this.outputPixelType = a.startsWith("f") ? "s32" : a;
|
|
1326
|
-
const n = t.clone();
|
|
1327
|
-
return n.pixelType = this.outputPixelType, n.colormap = e, n.bandCount = 1, this.rasterInfo = n, { success: !0, supportsGPU: !0 };
|
|
1328
|
-
}
|
|
1329
|
-
_processPixels(t) {
|
|
1330
|
-
var s;
|
|
1331
|
-
let e = (s = t.pixelBlocks) == null ? void 0 : s[0];
|
|
1332
|
-
return !e || nt(e.pixelType) || (e = e.clone(), e.clamp(this.outputPixelType)), e;
|
|
1333
|
-
}
|
|
1334
|
-
};
|
|
1335
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], Z.prototype, "functionName", void 0), c([m({ type: pr, json: { write: !0, name: "rasterFunctionArguments" } })], Z.prototype, "functionArguments", void 0), c([m()], Z.prototype, "rasterArgumentNames", void 0), c([m()], Z.prototype, "isNoopProcess", void 0), c([m({ json: { write: !0 } })], Z.prototype, "indexedColormap", void 0), Z = c([A("esri.layers.support.rasterFunctions.ColormapFunction")], Z);
|
|
1336
|
-
const wr = Z;
|
|
1337
|
-
var ne;
|
|
1338
|
-
let Dt = ne = class extends D {
|
|
1339
|
-
constructor() {
|
|
1340
|
-
super(...arguments), this.rasters = [];
|
|
1341
|
-
}
|
|
1342
|
-
writeRasters(i, t) {
|
|
1343
|
-
t.rasters = i.map((e) => typeof e == "number" || typeof e == "string" ? e : e.toJSON());
|
|
1344
|
-
}
|
|
1345
|
-
clone() {
|
|
1346
|
-
return new ne({ rasters: L(this.rasters) });
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
c([m({ json: { write: !0 } })], Dt.prototype, "rasters", void 0), c([_t("rasters")], Dt.prototype, "writeRasters", null), Dt = ne = c([A("esri.layers.support.rasterFunctions.CompositeBandFunctionArguments")], Dt);
|
|
1350
|
-
const br = Dt;
|
|
1351
|
-
let Tt = class extends G {
|
|
1352
|
-
constructor() {
|
|
1353
|
-
super(...arguments), this.functionName = "CompositeBand", this.functionArguments = null, this.rasterArgumentNames = ["rasters"];
|
|
1354
|
-
}
|
|
1355
|
-
_bindSourceRasters() {
|
|
1356
|
-
const { sourceRasterInfos: t } = this, e = t[0];
|
|
1357
|
-
this.outputPixelType = this._getOutputPixelType(e.pixelType);
|
|
1358
|
-
const s = e.clone();
|
|
1359
|
-
if (s.attributeTable = null, s.colormap = null, s.pixelType = this.outputPixelType, s.bandCount = t.map(({ bandCount: r }) => r).reduce((r, a) => r + a), t.every(({ statistics: r }) => r != null && r.length)) {
|
|
1360
|
-
const r = [];
|
|
1361
|
-
t.forEach(({ statistics: a }) => a != null && r.push(...a)), s.statistics = r;
|
|
1362
|
-
}
|
|
1363
|
-
if (t.every(({ histograms: r }) => r != null && r.length)) {
|
|
1364
|
-
const r = [];
|
|
1365
|
-
t.forEach(({ histograms: a }) => a != null && r.push(...a)), s.histograms = r;
|
|
1366
|
-
}
|
|
1367
|
-
s.bandCount > 1 && (s.colormap = null, s.attributeTable = null);
|
|
1368
|
-
const o = t.every((r) => {
|
|
1369
|
-
var a;
|
|
1370
|
-
return (a = r.keyProperties.BandProperties) == null ? void 0 : a.length;
|
|
1371
|
-
}) ? t.flatMap((r) => r.keyProperties.BandProperties) : void 0;
|
|
1372
|
-
return s.keyProperties = { ...s.keyProperties, BandProperties: o }, this.rasterInfo = s, { success: !0, supportsGPU: s.bandCount <= 3 };
|
|
1373
|
-
}
|
|
1374
|
-
_processPixels(t) {
|
|
1375
|
-
const { pixelBlocks: e } = t;
|
|
1376
|
-
return e ? (e == null ? void 0 : e[0]) == null ? null : Ts(e) : null;
|
|
1377
|
-
}
|
|
1378
|
-
_getWebGLParameters() {
|
|
1379
|
-
return { bandCount: this.rasterInfo.bandCount };
|
|
1380
|
-
}
|
|
1381
|
-
};
|
|
1382
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], Tt.prototype, "functionName", void 0), c([m({ type: br, json: { write: !0, name: "rasterFunctionArguments" } })], Tt.prototype, "functionArguments", void 0), c([m()], Tt.prototype, "rasterArgumentNames", void 0), Tt = c([A("esri.layers.support.rasterFunctions.CompositeBandFunction")], Tt);
|
|
1383
|
-
const Ar = Tt;
|
|
1384
|
-
var re;
|
|
1385
|
-
let Gt = re = class extends D {
|
|
1386
|
-
constructor() {
|
|
1387
|
-
super(...arguments), this.contrastOffset = 0, this.brightnessOffset = 0;
|
|
1388
|
-
}
|
|
1389
|
-
clone() {
|
|
1390
|
-
return new re({ contrastOffset: this.contrastOffset, brightnessOffset: this.brightnessOffset, raster: this.raster });
|
|
1391
|
-
}
|
|
1392
|
-
};
|
|
1393
|
-
c([m({ json: { write: !0 } })], Gt.prototype, "contrastOffset", void 0), c([m({ json: { write: !0 } })], Gt.prototype, "brightnessOffset", void 0), Gt = re = c([A("esri.layers.support.rasterFunctions.ContrastBrightnessFunctionArguments")], Gt);
|
|
1394
|
-
const Tr = Gt;
|
|
1395
|
-
let it = class extends G {
|
|
1396
|
-
constructor() {
|
|
1397
|
-
super(...arguments), this.functionName = "ContrastBrightness", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.lookup = null;
|
|
1398
|
-
}
|
|
1399
|
-
_bindSourceRasters() {
|
|
1400
|
-
const { sourceRasterInfos: t } = this, e = t[0];
|
|
1401
|
-
if (e.pixelType !== "u8")
|
|
1402
|
-
return { success: !1, supportsGPU: !1, error: "Only unsigned 8 bit raster is supported by ContrastBrightness function." };
|
|
1403
|
-
this.outputPixelType = this._getOutputPixelType("u8");
|
|
1404
|
-
const s = e.clone();
|
|
1405
|
-
this._removeStatsHistColormapVAT(s), this.rasterInfo = s;
|
|
1406
|
-
const { contrastOffset: o, brightnessOffset: r } = this.functionArguments;
|
|
1407
|
-
return this.lookup = Bs(o, r), { success: !0, supportsGPU: !0 };
|
|
1408
|
-
}
|
|
1409
|
-
_processPixels(t) {
|
|
1410
|
-
var s;
|
|
1411
|
-
const e = (s = t.pixelBlocks) == null ? void 0 : s[0];
|
|
1412
|
-
return e == null ? null : Fe(e, { lut: e.pixels.map(() => this.lookup), offset: 0, outputPixelType: "u8" });
|
|
1413
|
-
}
|
|
1414
|
-
_getWebGLParameters() {
|
|
1415
|
-
const { contrastOffset: t, brightnessOffset: e } = this.functionArguments;
|
|
1416
|
-
return { contrastOffset: t, brightnessOffset: e };
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], it.prototype, "functionName", void 0), c([m({ type: Tr, json: { write: !0, name: "rasterFunctionArguments" } })], it.prototype, "functionArguments", void 0), c([m()], it.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], it.prototype, "lookup", void 0), it = c([A("esri.layers.support.rasterFunctions.ContrastBrightnessFunction")], it);
|
|
1420
|
-
const Pr = it;
|
|
1421
|
-
function ke(i, t, e, s, o) {
|
|
1422
|
-
const r = Math.floor(s / 2);
|
|
1423
|
-
for (let n = 0; n < r; n++)
|
|
1424
|
-
for (let u = 0; u < t; u++)
|
|
1425
|
-
i[n * t + u] = i[(o - 1 - n) * t + u], i[(e - 1 - n) * t + u] = i[(e - o + n) * t + u];
|
|
1426
|
-
const a = Math.floor(o / 2);
|
|
1427
|
-
for (let n = 0; n < e; n++) {
|
|
1428
|
-
const u = n * t;
|
|
1429
|
-
for (let l = 0; l < a; l++)
|
|
1430
|
-
i[u + l] = i[u + o - 1 - l], i[u + t - l - 1] = i[u + t + l - o];
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
const B = /* @__PURE__ */ new Map();
|
|
1434
|
-
function $r(i) {
|
|
1435
|
-
const t = Math.sqrt(i.length), e = i.slice(0, t), s = [1];
|
|
1436
|
-
for (let o = 1; o < t; o++) {
|
|
1437
|
-
let r = null;
|
|
1438
|
-
for (let a = 0; a < t; a++) {
|
|
1439
|
-
const n = i[a + o * t], u = i[a];
|
|
1440
|
-
if (r == null)
|
|
1441
|
-
if (u === 0) {
|
|
1442
|
-
if (n)
|
|
1443
|
-
return { separable: !1, row: null, col: null };
|
|
1444
|
-
} else
|
|
1445
|
-
r = n / u;
|
|
1446
|
-
else if (n / u !== r)
|
|
1447
|
-
return { separable: !1, row: null, col: null };
|
|
1448
|
-
}
|
|
1449
|
-
if (r == null)
|
|
1450
|
-
return { separable: !1, row: null, col: null };
|
|
1451
|
-
s.push(r);
|
|
1452
|
-
}
|
|
1453
|
-
return { separable: !0, row: e, col: s };
|
|
1454
|
-
}
|
|
1455
|
-
function Ze(i, t, e, s, o, r, a) {
|
|
1456
|
-
const n = new Float32Array(t * e), u = r.length, l = a ? 0 : s, p = a ? s : 0, h = a ? 1 : t;
|
|
1457
|
-
for (let f = l; f < e - l; f++) {
|
|
1458
|
-
const g = f * t;
|
|
1459
|
-
for (let x = p; x < t - p; x++) {
|
|
1460
|
-
if (o && !o[g + x])
|
|
1461
|
-
continue;
|
|
1462
|
-
let y = 0;
|
|
1463
|
-
for (let d = 0; d < u; d++)
|
|
1464
|
-
y += i[g + x + (d - s) * h] * r[d];
|
|
1465
|
-
n[g + x] = y;
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
return n;
|
|
1469
|
-
}
|
|
1470
|
-
function Fr(i, t, e, s, o, r, a) {
|
|
1471
|
-
const n = new Float32Array(t * e), u = Math.floor(s / 2), l = Math.floor(o / 2);
|
|
1472
|
-
for (let p = u; p < e - u; p++) {
|
|
1473
|
-
const h = p * t;
|
|
1474
|
-
for (let f = l; f < t - l; f++) {
|
|
1475
|
-
if (r && !r[h + f])
|
|
1476
|
-
continue;
|
|
1477
|
-
let g = 0;
|
|
1478
|
-
for (let x = 0; x < s; x++)
|
|
1479
|
-
for (let y = 0; y < o; y++)
|
|
1480
|
-
g += i[h + f + (x - u) * t + y - l] * a[x * o + y];
|
|
1481
|
-
n[h + f] = g;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
return n;
|
|
1485
|
-
}
|
|
1486
|
-
function Nr(i, t, e = !0) {
|
|
1487
|
-
const { pixels: s, width: o, height: r, pixelType: a, mask: n } = i, u = s.length, l = [], { kernel: p, rows: h, cols: f } = t;
|
|
1488
|
-
for (let g = 0; g < u; g++) {
|
|
1489
|
-
const x = Fr(s[g], o, r, h, f, n, p);
|
|
1490
|
-
e && ke(x, o, r, h, f), l.push(x);
|
|
1491
|
-
}
|
|
1492
|
-
return new w({ width: o, height: r, pixelType: a, pixels: l, mask: n });
|
|
1493
|
-
}
|
|
1494
|
-
function Ir(i, t, e, s = !0) {
|
|
1495
|
-
const { pixels: o, width: r, height: a, pixelType: n, mask: u } = i, l = o.length, p = [], h = t.length, f = e.length, g = Math.floor(h / 2), x = Math.floor(f / 2);
|
|
1496
|
-
for (let y = 0; y < l; y++) {
|
|
1497
|
-
let d = Ze(o[y], r, a, g, u, t, !0);
|
|
1498
|
-
d = Ze(d, r, a, x, u, e, !1), s && ke(d, r, a, h, f), p.push(d);
|
|
1499
|
-
}
|
|
1500
|
-
return new w({ width: r, height: a, pixelType: n, pixels: p, mask: u });
|
|
1501
|
-
}
|
|
1502
|
-
function Rr(i, t) {
|
|
1503
|
-
const e = $r(t.kernel), s = t.mirrorEdges !== !1, o = e.separable ? Ir(i, e.row, e.col, s) : Nr(i, t, s), { outputPixelType: r } = t;
|
|
1504
|
-
return r && o.clamp(r), o;
|
|
1505
|
-
}
|
|
1506
|
-
B.set($.none, [0, 0, 0, 0, 1, 0, 0, 0, 0]), B.set($.lineDetectionHorizontal, [-1, -1, -1, 2, 2, 2, -1, -1, -1]), B.set($.lineDetectionVertical, [-1, 2, -1, -1, 2, -1, -1, 2, -1]), B.set($.lineDetectionLeftDiagonal, [2, -1, -1, -1, 2, -1, -1, -1, 2]), B.set($.lineDetectionRightDiagonal, [-1, -1, 2, -1, 2, -1, 2, -1, -1]), B.set($.gradientNorth, [-1, -2, -1, 0, 0, 0, 1, 2, 1]), B.set($.gradientWest, [-1, 0, 1, -2, 0, 2, -1, 0, 1]), B.set($.gradientEast, [1, 0, -1, 2, 0, -2, 1, 0, -1]), B.set($.gradientSouth, [1, 2, 1, 0, 0, 0, -1, -2, -1]), B.set($.gradientNorthEast, [0, -1, -2, 1, 0, -1, 2, 1, 0]), B.set($.gradientNorthWest, [-2, -1, 0, -1, 0, 1, 0, 1, 2]), B.set($.smoothArithmeticMean, [0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111]), B.set($.smoothing3x3, [0.0625, 0.125, 0.0625, 0.125, 0.25, 0.125, 0.0625, 0.125, 0.0625]), B.set($.smoothing5x5, [1, 1, 1, 1, 1, 1, 4, 4, 4, 1, 1, 4, 12, 4, 1, 1, 4, 4, 4, 1, 1, 1, 1, 1, 1]), B.set($.sharpening3x3, [-1, -1, -1, -1, 9, -1, -1, -1, -1]), B.set($.sharpening5x5, [-1, -3, -4, -3, -1, -3, 0, 6, 0, -3, -4, 6, 21, 6, -4, -3, 0, 6, 0, -3, -1, -3, -4, -3, -1]), B.set($.laplacian3x3, [0, -1, 0, -1, 4, -1, 0, -1, 0]), B.set($.laplacian5x5, [0, 0, -1, 0, 0, 0, -1, -2, -1, 0, -1, -2, 17, -2, -1, 0, -1, -2, -1, 0, 0, 0, -1, 0, 0]), B.set($.sobelHorizontal, [-1, -2, -1, 0, 0, 0, 1, 2, 1]), B.set($.sobelVertical, [-1, 0, 1, -2, 0, 2, -1, 0, 1]), B.set($.sharpen, [0, -0.25, 0, -0.25, 2, -0.25, 0, -0.25, 0]), B.set($.sharpen2, [-0.25, -0.25, -0.25, -0.25, 3, -0.25, -0.25, -0.25, -0.25]), B.set($.pointSpread, [-0.627, 0.352, -0.627, 0.352, 2.923, 0.352, -0.627, 0.352, -0.627]);
|
|
1507
|
-
var oe;
|
|
1508
|
-
let at = oe = class extends D {
|
|
1509
|
-
constructor() {
|
|
1510
|
-
super(...arguments), this.rows = 3, this.cols = 3, this.kernel = [0, 0, 0, 0, 1, 0, 0, 0, 0];
|
|
1511
|
-
}
|
|
1512
|
-
set convolutionType(i) {
|
|
1513
|
-
this._set("convolutionType", i);
|
|
1514
|
-
const t = B.get(i);
|
|
1515
|
-
if (!t || i === $.userDefined || i === $.none)
|
|
1516
|
-
return;
|
|
1517
|
-
const e = Math.sqrt(t.length);
|
|
1518
|
-
this._set("kernel", t), this._set("cols", e), this._set("rows", e);
|
|
1519
|
-
}
|
|
1520
|
-
clone() {
|
|
1521
|
-
return new oe({ cols: this.cols, rows: this.rows, kernel: [...this.kernel], convolutionType: this.convolutionType, raster: L(this.raster) });
|
|
1522
|
-
}
|
|
1523
|
-
};
|
|
1524
|
-
c([m({ json: { type: Number, write: !0 } })], at.prototype, "rows", void 0), c([m({ json: { type: Number, write: !0 } })], at.prototype, "cols", void 0), c([m({ json: { name: "type", type: Number, write: !0 } })], at.prototype, "convolutionType", null), c([m({ json: { type: [Number], write: !0 } })], at.prototype, "kernel", void 0), at = oe = c([A("esri.layers.support.rasterFunctions.ConvolutionFunctionArguments")], at);
|
|
1525
|
-
const kr = at, Qe = 25;
|
|
1526
|
-
let ut = class extends G {
|
|
1527
|
-
constructor() {
|
|
1528
|
-
super(...arguments), this.functionName = "Convolution", this.rasterArgumentNames = ["raster"];
|
|
1529
|
-
}
|
|
1530
|
-
get _normalizedKernel() {
|
|
1531
|
-
const { kernel: t, convolutionType: e } = this.functionArguments, s = t.reduce((o, r) => o + r);
|
|
1532
|
-
return e === -1 || s === 0 || s === 1 ? t : t.map((o) => o / s);
|
|
1533
|
-
}
|
|
1534
|
-
_bindSourceRasters() {
|
|
1535
|
-
const { convolutionType: t, rows: e, cols: s, kernel: o } = this.functionArguments;
|
|
1536
|
-
if (!Object.values($).includes(t))
|
|
1537
|
-
return { success: !1, supportsGPU: !1, error: `convolution-function: the specified kernel type is not supported ${t}` };
|
|
1538
|
-
if (t !== $.none && e * s !== o.length)
|
|
1539
|
-
return { success: !1, supportsGPU: !1, error: "convolution-function: the specified rows and cols do not match the length of the kernel" };
|
|
1540
|
-
const r = this.sourceRasterInfos[0];
|
|
1541
|
-
this.outputPixelType = this._getOutputPixelType(r.pixelType);
|
|
1542
|
-
const a = r.clone();
|
|
1543
|
-
a.pixelType = this.outputPixelType;
|
|
1544
|
-
const n = [$.none, $.sharpen, $.sharpen2, $.sharpening3x3, $.sharpening5x5];
|
|
1545
|
-
return (t === -1 || this.outputPixelType !== "u8" && !n.includes(t)) && (a.statistics = null, a.histograms = null), a.colormap = null, a.attributeTable = null, this.rasterInfo = a, { success: !0, supportsGPU: o.length <= Qe };
|
|
1546
|
-
}
|
|
1547
|
-
_processPixels(t) {
|
|
1548
|
-
var a;
|
|
1549
|
-
const e = (a = t.pixelBlocks) == null ? void 0 : a[0];
|
|
1550
|
-
if (e == null || this.functionArguments.convolutionType === $.none)
|
|
1551
|
-
return e;
|
|
1552
|
-
const { rows: s, cols: o } = this.functionArguments, { _normalizedKernel: r } = this;
|
|
1553
|
-
return Rr(e, { kernel: r, rows: s, cols: o, outputPixelType: this.outputPixelType });
|
|
1554
|
-
}
|
|
1555
|
-
_getWebGLParameters() {
|
|
1556
|
-
const t = new Float32Array(Qe);
|
|
1557
|
-
return t.set(this._normalizedKernel), { kernelRows: this.functionArguments.rows, kernelCols: this.functionArguments.cols, kernel: t, clampRange: vt(this.outputPixelType) };
|
|
1558
|
-
}
|
|
1559
|
-
};
|
|
1560
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], ut.prototype, "functionName", void 0), c([m({ type: kr, json: { write: !0, name: "rasterFunctionArguments" } })], ut.prototype, "functionArguments", void 0), c([m()], ut.prototype, "rasterArgumentNames", void 0), c([m()], ut.prototype, "_normalizedKernel", null), ut = c([A("esri.layers.support.rasterFunctions.ConvolutionFunction")], ut);
|
|
1561
|
-
const Cr = ut;
|
|
1562
|
-
var ie;
|
|
1563
|
-
const ms = new jt({ 0: "standard", 1: "platform", 2: "profile" }, { useNumericKeys: !0 });
|
|
1564
|
-
let Pt = ie = class extends D {
|
|
1565
|
-
constructor() {
|
|
1566
|
-
super(...arguments), this.curvatureType = "standard", this.zFactor = 1;
|
|
1567
|
-
}
|
|
1568
|
-
readCurvatureType(i, t) {
|
|
1569
|
-
return ms.fromJSON(t.type ?? t.curvatureType ?? 0);
|
|
1570
|
-
}
|
|
1571
|
-
clone() {
|
|
1572
|
-
return new ie({ curvatureType: this.curvatureType, zFactor: this.zFactor, raster: this.raster });
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
c([m({ json: { write: { target: "type" } } }), Y(ms)], Pt.prototype, "curvatureType", void 0), c([Ct("curvatureType", ["type", "curvatureType"])], Pt.prototype, "readCurvatureType", null), c([m({ type: Number, json: { write: !0 } })], Pt.prototype, "zFactor", void 0), Pt = ie = c([A("esri.layers.support.rasterFunctions.CurvatureFunctionArguments")], Pt);
|
|
1576
|
-
const _r = Pt;
|
|
1577
|
-
let lt = class extends G {
|
|
1578
|
-
constructor() {
|
|
1579
|
-
super(...arguments), this.functionName = "Curvature", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isGCS = !1;
|
|
1580
|
-
}
|
|
1581
|
-
_bindSourceRasters() {
|
|
1582
|
-
var e;
|
|
1583
|
-
this.outputPixelType = this._getOutputPixelType("f32");
|
|
1584
|
-
const t = this.sourceRasterInfos[0].clone();
|
|
1585
|
-
return t.pixelType = this.outputPixelType, t.bandCount = 1, this._removeStatsHistColormapVAT(t), this.rasterInfo = t, this.isGCS = ((e = t.spatialReference) == null ? void 0 : e.isGeographic) ?? !1, { success: !0, supportsGPU: !0 };
|
|
1586
|
-
}
|
|
1587
|
-
_processPixels(t) {
|
|
1588
|
-
var p;
|
|
1589
|
-
const e = (p = t.pixelBlocks) == null ? void 0 : p[0];
|
|
1590
|
-
if (e == null)
|
|
1591
|
-
return null;
|
|
1592
|
-
const { zFactor: s, curvatureType: o } = this.functionArguments, { extent: r, primaryPixelSizes: a } = t, n = a == null ? void 0 : a[0], u = n ?? (r ? { x: r.width / e.width, y: r.height / e.height } : { x: 1, y: 1 }), l = this.isGCS && s >= 1 ? s * Kt : s;
|
|
1593
|
-
return js(e, { zFactor: l, curvatureType: o, resolution: u });
|
|
1594
|
-
}
|
|
1595
|
-
_getWebGLParameters() {
|
|
1596
|
-
const { zFactor: t, curvatureType: e } = this.functionArguments;
|
|
1597
|
-
return { curvatureType: e, zFactor: this.isGCS && t >= 1 ? t * Kt : t };
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], lt.prototype, "functionName", void 0), c([m({ type: _r, json: { write: !0, name: "rasterFunctionArguments" } })], lt.prototype, "functionArguments", void 0), c([m()], lt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], lt.prototype, "isGCS", void 0), lt = c([A("esri.layers.support.rasterFunctions.CurvatureFunction")], lt);
|
|
1601
|
-
const Br = lt;
|
|
1602
|
-
var ae;
|
|
1603
|
-
let J = ae = class extends D {
|
|
1604
|
-
constructor() {
|
|
1605
|
-
super(...arguments), this.bandIds = [], this.bandNames = [], this.bandWavelengths = [], this.missingBandAction = os.bestMatch;
|
|
1606
|
-
}
|
|
1607
|
-
clone() {
|
|
1608
|
-
var i, t, e;
|
|
1609
|
-
return new ae({ bandIds: (i = this.bandIds) == null ? void 0 : i.slice(), bandNames: (t = this.bandNames) == null ? void 0 : t.slice(), bandWavelengths: (e = this.bandWavelengths) == null ? void 0 : e.slice(), missingBandAction: this.missingBandAction, method: this.method, wavelengthMatchTolerance: this.wavelengthMatchTolerance });
|
|
1610
|
-
}
|
|
1611
|
-
};
|
|
1612
|
-
c([m({ json: { write: !0 } })], J.prototype, "bandIds", void 0), c([m({ json: { write: !0 } })], J.prototype, "bandNames", void 0), c([m({ json: { write: !0 } })], J.prototype, "bandWavelengths", void 0), c([Y({ 0: "name", 1: "wavelength", 2: "id" })], J.prototype, "method", void 0), c([m({ json: { write: !0 } })], J.prototype, "missingBandAction", void 0), c([m({ json: { write: !0 } })], J.prototype, "wavelengthMatchTolerance", void 0), J = ae = c([A("esri.layers.support.rasterFunctions.ExtractBandFunctionArguments")], J);
|
|
1613
|
-
const jr = J;
|
|
1614
|
-
let $t = class extends G {
|
|
1615
|
-
constructor() {
|
|
1616
|
-
super(...arguments), this.functionName = "ExtractBand", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
|
|
1617
|
-
}
|
|
1618
|
-
_bindSourceRasters() {
|
|
1619
|
-
var b;
|
|
1620
|
-
const { functionArguments: t, sourceRasterInfos: e } = this, s = e[0], { method: o, bandNames: r, bandWavelengths: a, bandIds: n, missingBandAction: u } = t, l = (r == null ? void 0 : r.length) && (o === "name" || o !== "id" && !(n != null && n.length)), p = (a == null ? void 0 : a.length) && (o === "wavelength" || o !== "id" && !(n != null && n.length)), h = u === os.fail, f = l ? this._matchBandNames(s, r) : p ? this._matchBandWavelengths(s, a, h) : this._matchBandIds(s, n, h);
|
|
1621
|
-
if (f == null)
|
|
1622
|
-
return { success: !1, supportsGPU: !1, error: `extract-band-function: Invalid ${l ? "band names" : p ? "band wavelengths" : "band ids"} for the imagery data source` };
|
|
1623
|
-
this.functionArguments.bandIds = f, this.functionArguments.method = "id", this.outputPixelType = this._getOutputPixelType("f32");
|
|
1624
|
-
const g = s.clone();
|
|
1625
|
-
g.pixelType = this.outputPixelType, g.bandCount = f.length;
|
|
1626
|
-
const { statistics: x, histograms: y } = g;
|
|
1627
|
-
x != null && x.length && (g.statistics = f.map((v) => x[v] || x[x.length - 1])), y != null && y.length && (g.histograms = f.map((v) => y[v] || y[y.length - 1]));
|
|
1628
|
-
let d = (b = g.keyProperties) == null ? void 0 : b.BandProperties;
|
|
1629
|
-
return d != null && d.length && (d = f.map((v) => v >= d.length ? d[d.length - 1] : d[v]), g.keyProperties = { ...g.keyProperties, BandProperties: d }), this.rasterInfo = g, { success: !0, supportsGPU: g.bandCount <= 3 };
|
|
1630
|
-
}
|
|
1631
|
-
_processPixels(t) {
|
|
1632
|
-
var r;
|
|
1633
|
-
const e = (r = t.pixelBlocks) == null ? void 0 : r[0];
|
|
1634
|
-
if (e == null)
|
|
1635
|
-
return null;
|
|
1636
|
-
const s = e.pixels.length, o = this.functionArguments.bandIds.map((a) => a >= s ? s - 1 : a);
|
|
1637
|
-
return e.extractBands(o);
|
|
1638
|
-
}
|
|
1639
|
-
_getWebGLParameters() {
|
|
1640
|
-
let t;
|
|
1641
|
-
if (this.isInputBandIdsSwizzled)
|
|
1642
|
-
t = this.swizzledBandSelection.length ? this.swizzledBandSelection : [0, 1, 2];
|
|
1643
|
-
else {
|
|
1644
|
-
t = [...this.functionArguments.bandIds], t.length === 0 ? t = [0, 1, 2] : t.length < 3 && (t[1] = t[1] ?? t[0], t[2] = t[2] ?? t[1]);
|
|
1645
|
-
for (let e = 0; e < 3; e++)
|
|
1646
|
-
t[e] = Math.min(t[e], 2);
|
|
1647
|
-
}
|
|
1648
|
-
return { bandIndexMat3: E(t) };
|
|
1649
|
-
}
|
|
1650
|
-
_getInputBandIds(t) {
|
|
1651
|
-
const e = t.length;
|
|
1652
|
-
return this.functionArguments.bandIds.map((s) => s >= e ? e - 1 : s).map((s) => t[s]);
|
|
1653
|
-
}
|
|
1654
|
-
_matchBandNames(t, e) {
|
|
1655
|
-
const s = t.bandInfos.map(({ name: r }) => r.toLowerCase()), o = [];
|
|
1656
|
-
for (let r = 0; r < e.length; r++) {
|
|
1657
|
-
const a = e[r].toLowerCase();
|
|
1658
|
-
let n = s.indexOf(a);
|
|
1659
|
-
if (n === -1 && a === "nearinfrared" && (n = s.findIndex((u) => u.startsWith("nearinfrared_1")), n === -1 && (n = s.findIndex((u) => u.startsWith("nearinfrared")))), n === -1)
|
|
1660
|
-
return null;
|
|
1661
|
-
o.push(n);
|
|
1662
|
-
}
|
|
1663
|
-
return o;
|
|
1664
|
-
}
|
|
1665
|
-
_matchBandIds(t, e, s) {
|
|
1666
|
-
const { bandCount: o } = t;
|
|
1667
|
-
return !(e != null && e.length) || s && e.some((r) => r < 0 || r >= o) ? null : e;
|
|
1668
|
-
}
|
|
1669
|
-
_matchBandWavelengths(t, e, s) {
|
|
1670
|
-
const { bandInfos: o } = t, r = [];
|
|
1671
|
-
for (let u = 0; u < o.length; u++) {
|
|
1672
|
-
const { minWavelength: l, maxWavelength: p } = o[u];
|
|
1673
|
-
if (!l || !p)
|
|
1674
|
-
return null;
|
|
1675
|
-
r.push({ minWavelength: l, maxWavelength: p });
|
|
1676
|
-
}
|
|
1677
|
-
const { wavelengthMatchTolerance: a } = this.functionArguments, n = [];
|
|
1678
|
-
for (let u = 0; u < e.length; u++) {
|
|
1679
|
-
const l = e[u];
|
|
1680
|
-
let p = !1, h = -1, f = Number.MAX_VALUE;
|
|
1681
|
-
for (let g = 0; g < r.length; g++) {
|
|
1682
|
-
const x = r[g], y = l >= x.minWavelength && l <= x.maxWavelength, d = Math.abs(l - (x.minWavelength + x.maxWavelength) / 2);
|
|
1683
|
-
y ? d < f && (p = !0, h = g, f = d) : !p && d < f && (h = g, f = d);
|
|
1684
|
-
}
|
|
1685
|
-
if (!p && a && f < a && (p = !0), !p && s)
|
|
1686
|
-
return null;
|
|
1687
|
-
n.push(h);
|
|
1688
|
-
}
|
|
1689
|
-
return n;
|
|
1690
|
-
}
|
|
1691
|
-
};
|
|
1692
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], $t.prototype, "functionName", void 0), c([m({ type: jr, json: { write: !0, name: "rasterFunctionArguments" } })], $t.prototype, "functionArguments", void 0), c([m()], $t.prototype, "rasterArgumentNames", void 0), $t = c([A("esri.layers.support.rasterFunctions.ExtractBandFunction")], $t);
|
|
1693
|
-
const Sr = $t;
|
|
1694
|
-
function Mr(i, t, e) {
|
|
1695
|
-
const { pixels: s, width: o, height: r, mask: a, bandMasks: n } = i, u = o * r, l = n != null && n.length ? w.combineBandMasks(n) : a, p = Math.min(t.length, s.length), h = e.startsWith("f"), f = !h && e !== i.pixelType, [g, x] = vt(e), y = w.createEmptyBand(e, u);
|
|
1696
|
-
for (let b = 0; b < r; b++) {
|
|
1697
|
-
let v = b * o;
|
|
1698
|
-
for (let R = 0; R < o; R++, v++)
|
|
1699
|
-
if (!l || l[v]) {
|
|
1700
|
-
let N = 0;
|
|
1701
|
-
for (let z = 0; z < p; z++)
|
|
1702
|
-
N += t[z] * s[z][v];
|
|
1703
|
-
h || (N = Math.round(N), f && (N = N > x ? x : N < g ? g : N)), y[v] = N;
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
const d = new w({ width: o, height: r, pixels: [y], pixelType: e, mask: l });
|
|
1707
|
-
return d.updateStatistics(), d;
|
|
1708
|
-
}
|
|
1709
|
-
var ue;
|
|
1710
|
-
let Lt = ue = class extends D {
|
|
1711
|
-
clone() {
|
|
1712
|
-
return new ue({ conversionParameters: [...this.conversionParameters], raster: this.raster });
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
|
-
c([m({ type: [Number], json: { write: !0 } })], Lt.prototype, "conversionParameters", void 0), Lt = ue = c([A("esri.layers.support.rasterFunctions.GrayscaleFunctionArguments")], Lt);
|
|
1716
|
-
const Or = Lt;
|
|
1717
|
-
let ct = class extends G {
|
|
1718
|
-
constructor() {
|
|
1719
|
-
super(...arguments), this.functionName = "Grayscale", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
|
|
1720
|
-
}
|
|
1721
|
-
get _normalizedWeights() {
|
|
1722
|
-
const { conversionParameters: t } = this.functionArguments, e = t.reduce((s, o) => s + o);
|
|
1723
|
-
return t.map((s) => s / e);
|
|
1724
|
-
}
|
|
1725
|
-
_bindSourceRasters() {
|
|
1726
|
-
const { conversionParameters: t } = this.functionArguments;
|
|
1727
|
-
if (!(t != null && t.length))
|
|
1728
|
-
return { success: !1, supportsGPU: !1, error: "missing valid conversion parameters." };
|
|
1729
|
-
const e = this.sourceRasterInfos[0].clone();
|
|
1730
|
-
this.outputPixelType = this._getOutputPixelType(e.pixelType), e.pixelType = this.outputPixelType;
|
|
1731
|
-
const s = t.length === 3 || e.bandCount === 3 && t.length > 3;
|
|
1732
|
-
return e.bandCount = 1, this._removeStatsHistColormapVAT(e), this.rasterInfo = e, { success: !0, supportsGPU: s };
|
|
1733
|
-
}
|
|
1734
|
-
_processPixels(t) {
|
|
1735
|
-
var s;
|
|
1736
|
-
const e = (s = t.pixelBlocks) == null ? void 0 : s[0];
|
|
1737
|
-
return e == null ? null : Mr(e, this._normalizedWeights, this.outputPixelType);
|
|
1738
|
-
}
|
|
1739
|
-
_getWebGLParameters() {
|
|
1740
|
-
return { weights: this._normalizedWeights };
|
|
1741
|
-
}
|
|
1742
|
-
};
|
|
1743
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], ct.prototype, "functionName", void 0), c([m({ type: Or, json: { write: !0, name: "rasterFunctionArguments" } })], ct.prototype, "functionArguments", void 0), c([m()], ct.prototype, "rasterArgumentNames", void 0), c([m()], ct.prototype, "_normalizedWeights", null), ct = c([A("esri.layers.support.rasterFunctions.GrayscaleFunction")], ct);
|
|
1744
|
-
const Dr = ct;
|
|
1745
|
-
var le;
|
|
1746
|
-
let pt = le = class extends D {
|
|
1747
|
-
constructor() {
|
|
1748
|
-
super(...arguments), this.rasters = [], this.processAsMultiband = !0;
|
|
1749
|
-
}
|
|
1750
|
-
writeRasters(i, t) {
|
|
1751
|
-
t.rasters = i.map((e) => typeof e == "number" || typeof e == "string" ? e : e.toJSON());
|
|
1752
|
-
}
|
|
1753
|
-
clone() {
|
|
1754
|
-
return new le({ operation: this.operation, processAsMultiband: this.processAsMultiband, rasters: L(this.rasters) });
|
|
1755
|
-
}
|
|
1756
|
-
};
|
|
1757
|
-
c([m({ json: { write: !0 } })], pt.prototype, "operation", void 0), c([m({ json: { write: !0 } })], pt.prototype, "rasters", void 0), c([_t("rasters")], pt.prototype, "writeRasters", null), c([m({ json: { write: !0 } })], pt.prototype, "processAsMultiband", void 0), pt = le = c([A("esri.layers.support.rasterFunctions.LocalFunctionArguments")], pt);
|
|
1758
|
-
const Gr = pt;
|
|
1759
|
-
let Ft = class extends G {
|
|
1760
|
-
constructor() {
|
|
1761
|
-
super(...arguments), this.functionName = "Local", this.functionArguments = null, this.rasterArgumentNames = ["rasters"];
|
|
1762
|
-
}
|
|
1763
|
-
_bindSourceRasters() {
|
|
1764
|
-
const { sourceRasterInfos: t } = this, e = t[0], { bandCount: s } = e, { processAsMultiband: o } = this.functionArguments;
|
|
1765
|
-
if (t.some((l) => l.bandCount !== s))
|
|
1766
|
-
return { success: !1, supportsGPU: !1, error: "local-function: input rasters do not have same band count" };
|
|
1767
|
-
const { operation: r, rasters: a } = this.functionArguments, n = Oe[r];
|
|
1768
|
-
if (!(n === 999 || a.length === n || a.length <= 1 && n === 1))
|
|
1769
|
-
return { success: !1, supportsGPU: !1, error: `local-function: the length of functionArguments.rasters does not match operation's requirement: ${n}` };
|
|
1770
|
-
const u = e.clone();
|
|
1771
|
-
return u.bandCount = n !== 999 || o ? s : 1, this._removeStatsHistColormapVAT(u), this._updateStatistics(u), this._updatePixelType(u), this.rasterInfo = u, { success: !0, supportsGPU: u.bandCount === 1 && n <= 3 && (r < 11 || r > 16) };
|
|
1772
|
-
}
|
|
1773
|
-
_processPixels(t) {
|
|
1774
|
-
const { pixelBlocks: e } = t;
|
|
1775
|
-
return e == null || e.some((s) => s == null) ? null : hs(e, this.functionArguments.operation, { processAsMultiband: this.functionArguments.processAsMultiband, outputPixelType: this.outputPixelType ?? void 0 });
|
|
1776
|
-
}
|
|
1777
|
-
_getWebGLParameters() {
|
|
1778
|
-
var u;
|
|
1779
|
-
const { operation: t } = this.functionArguments, e = Oe[t], s = ((u = Object.keys(Se).find((l) => Se[l] === t)) == null ? void 0 : u.toLowerCase()) ?? "undefined", o = this.outputPixelType ?? "f32";
|
|
1780
|
-
let [r, a] = vt(o);
|
|
1781
|
-
const n = nt(o);
|
|
1782
|
-
return n && (r -= 1e-4, a += 1e-4), { imageCount: e, operationName: s, domainRange: [r, a], isOutputRounded: n };
|
|
1783
|
-
}
|
|
1784
|
-
_updateStatistics(t) {
|
|
1785
|
-
var r, a;
|
|
1786
|
-
const e = this.sourceRasterInfos[0], { operation: s } = this.functionArguments, o = (r = Me(s)) == null ? void 0 : r.domain;
|
|
1787
|
-
if (o) {
|
|
1788
|
-
t.statistics = [];
|
|
1789
|
-
for (let n = 0; n < t.bandCount; n++)
|
|
1790
|
-
t.statistics[n] = { min: o[0], max: o[1], avg: (o[0] + o[1]) / 2, stddev: (o[0] + o[1]) / 10 };
|
|
1791
|
-
} else
|
|
1792
|
-
s === 45 && ((a = e.statistics) != null && a.length) && (t.statistics = e.statistics.map((n) => ({ min: -n.max, max: -n.min, avg: n.avg != null ? -n.avg : void 0, stddev: n.stddev != null ? -n.stddev : void 0 })));
|
|
1793
|
-
}
|
|
1794
|
-
_updatePixelType(t) {
|
|
1795
|
-
const { statistics: e, pixelType: s } = this.sourceRasterInfos[0], { operation: o } = this.functionArguments, { domain: r, isInteger: a } = Me(o) ?? { domain: null, isInteger: !1 };
|
|
1796
|
-
let n = "f32";
|
|
1797
|
-
if (r && a)
|
|
1798
|
-
n = Xt(r[0], r[1]);
|
|
1799
|
-
else if (o === 30) {
|
|
1800
|
-
const u = e == null ? void 0 : e[0];
|
|
1801
|
-
n = u ? Xt(u.min, u.max) : nt(s) ? s : "s32";
|
|
1802
|
-
} else if (o === 45 && nt(s)) {
|
|
1803
|
-
const u = e == null ? void 0 : e.map(({ max: f }) => -f), l = e == null ? void 0 : e.map(({ min: f }) => -f), p = u != null && u.length ? Math.min(...u) : null, h = l != null && l.length ? Math.min(...l) : null;
|
|
1804
|
-
n = p != null && h != null ? Xt(p, h) : s.startsWith("s") ? s.replace("s", "u") : s === "u1" || s === "u2" || s === "u4" ? "s8" : s === "u8" ? "s16" : "s32";
|
|
1805
|
-
}
|
|
1806
|
-
t.pixelType = this.outputPixelType = this._getOutputPixelType(n);
|
|
1807
|
-
}
|
|
1808
|
-
};
|
|
1809
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], Ft.prototype, "functionName", void 0), c([m({ type: Gr, json: { write: !0, name: "rasterFunctionArguments" } })], Ft.prototype, "functionArguments", void 0), c([m()], Ft.prototype, "rasterArgumentNames", void 0), Ft = c([A("esri.layers.support.rasterFunctions.LocalFunction")], Ft);
|
|
1810
|
-
const zr = Ft;
|
|
1811
|
-
var ce;
|
|
1812
|
-
let ht = ce = class extends D {
|
|
1813
|
-
constructor() {
|
|
1814
|
-
super(...arguments), this.includedRanges = null, this.noDataValues = null, this.noDataInterpretation = is.matchAny;
|
|
1815
|
-
}
|
|
1816
|
-
get normalizedNoDataValues() {
|
|
1817
|
-
const { noDataValues: i } = this;
|
|
1818
|
-
if (!(i != null && i.length))
|
|
1819
|
-
return null;
|
|
1820
|
-
let t = !1;
|
|
1821
|
-
const e = i.map((s) => {
|
|
1822
|
-
if (typeof s == "number")
|
|
1823
|
-
return t = !0, [s];
|
|
1824
|
-
if (typeof s == "string") {
|
|
1825
|
-
const o = s.trim().split(" ").filter((r) => r.trim() !== "").map((r) => Number(r));
|
|
1826
|
-
return t = t || o.length > 0, o.length === 0 ? null : o;
|
|
1827
|
-
}
|
|
1828
|
-
return null;
|
|
1829
|
-
});
|
|
1830
|
-
return t ? e : null;
|
|
1831
|
-
}
|
|
1832
|
-
clone() {
|
|
1833
|
-
var i, t;
|
|
1834
|
-
return new ce({ includedRanges: ((i = this.includedRanges) == null ? void 0 : i.slice()) ?? [], noDataValues: ((t = this.noDataValues) == null ? void 0 : t.slice()) ?? [], noDataInterpretation: this.noDataInterpretation });
|
|
1835
|
-
}
|
|
1836
|
-
};
|
|
1837
|
-
c([m({ json: { write: !0 } })], ht.prototype, "includedRanges", void 0), c([m({ json: { write: !0 } })], ht.prototype, "noDataValues", void 0), c([m()], ht.prototype, "normalizedNoDataValues", null), c([m({ json: { write: !0 } })], ht.prototype, "noDataInterpretation", void 0), ht = ce = c([A("esri.layers.support.rasterFunctions.MaskFunctionArguments")], ht);
|
|
1838
|
-
const Er = ht;
|
|
1839
|
-
let mt = class extends G {
|
|
1840
|
-
constructor() {
|
|
1841
|
-
super(...arguments), this.functionName = "Mask", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
|
|
1842
|
-
}
|
|
1843
|
-
_bindSourceRasters() {
|
|
1844
|
-
const t = this.sourceRasterInfos[0].clone(), { pixelType: e } = t;
|
|
1845
|
-
this.outputPixelType = this._getOutputPixelType(e), t.pixelType = this.outputPixelType, this.rasterInfo = t;
|
|
1846
|
-
const { includedRanges: s, normalizedNoDataValues: o } = this.functionArguments;
|
|
1847
|
-
if (!(s != null && s.length) && !(o != null && o.length))
|
|
1848
|
-
return { success: !1, supportsGPU: !1, error: "missing includedRanges or noDataValues argument" };
|
|
1849
|
-
let r = [];
|
|
1850
|
-
for (let n = 0; n < t.bandCount; n++) {
|
|
1851
|
-
const u = Ps(e, s == null ? void 0 : s.slice(2 * n, 2 * n + 2), o == null ? void 0 : o[n]);
|
|
1852
|
-
if (u == null) {
|
|
1853
|
-
r = null;
|
|
1854
|
-
break;
|
|
1855
|
-
}
|
|
1856
|
-
r.push(u);
|
|
1857
|
-
}
|
|
1858
|
-
this.lookups = r;
|
|
1859
|
-
const a = o != null && o.every((n) => {
|
|
1860
|
-
var u;
|
|
1861
|
-
return (n == null ? void 0 : n.length) === ((u = o[0]) == null ? void 0 : u.length);
|
|
1862
|
-
});
|
|
1863
|
-
return { success: !0, supportsGPU: (!s || s.length <= 2 * K) && (!o || a && o[0].length <= K) };
|
|
1864
|
-
}
|
|
1865
|
-
_processPixels(t) {
|
|
1866
|
-
var l;
|
|
1867
|
-
const e = (l = t.pixelBlocks) == null ? void 0 : l[0];
|
|
1868
|
-
if (e == null)
|
|
1869
|
-
return null;
|
|
1870
|
-
const { outputPixelType: s, lookups: o } = this, { includedRanges: r, noDataInterpretation: a, normalizedNoDataValues: n } = this.functionArguments, u = a === is.matchAll;
|
|
1871
|
-
return $s(e, { includedRanges: r, noDataValues: n, outputPixelType: s, matchAll: u, lookups: o });
|
|
1872
|
-
}
|
|
1873
|
-
_getWebGLParameters() {
|
|
1874
|
-
var r;
|
|
1875
|
-
const { includedRanges: t, normalizedNoDataValues: e } = this.functionArguments, s = new Float32Array(K);
|
|
1876
|
-
s.fill(kt), (r = e == null ? void 0 : e[0]) != null && r.length && s.set(e[0]);
|
|
1877
|
-
const o = new Float32Array(K);
|
|
1878
|
-
for (let a = 0; a < o.length; a += 2)
|
|
1879
|
-
o[a] = (t == null ? void 0 : t[a]) ?? -kt, o[a + 1] = (t == null ? void 0 : t[a + 1]) ?? kt;
|
|
1880
|
-
return t && t.length && o.set(t), { bandCount: this.sourceRasterInfos[0].bandCount, noDataValues: s, includedRanges: o };
|
|
1881
|
-
}
|
|
1882
|
-
};
|
|
1883
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], mt.prototype, "functionName", void 0), c([m({ type: Er, json: { write: !0, name: "rasterFunctionArguments" } })], mt.prototype, "functionArguments", void 0), c([m()], mt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], mt.prototype, "lookups", void 0), mt = c([A("esri.layers.support.rasterFunctions.MaskFunction")], mt);
|
|
1884
|
-
const Vr = mt;
|
|
1885
|
-
var pe;
|
|
1886
|
-
let Nt = pe = class extends D {
|
|
1887
|
-
constructor() {
|
|
1888
|
-
super(...arguments), this.visibleBandID = 0, this.infraredBandID = 1, this.scientificOutput = !1;
|
|
1889
|
-
}
|
|
1890
|
-
clone() {
|
|
1891
|
-
const { visibleBandID: i, infraredBandID: t, scientificOutput: e } = this;
|
|
1892
|
-
return new pe({ visibleBandID: i, infraredBandID: t, scientificOutput: e });
|
|
1893
|
-
}
|
|
1894
|
-
};
|
|
1895
|
-
c([m({ json: { write: !0 } })], Nt.prototype, "visibleBandID", void 0), c([m({ json: { write: !0 } })], Nt.prototype, "infraredBandID", void 0), c([m({ json: { write: !0 } })], Nt.prototype, "scientificOutput", void 0), Nt = pe = c([A("esri.layers.support.rasterFunctions.NDVIFunctionArguments")], Nt);
|
|
1896
|
-
const Ur = Nt;
|
|
1897
|
-
let It = class extends G {
|
|
1898
|
-
constructor() {
|
|
1899
|
-
super(...arguments), this.functionName = "NDVI", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
|
|
1900
|
-
}
|
|
1901
|
-
_bindSourceRasters() {
|
|
1902
|
-
const { scientificOutput: t, visibleBandID: e, infraredBandID: s } = this.functionArguments;
|
|
1903
|
-
this.outputPixelType = this._getOutputPixelType(t ? "f32" : "u8");
|
|
1904
|
-
const o = this.sourceRasterInfos[0], r = Math.max(e, s);
|
|
1905
|
-
if (o.bandCount < 2 || r >= o.bandCount)
|
|
1906
|
-
return { success: !1, supportsGPU: !1, error: "ndvi-function: source raster has insufficient amount of raster bands" };
|
|
1907
|
-
const a = o.clone();
|
|
1908
|
-
a.pixelType = this.outputPixelType, a.colormap = null, a.histograms = null, a.bandCount = 1, a.keyProperties = { ...a.keyProperties, BandProperties: void 0 };
|
|
1909
|
-
const [n, u, l, p] = t ? [-1, 1, 0, 0.1] : [0, 200, 100, 10];
|
|
1910
|
-
return a.statistics = [{ min: n, max: u, avg: l, stddev: p }], this.rasterInfo = a, { success: !0, supportsGPU: !0 };
|
|
1911
|
-
}
|
|
1912
|
-
_processPixels(t) {
|
|
1913
|
-
var a;
|
|
1914
|
-
const e = (a = t.pixelBlocks) == null ? void 0 : a[0];
|
|
1915
|
-
if (e == null)
|
|
1916
|
-
return null;
|
|
1917
|
-
const { visibleBandID: s, infraredBandID: o, scientificOutput: r } = this.functionArguments;
|
|
1918
|
-
return Ln(e, s, o, !r);
|
|
1919
|
-
}
|
|
1920
|
-
_getWebGLParameters() {
|
|
1921
|
-
const { visibleBandID: t, infraredBandID: e, scientificOutput: s } = this.functionArguments, o = this.isInputBandIdsSwizzled ? [0, 1, 2] : [e, t, 0];
|
|
1922
|
-
return { bandIndexMat3: E(o), scaled: !s };
|
|
1923
|
-
}
|
|
1924
|
-
_getInputBandIds(t) {
|
|
1925
|
-
const { visibleBandID: e, infraredBandID: s } = this.functionArguments;
|
|
1926
|
-
return [s, e, 0].map((o) => t[o]);
|
|
1927
|
-
}
|
|
1928
|
-
};
|
|
1929
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], It.prototype, "functionName", void 0), c([m({ type: Ur, json: { write: !0, name: "rasterFunctionArguments" } })], It.prototype, "functionArguments", void 0), c([m()], It.prototype, "rasterArgumentNames", void 0), It = c([A("esri.layers.support.rasterFunctions.NDVIFunction")], It);
|
|
1930
|
-
const Lr = It;
|
|
1931
|
-
var he;
|
|
1932
|
-
let Q = he = class extends D {
|
|
1933
|
-
constructor() {
|
|
1934
|
-
super(...arguments), this.inputRanges = null, this.outputValues = null, this.noDataRanges = null, this.allowUnmatched = !1, this.isLastInputRangeInclusive = !1;
|
|
1935
|
-
}
|
|
1936
|
-
clone() {
|
|
1937
|
-
return new he({ inputRanges: [...this.inputRanges], outputValues: [...this.outputValues], noDataRanges: [...this.noDataRanges], allowUnmatched: this.allowUnmatched, isLastInputRangeInclusive: this.isLastInputRangeInclusive });
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1940
|
-
c([m({ json: { write: !0 } })], Q.prototype, "inputRanges", void 0), c([m({ json: { write: !0 } })], Q.prototype, "outputValues", void 0), c([m({ json: { write: !0 } })], Q.prototype, "noDataRanges", void 0), c([m({ json: { write: !0 } })], Q.prototype, "allowUnmatched", void 0), c([m({ json: { write: !0 } })], Q.prototype, "isLastInputRangeInclusive", void 0), Q = he = c([A("esri.layers.support.rasterFunctions.RemapFunctionArguments")], Q);
|
|
1941
|
-
const Wr = Q;
|
|
1942
|
-
let ft = class extends G {
|
|
1943
|
-
constructor() {
|
|
1944
|
-
super(...arguments), this.functionName = "Remap", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.lookup = null;
|
|
1945
|
-
}
|
|
1946
|
-
_bindSourceRasters() {
|
|
1947
|
-
const t = this.sourceRasterInfos[0].clone(), { pixelType: e } = t;
|
|
1948
|
-
this.outputPixelType = this._getOutputPixelType(e), t.pixelType = this.outputPixelType, t.colormap = null, t.histograms = null, t.bandCount = 1, t.attributeTable = null;
|
|
1949
|
-
const { statistics: s } = t, { allowUnmatched: o, outputValues: r, inputRanges: a, noDataRanges: n, isLastInputRangeInclusive: u } = this.functionArguments;
|
|
1950
|
-
if (s != null && s.length && (r != null && r.length))
|
|
1951
|
-
if (o) {
|
|
1952
|
-
const l = Math.min.apply(null, [...r, s[0].min]), p = Math.max.apply(null, [...r, s[0].max]);
|
|
1953
|
-
t.statistics = [{ ...s[0], min: l, max: p }];
|
|
1954
|
-
} else {
|
|
1955
|
-
let l = r[0], p = l;
|
|
1956
|
-
for (let h = 0; h < r.length; h++)
|
|
1957
|
-
l = l > r[h] ? r[h] : l, p = p > r[h] ? p : r[h];
|
|
1958
|
-
t.statistics = [{ ...s[0], min: l, max: p }];
|
|
1959
|
-
}
|
|
1960
|
-
return this.rasterInfo = t, this.lookup = o ? null : Fs({ srcPixelType: e, inputRanges: a, outputValues: r, noDataRanges: n, allowUnmatched: o, isLastInputRangeInclusive: u, outputPixelType: this.outputPixelType }), { success: !0, supportsGPU: (!r || r.length <= K) && (!n || n.length <= K) };
|
|
1961
|
-
}
|
|
1962
|
-
_processPixels(t) {
|
|
1963
|
-
var p;
|
|
1964
|
-
const e = (p = t.pixelBlocks) == null ? void 0 : p[0];
|
|
1965
|
-
if (e == null)
|
|
1966
|
-
return null;
|
|
1967
|
-
const { lookup: s, outputPixelType: o } = this;
|
|
1968
|
-
if (s) {
|
|
1969
|
-
const h = Fe(e, { lut: [s.lut], offset: s.offset, outputPixelType: o });
|
|
1970
|
-
return h != null && s.mask && (h.mask = Ns(e.pixels[0], e.mask, s.mask, s.offset, "u8")), h;
|
|
1971
|
-
}
|
|
1972
|
-
const { inputRanges: r, outputValues: a, noDataRanges: n, allowUnmatched: u, isLastInputRangeInclusive: l } = this.functionArguments;
|
|
1973
|
-
return Is(e, { inputRanges: r, outputValues: a, noDataRanges: n, outputPixelType: o, allowUnmatched: u, isLastInputRangeInclusive: l });
|
|
1974
|
-
}
|
|
1975
|
-
_getWebGLParameters() {
|
|
1976
|
-
const { allowUnmatched: t, noDataRanges: e, isLastInputRangeInclusive: s } = this.functionArguments, o = new Float32Array(3 * K), r = 1e-5, a = this.functionArguments.inputRanges ?? [], n = this.functionArguments.outputValues ?? [], u = n.length;
|
|
1977
|
-
for (let p = 0; p < K; p++)
|
|
1978
|
-
o[3 * p] = a[2 * p] ?? kt - 1, o[3 * p + 1] = a[2 * p + 1] ?? kt, o[3 * p + 2] = n[p] ?? 0, p < u && (p > 0 && (o[3 * p] -= r), (p < u - 1 || !s) && (o[3 * p + 1] -= r));
|
|
1979
|
-
const l = new Float32Array(2 * K);
|
|
1980
|
-
return l.fill(kt), e != null && e.length && l.set(e), { allowUnmatched: t, rangeMaps: o, noDataRanges: l, clampRange: vt(this.outputPixelType) };
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], ft.prototype, "functionName", void 0), c([m({ type: Wr, json: { write: !0, name: "rasterFunctionArguments" } })], ft.prototype, "functionArguments", void 0), c([m()], ft.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], ft.prototype, "lookup", void 0), ft = c([A("esri.layers.support.rasterFunctions.RemapFunction")], ft);
|
|
1984
|
-
const qr = ft;
|
|
1985
|
-
var me;
|
|
1986
|
-
const Hr = new jt({ 1: "degree", 2: "percent-rise", 3: "adjusted" }, { useNumericKeys: !0 });
|
|
1987
|
-
let tt = me = class extends D {
|
|
1988
|
-
constructor() {
|
|
1989
|
-
super(...arguments), this.slopeType = "degree", this.zFactor = 1, this.pixelSizePower = 0.664, this.pixelSizeFactor = 0.024, this.removeEdgeEffect = !1;
|
|
1990
|
-
}
|
|
1991
|
-
clone() {
|
|
1992
|
-
return new me({ slopeType: this.slopeType, zFactor: this.zFactor, pixelSizePower: this.pixelSizePower, pixelSizeFactor: this.pixelSizeFactor, removeEdgeEffect: this.removeEdgeEffect, raster: this.raster });
|
|
1993
|
-
}
|
|
1994
|
-
};
|
|
1995
|
-
c([Y(Hr)], tt.prototype, "slopeType", void 0), c([m({ type: Number, json: { write: !0 } })], tt.prototype, "zFactor", void 0), c([m({ type: Number, json: { name: "psPower", write: !0 } })], tt.prototype, "pixelSizePower", void 0), c([m({ type: Number, json: { name: "psZFactor", write: !0 } })], tt.prototype, "pixelSizeFactor", void 0), c([m({ type: Boolean, json: { write: !0 } })], tt.prototype, "removeEdgeEffect", void 0), tt = me = c([A("esri.layers.support.rasterFunctions.SlopeFunctionArguments")], tt);
|
|
1996
|
-
const Xr = tt;
|
|
1997
|
-
let dt = class extends G {
|
|
1998
|
-
constructor() {
|
|
1999
|
-
super(...arguments), this.functionName = "Slope", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isGCS = !1;
|
|
2000
|
-
}
|
|
2001
|
-
_bindSourceRasters() {
|
|
2002
|
-
var e;
|
|
2003
|
-
this.outputPixelType = this._getOutputPixelType("f32");
|
|
2004
|
-
const t = this.sourceRasterInfos[0].clone();
|
|
2005
|
-
return t.pixelType = this.outputPixelType, t.statistics = this.functionArguments.slopeType !== "percent-rise" ? [{ min: 0, max: 90, avg: 1, stddev: 1 }] : null, t.histograms = null, t.colormap = null, t.attributeTable = null, t.bandCount = 1, this.rasterInfo = t, this.isGCS = ((e = t.spatialReference) == null ? void 0 : e.isGeographic) ?? !1, { success: !0, supportsGPU: !0 };
|
|
2006
|
-
}
|
|
2007
|
-
_processPixels(t) {
|
|
2008
|
-
var f;
|
|
2009
|
-
const e = (f = t.pixelBlocks) == null ? void 0 : f[0];
|
|
2010
|
-
if (e == null)
|
|
2011
|
-
return null;
|
|
2012
|
-
const { zFactor: s, slopeType: o, pixelSizePower: r, pixelSizeFactor: a } = this.functionArguments, { isGCS: n } = this, { extent: u, primaryPixelSizes: l } = t, p = l == null ? void 0 : l[0], h = p ?? (u ? { x: u.width / e.width, y: u.height / e.height } : { x: 1, y: 1 });
|
|
2013
|
-
return Ss(e, { zFactor: s, slopeType: o, pixelSizePower: r, pixelSizeFactor: a, isGCS: n, resolution: h });
|
|
2014
|
-
}
|
|
2015
|
-
_getWebGLParameters() {
|
|
2016
|
-
const { zFactor: t, slopeType: e, pixelSizeFactor: s, pixelSizePower: o } = this.functionArguments;
|
|
2017
|
-
return { zFactor: this.isGCS && t >= 1 ? t * Kt : t, slopeType: e, pixelSizeFactor: s ?? 0, pixelSizePower: o ?? 0 };
|
|
2018
|
-
}
|
|
2019
|
-
};
|
|
2020
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], dt.prototype, "functionName", void 0), c([m({ type: Xr, json: { write: !0, name: "rasterFunctionArguments" } })], dt.prototype, "functionArguments", void 0), c([m()], dt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], dt.prototype, "isGCS", void 0), dt = c([A("esri.layers.support.rasterFunctions.SlopeFunction")], dt);
|
|
2021
|
-
const Jr = dt, ts = new jt({ 1: "min", 2: "max", 3: "mean", 4: "stddev", 5: "median", 6: "majority", 7: "minority" }, { useNumericKeys: !0 });
|
|
2022
|
-
function Kr(i, t) {
|
|
2023
|
-
const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
|
|
2024
|
-
if (e && !a)
|
|
2025
|
-
return void n.set(s);
|
|
2026
|
-
const { statisticsType: u, kernelRows: l, kernelCols: p } = t, h = u === "stddev", f = o * r, g = new Float64Array(f), x = new Float64Array(f), y = new Uint32Array(f);
|
|
2027
|
-
for (let F = 0; F < r; F++) {
|
|
2028
|
-
const P = F * o;
|
|
2029
|
-
let I = 0, k = 0, C = 0;
|
|
2030
|
-
for (let _ = 0; _ < p; _++)
|
|
2031
|
-
a && !a[P + _] || (I += s[P + _], h && (k += s[P + _] ** 2), C++);
|
|
2032
|
-
g[P] = I, x[P] = k, y[P] = C;
|
|
2033
|
-
for (let _ = 1; _ <= o - p; _++) {
|
|
2034
|
-
const W = P + _ - 1, St = W + p;
|
|
2035
|
-
a ? (a[W] && (C--, I -= s[W], h && (k -= s[W] ** 2)), a[St] && (C++, I += s[St], h && (k += s[St] ** 2))) : (I -= s[W], I += s[St], h && (k -= s[W] ** 2, k += s[St] ** 2)), g[P + _] = I, y[P + _] = C, h && (x[P + _] = k);
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
const d = new Float64Array(f), b = new Float64Array(f), v = new Uint32Array(f), R = l * o;
|
|
2039
|
-
for (let F = 0; F <= o - p; F++) {
|
|
2040
|
-
let P = 0, I = 0, k = 0;
|
|
2041
|
-
for (let C = 0; C < l; C++) {
|
|
2042
|
-
const _ = C * o + F;
|
|
2043
|
-
P += g[_], k += y[_], h && (I += x[_]);
|
|
2044
|
-
}
|
|
2045
|
-
d[F] = P, b[F] = I, v[F] = k;
|
|
2046
|
-
for (let C = 1; C <= r - l; C++) {
|
|
2047
|
-
const _ = (C - 1) * o + F, W = _ + R;
|
|
2048
|
-
P -= g[_], P += g[W], k -= y[_], k += y[W], h && (I -= x[_], I += x[W]), d[C * o + F] = P, b[C * o + F] = I, v[C * o + F] = k;
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
const N = Math.floor(l / 2), z = Math.floor(p / 2);
|
|
2052
|
-
for (let F = N; F < r - N; F++) {
|
|
2053
|
-
const P = F * o;
|
|
2054
|
-
for (let I = z; I < o - z; I++) {
|
|
2055
|
-
const k = (F - N) * o + I - z, C = v[k];
|
|
2056
|
-
if (C === 0 || e && (!a || a[P + I]))
|
|
2057
|
-
continue;
|
|
2058
|
-
const _ = d[k] / C, W = h ? Math.sqrt((b[k] - d[k] * _) / C) : _;
|
|
2059
|
-
n[P + I] = W, a && (a[P + I] = 255);
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
function Yr(i, t) {
|
|
2064
|
-
const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
|
|
2065
|
-
if (e && !a)
|
|
2066
|
-
return void n.set(s);
|
|
2067
|
-
const { kernelRows: u, kernelCols: l, statisticsType: p } = t, h = Math.floor(u / 2), f = Math.floor(l / 2), g = p === "min", x = n.slice(), y = new Uint32Array(o * r);
|
|
2068
|
-
for (let d = h; d < r - h; d++) {
|
|
2069
|
-
const b = d * o;
|
|
2070
|
-
for (let v = f; v < o - f; v++) {
|
|
2071
|
-
let R = g ? Number.MAX_VALUE : -Number.MAX_VALUE, N = 0;
|
|
2072
|
-
for (let z = 0; z < u; z++)
|
|
2073
|
-
for (let F = 0; F < l; F++) {
|
|
2074
|
-
const P = b + v + (z - h) * o + F - f;
|
|
2075
|
-
a && !a[P] || (R = g ? Math.min(R, s[P]) : Math.max(R, s[P]), N++);
|
|
2076
|
-
}
|
|
2077
|
-
a ? (x[b + v] = N === 0 ? 0 : R, y[b + v] = N) : n[b + v] = N === 0 ? 0 : R;
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
if (a)
|
|
2081
|
-
for (let d = h; d < r - h; d++) {
|
|
2082
|
-
const b = d * o;
|
|
2083
|
-
for (let v = f; v < o - f; v++)
|
|
2084
|
-
if (y[b + v]) {
|
|
2085
|
-
if (e && a[b + v])
|
|
2086
|
-
continue;
|
|
2087
|
-
n[b + v] = x[b + v], a[b + v] = 255;
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
}
|
|
2091
|
-
function Zr(i, t) {
|
|
2092
|
-
const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
|
|
2093
|
-
if (e && !a)
|
|
2094
|
-
return void n.set(s);
|
|
2095
|
-
const { kernelRows: u, kernelCols: l } = t, p = Math.floor(u / 2), h = Math.floor(l / 2), f = n.slice(), g = new Uint32Array(o * r);
|
|
2096
|
-
for (let x = p; x < r - p; x++) {
|
|
2097
|
-
const y = x * o;
|
|
2098
|
-
for (let d = h; d < o - h; d++) {
|
|
2099
|
-
if (e && a && a[y + d])
|
|
2100
|
-
continue;
|
|
2101
|
-
const b = [];
|
|
2102
|
-
for (let v = 0; v < u; v++)
|
|
2103
|
-
for (let R = 0; R < l; R++) {
|
|
2104
|
-
const N = y + d + (v - p) * o + R - h;
|
|
2105
|
-
a && !a[N] || b.push(s[N]);
|
|
2106
|
-
}
|
|
2107
|
-
b.length && (b.sort((v, R) => v - R), a ? (f[y + d] = b[Math.floor((b.length - 1) / 2)], g[y + d] = b.length) : n[y + d] = b[Math.floor((b.length - 1) / 2)]);
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
if (a)
|
|
2111
|
-
for (let x = p; x < r - p; x++) {
|
|
2112
|
-
const y = x * o;
|
|
2113
|
-
for (let d = h; d < o - h; d++)
|
|
2114
|
-
if (g[y + d]) {
|
|
2115
|
-
if (e && a[y + d])
|
|
2116
|
-
continue;
|
|
2117
|
-
n[y + d] = f[y + d], a[y + d] = 255;
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
function Qr(i, t) {
|
|
2122
|
-
const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
|
|
2123
|
-
if (e && !a)
|
|
2124
|
-
return void n.set(s);
|
|
2125
|
-
const { kernelRows: u, kernelCols: l } = t, p = Math.floor(u / 2), h = Math.floor(l / 2), f = t.statisticsType === "majority", g = u * l, x = n.slice(), y = new Uint32Array(o * r);
|
|
2126
|
-
for (let d = p; d < r - p; d++) {
|
|
2127
|
-
const b = d * o;
|
|
2128
|
-
for (let v = h; v < o - h; v++) {
|
|
2129
|
-
if (e && a && a[b + v])
|
|
2130
|
-
continue;
|
|
2131
|
-
const R = /* @__PURE__ */ new Map();
|
|
2132
|
-
for (let P = 0; P < u; P++)
|
|
2133
|
-
for (let I = 0; I < l; I++) {
|
|
2134
|
-
const k = b + v + (P - p) * o + I - h;
|
|
2135
|
-
if (a && !a[k])
|
|
2136
|
-
continue;
|
|
2137
|
-
const C = s[k];
|
|
2138
|
-
R.set(C, R.has(C) ? R.get(C) + 1 : 1);
|
|
2139
|
-
}
|
|
2140
|
-
if (R.size === 0)
|
|
2141
|
-
continue;
|
|
2142
|
-
let N = 0, z = 0, F = f ? 0 : g + 1;
|
|
2143
|
-
for (const P of R.keys())
|
|
2144
|
-
z = R.get(P), f === z > F && (F = z, N = P);
|
|
2145
|
-
a ? (x[b + v] = N, y[b + v] = R.size) : n[b + v] = N;
|
|
2146
|
-
}
|
|
2147
|
-
}
|
|
2148
|
-
if (a)
|
|
2149
|
-
for (let d = p; d < r - p; d++) {
|
|
2150
|
-
const b = d * o;
|
|
2151
|
-
for (let v = h; v < o - h; v++)
|
|
2152
|
-
if (y[b + v]) {
|
|
2153
|
-
if (e && a[b + v])
|
|
2154
|
-
continue;
|
|
2155
|
-
n[b + v] = x[b + v], a[b + v] = 255;
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
function to(i, t) {
|
|
2160
|
-
const { mask: e } = i, { fillNoDataOnly: s } = t;
|
|
2161
|
-
if (s && !e)
|
|
2162
|
-
return i;
|
|
2163
|
-
const { pixels: o, width: r, height: a, bandMasks: n, pixelType: u } = i, l = o.length, p = r * a, h = [], { kernelRows: f, kernelCols: g, statisticsType: x, mirrorEdges: y } = t;
|
|
2164
|
-
if (s && !e)
|
|
2165
|
-
return i;
|
|
2166
|
-
const d = t.outputPixelType ?? u, b = [];
|
|
2167
|
-
for (let N = 0; N < l; N++) {
|
|
2168
|
-
const z = o[N], F = w.createEmptyBand(d, p);
|
|
2169
|
-
s && F.set(z);
|
|
2170
|
-
const P = (n == null ? void 0 : n[N]) ?? e, I = (P == null ? void 0 : P.slice()) ?? null, k = { band: z, width: r, height: a, mask: I, outBand: F };
|
|
2171
|
-
switch (x) {
|
|
2172
|
-
case "min":
|
|
2173
|
-
case "max":
|
|
2174
|
-
Yr(k, t);
|
|
2175
|
-
break;
|
|
2176
|
-
case "mean":
|
|
2177
|
-
case "stddev":
|
|
2178
|
-
Kr(k, t);
|
|
2179
|
-
break;
|
|
2180
|
-
case "median":
|
|
2181
|
-
Zr(k, t);
|
|
2182
|
-
break;
|
|
2183
|
-
case "majority":
|
|
2184
|
-
case "minority":
|
|
2185
|
-
Qr(k, t);
|
|
2186
|
-
}
|
|
2187
|
-
y && !s && ke(F, r, a, f, g), h.push(F), I && b.push(I);
|
|
2188
|
-
}
|
|
2189
|
-
let v = b[0] ?? e;
|
|
2190
|
-
b.length !== l && (b.length = 0), l > 1 && (n != null && n.length) && (v = w.combineBandMasks(n));
|
|
2191
|
-
const R = new w({ pixelType: d, width: r, height: a, pixels: h, bandMasks: n && b.length ? b : null, mask: v });
|
|
2192
|
-
return R.updateStatistics(), R;
|
|
2193
|
-
}
|
|
2194
|
-
var fe;
|
|
2195
|
-
let gt = fe = class extends D {
|
|
2196
|
-
constructor() {
|
|
2197
|
-
super(...arguments), this.rows = 3, this.cols = 3, this.fillNoDataOnly = !1, this.statisticsType = "min";
|
|
2198
|
-
}
|
|
2199
|
-
clone() {
|
|
2200
|
-
return new fe({ rows: this.rows, cols: this.cols, fillNoDataOnly: this.fillNoDataOnly, statisticsType: this.statisticsType, raster: L(this.raster) });
|
|
2201
|
-
}
|
|
2202
|
-
};
|
|
2203
|
-
c([m({ json: { write: !0, read: { source: ["kernelRows", "rows"], reader: (i, t) => Number(i ?? (t == null ? void 0 : t.kernelRows) ?? 3) } } })], gt.prototype, "rows", void 0), c([m({ json: { write: !0, read: { source: ["kernelCols", "cols"], reader: (i, t) => Number(i ?? (t == null ? void 0 : t.kernelCols) ?? 3) } } })], gt.prototype, "cols", void 0), c([m({ json: { write: !0 } })], gt.prototype, "fillNoDataOnly", void 0), c([m({ json: { read: { source: ["statisticsType", "type"], reader: (i, t) => ts.fromJSON((t == null ? void 0 : t.statisticsType) ?? (t == null ? void 0 : t.type)) ?? "min" }, write: { target: "type" } } }), Y(ts)], gt.prototype, "statisticsType", void 0), gt = fe = c([A("esri.layers.support.rasterFunctions.StatisticsFunctionArguments")], gt);
|
|
2204
|
-
const eo = gt;
|
|
2205
|
-
let Rt = class extends G {
|
|
2206
|
-
constructor() {
|
|
2207
|
-
super(...arguments), this.functionName = "Statistics", this.rasterArgumentNames = ["raster"];
|
|
2208
|
-
}
|
|
2209
|
-
_bindSourceRasters() {
|
|
2210
|
-
const { type: t } = this.functionArguments.toJSON();
|
|
2211
|
-
if (t < 1 || t > 7)
|
|
2212
|
-
return { success: !1, supportsGPU: !1, error: `statistics-function: the given statistics type is not supported ${t}` };
|
|
2213
|
-
const e = this.sourceRasterInfos[0];
|
|
2214
|
-
this.outputPixelType = this._getOutputPixelType(e.pixelType);
|
|
2215
|
-
const s = e.clone();
|
|
2216
|
-
s.pixelType = this.outputPixelType;
|
|
2217
|
-
const { statisticsType: o } = this.functionArguments;
|
|
2218
|
-
return o === "stddev" && this._removeStatsHistColormapVAT(s), this.rasterInfo = s, { success: !0, supportsGPU: s.bandCount <= 3 && t < 5 };
|
|
2219
|
-
}
|
|
2220
|
-
_processPixels(t) {
|
|
2221
|
-
var n;
|
|
2222
|
-
const e = (n = t.pixelBlocks) == null ? void 0 : n[0];
|
|
2223
|
-
if (e == null)
|
|
2224
|
-
return e;
|
|
2225
|
-
const { statisticsType: s, rows: o, cols: r, fillNoDataOnly: a } = this.functionArguments;
|
|
2226
|
-
return to(e, { kernelRows: o, kernelCols: r, fillNoDataOnly: a, outputPixelType: this.outputPixelType, statisticsType: s, mirrorEdges: !0 });
|
|
2227
|
-
}
|
|
2228
|
-
_getWebGLParameters() {
|
|
2229
|
-
const { rows: t, cols: e, statisticsType: s, fillNoDataOnly: o } = this.functionArguments;
|
|
2230
|
-
return { fillNoDataOnly: o, kernelRows: t, kernelCols: e, statisticsType: s, clampRange: vt(this.outputPixelType) };
|
|
2231
|
-
}
|
|
2232
|
-
};
|
|
2233
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], Rt.prototype, "functionName", void 0), c([m({ type: eo, json: { write: !0, name: "rasterFunctionArguments" } })], Rt.prototype, "functionArguments", void 0), c([m()], Rt.prototype, "rasterArgumentNames", void 0), Rt = c([A("esri.layers.support.rasterFunctions.StatisticsFunction")], Rt);
|
|
2234
|
-
const so = Rt;
|
|
2235
|
-
var de;
|
|
2236
|
-
let yt = de = class extends D {
|
|
2237
|
-
constructor() {
|
|
2238
|
-
super(...arguments), this.statistics = null, this.histograms = null;
|
|
2239
|
-
}
|
|
2240
|
-
readStatistics(i, t) {
|
|
2241
|
-
if (!(i != null && i.length))
|
|
2242
|
-
return null;
|
|
2243
|
-
const e = [];
|
|
2244
|
-
return i.forEach((s) => {
|
|
2245
|
-
const o = { min: s.min, max: s.max, avg: s.avg ?? s.mean, stddev: s.stddev ?? s.standardDeviation };
|
|
2246
|
-
e.push(o);
|
|
2247
|
-
}), e;
|
|
2248
|
-
}
|
|
2249
|
-
writeStatistics(i, t, e) {
|
|
2250
|
-
if (!(i != null && i.length))
|
|
2251
|
-
return;
|
|
2252
|
-
const s = [];
|
|
2253
|
-
i.forEach((o) => {
|
|
2254
|
-
const r = { ...o, mean: o.avg, standardDeviation: o.stddev };
|
|
2255
|
-
delete r.avg, delete r.stddev, s.push(r);
|
|
2256
|
-
}), t[e] = s;
|
|
2257
|
-
}
|
|
2258
|
-
clone() {
|
|
2259
|
-
return new de({ statistics: L(this.statistics), histograms: L(this.histograms) });
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
|
-
c([m({ json: { write: !0 } })], yt.prototype, "statistics", void 0), c([Ct("statistics")], yt.prototype, "readStatistics", null), c([_t("statistics")], yt.prototype, "writeStatistics", null), c([m({ json: { write: !0 } })], yt.prototype, "histograms", void 0), yt = de = c([A("esri.layers.support.rasterFunctions.StatisticsHistogramFunctionArguments")], yt);
|
|
2263
|
-
const no = yt;
|
|
2264
|
-
let et = class extends G {
|
|
2265
|
-
constructor() {
|
|
2266
|
-
super(...arguments), this.functionName = "StatisticsHistogram", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
|
|
2267
|
-
}
|
|
2268
|
-
_bindSourceRasters() {
|
|
2269
|
-
const t = this.sourceRasterInfos[0];
|
|
2270
|
-
this.outputPixelType = this._getOutputPixelType("u8");
|
|
2271
|
-
const e = t.clone(), { statistics: s, histograms: o } = this.functionArguments;
|
|
2272
|
-
return o && (e.histograms = o), s && (e.statistics = s), this.rasterInfo = e, { success: !0, supportsGPU: !0 };
|
|
2273
|
-
}
|
|
2274
|
-
_processPixels(t) {
|
|
2275
|
-
var e;
|
|
2276
|
-
return (e = t.pixelBlocks) == null ? void 0 : e[0];
|
|
2277
|
-
}
|
|
2278
|
-
};
|
|
2279
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], et.prototype, "functionName", void 0), c([m({ type: no, json: { write: !0, name: "rasterFunctionArguments" } })], et.prototype, "functionArguments", void 0), c([m()], et.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], et.prototype, "indexedColormap", void 0), c([m()], et.prototype, "isNoopProcess", void 0), et = c([A("esri.layers.support.rasterFunctions.StatisticsHistogramFunction")], et);
|
|
2280
|
-
const ro = et;
|
|
2281
|
-
var ge;
|
|
2282
|
-
const oo = new jt({ 0: "none", 3: "standard-deviation", 4: "histogram-equalization", 5: "min-max", 6: "percent-clip", 9: "sigmoid" }, { useNumericKeys: !0 });
|
|
2283
|
-
let V = ge = class extends D {
|
|
2284
|
-
constructor() {
|
|
2285
|
-
super(...arguments), this.computeGamma = !1, this.dynamicRangeAdjustment = !1, this.gamma = [], this.histograms = null, this.statistics = null, this.stretchType = "none", this.useGamma = !1;
|
|
2286
|
-
}
|
|
2287
|
-
writeStatistics(i, t, e) {
|
|
2288
|
-
i != null && i.length && (Array.isArray(i[0]) || (i = i.map((s) => [s.min, s.max, s.avg, s.stddev])), t[e] = i);
|
|
2289
|
-
}
|
|
2290
|
-
clone() {
|
|
2291
|
-
return new ge({ stretchType: this.stretchType, outputMin: this.outputMin, outputMax: this.outputMax, useGamma: this.useGamma, computeGamma: this.computeGamma, statistics: L(this.statistics), gamma: L(this.gamma), sigmoidStrengthLevel: this.sigmoidStrengthLevel, numberOfStandardDeviations: this.numberOfStandardDeviations, minPercent: this.minPercent, maxPercent: this.maxPercent, histograms: L(this.histograms), dynamicRangeAdjustment: this.dynamicRangeAdjustment, raster: this.raster });
|
|
2292
|
-
}
|
|
2293
|
-
};
|
|
2294
|
-
c([m({ type: Boolean, json: { write: !0 } })], V.prototype, "computeGamma", void 0), c([m({ type: Boolean, json: { name: "dra", write: !0 } })], V.prototype, "dynamicRangeAdjustment", void 0), c([m({ type: [Number], json: { write: !0 } })], V.prototype, "gamma", void 0), c([m()], V.prototype, "histograms", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "maxPercent", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "minPercent", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "numberOfStandardDeviations", void 0), c([m({ type: Number, json: { name: "max", write: !0 } })], V.prototype, "outputMax", void 0), c([m({ type: Number, json: { name: "min", write: !0 } })], V.prototype, "outputMin", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "sigmoidStrengthLevel", void 0), c([m({ json: { type: [[Number]], write: !0 } })], V.prototype, "statistics", void 0), c([_t("statistics")], V.prototype, "writeStatistics", null), c([Y(oo)], V.prototype, "stretchType", void 0), c([m({ type: Boolean, json: { write: !0 } })], V.prototype, "useGamma", void 0), V = ge = c([A("esri.layers.support.rasterFunctions.StretchFunctionArguments")], V);
|
|
2295
|
-
const io = V;
|
|
2296
|
-
let st = class extends G {
|
|
2297
|
-
constructor() {
|
|
2298
|
-
super(...arguments), this.functionName = "Stretch", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.lookup = null, this.cutOffs = null;
|
|
2299
|
-
}
|
|
2300
|
-
_bindSourceRasters() {
|
|
2301
|
-
this.lookup = null, this.cutOffs = null;
|
|
2302
|
-
const t = this.sourceRasterInfos[0], { pixelType: e } = t, { functionArguments: s } = this, { dynamicRangeAdjustment: o, gamma: r, useGamma: a } = s;
|
|
2303
|
-
if (!o && ["u8", "u16", "s8", "s16"].includes(e)) {
|
|
2304
|
-
const u = Jt(s.toJSON(), { rasterInfo: t }), l = nt(this.outputPixelType) ? "round" : "float";
|
|
2305
|
-
this.lookup = Ms({ pixelType: e, ...u, gamma: a ? r : null, rounding: l }), this.cutOffs = u;
|
|
2306
|
-
} else
|
|
2307
|
-
o || (this.cutOffs = Jt(s.toJSON(), { rasterInfo: t }));
|
|
2308
|
-
this.outputPixelType = this._getOutputPixelType(e);
|
|
2309
|
-
const n = t.clone();
|
|
2310
|
-
return n.pixelType = this.outputPixelType, this._removeStatsHistColormapVAT(n), this.outputPixelType === "u8" && (n.keyProperties.DataType = "processed"), this.rasterInfo = n, { success: !0, supportsGPU: !o };
|
|
2311
|
-
}
|
|
2312
|
-
_processPixels(t) {
|
|
2313
|
-
var n;
|
|
2314
|
-
const e = (n = t.pixelBlocks) == null ? void 0 : n[0];
|
|
2315
|
-
if (e == null)
|
|
2316
|
-
return e;
|
|
2317
|
-
const { lookup: s } = this;
|
|
2318
|
-
if (s)
|
|
2319
|
-
return Fe(e, { ...s, outputPixelType: this.rasterInfo.pixelType });
|
|
2320
|
-
const { functionArguments: o } = this, r = this.cutOffs || Jt(o.toJSON(), { rasterInfo: this.sourceRasterInfos[0], pixelBlock: e }), a = o.useGamma ? o.gamma : null;
|
|
2321
|
-
return Os(e, { ...r, gamma: a, outputPixelType: this.outputPixelType });
|
|
2322
|
-
}
|
|
2323
|
-
_getWebGLParameters() {
|
|
2324
|
-
const { outputMin: t = 0, outputMax: e = 255, gamma: s, useGamma: o } = this.functionArguments, r = this.rasterInfo.bandCount >= 2 ? 3 : 1, a = o && (s != null && s.length) ? Ds(r, s) : [1, 1, 1], { minCutOff: n, maxCutOff: u } = this.cutOffs ?? { minCutOff: [0, 0, 0], maxCutOff: [255, 255, 255] };
|
|
2325
|
-
n.length === 1 && (n[1] = n[2] = n[0], u[1] = u[2] = u[0]);
|
|
2326
|
-
const l = new Float32Array(r);
|
|
2327
|
-
let p;
|
|
2328
|
-
for (p = 0; p < r; p++)
|
|
2329
|
-
l[p] = (e - t) / (u[p] - n[p]);
|
|
2330
|
-
const h = nt(this.outputPixelType);
|
|
2331
|
-
return { bandCount: r, outMin: t, outMax: e, minCutOff: n, maxCutOff: u, factor: l, useGamma: o, gamma: o && s ? s : [1, 1, 1], gammaCorrection: o && a ? a : [1, 1, 1], stretchType: this.functionArguments.stretchType, isOutputRounded: h, type: "stretch" };
|
|
2332
|
-
}
|
|
2333
|
-
};
|
|
2334
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], st.prototype, "functionName", void 0), c([m({ type: io, json: { write: !0, name: "rasterFunctionArguments" } })], st.prototype, "functionArguments", void 0), c([m()], st.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], st.prototype, "lookup", void 0), c([m({ json: { write: !0 } })], st.prototype, "cutOffs", void 0), st = c([A("esri.layers.support.rasterFunctions.StretchFunction")], st);
|
|
2335
|
-
const ao = st;
|
|
2336
|
-
var ye;
|
|
2337
|
-
let Wt = ye = class extends D {
|
|
2338
|
-
constructor() {
|
|
2339
|
-
super(...arguments), this.attributeTableAsRecordSet = null;
|
|
2340
|
-
}
|
|
2341
|
-
clone() {
|
|
2342
|
-
return new ye({ attributeTableAsRecordSet: L(this.attributeTableAsRecordSet) });
|
|
2343
|
-
}
|
|
2344
|
-
};
|
|
2345
|
-
c([m({ json: { write: !0 } })], Wt.prototype, "attributeTableAsRecordSet", void 0), Wt = ye = c([A("esri.layers.support.rasterFunctions.TableFunctionArguments")], Wt);
|
|
2346
|
-
const uo = Wt;
|
|
2347
|
-
let xt = class extends G {
|
|
2348
|
-
constructor() {
|
|
2349
|
-
super(...arguments), this.functionName = "Table", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
|
|
2350
|
-
}
|
|
2351
|
-
_bindSourceRasters() {
|
|
2352
|
-
const t = this.sourceRasterInfos[0];
|
|
2353
|
-
if (t.bandCount > 1 || t.pixelType.startsWith("f"))
|
|
2354
|
-
return { success: !1, supportsGPU: !1, error: "table-function: Source data must be single band and integer pixel type." };
|
|
2355
|
-
const { attributeTableAsRecordSet: e } = this.functionArguments;
|
|
2356
|
-
if (!e)
|
|
2357
|
-
return { success: !1, supportsGPU: !1, error: "table-function: Missing attributeTableAsRecordSet argument." };
|
|
2358
|
-
this.outputPixelType = this._getOutputPixelType(t.pixelType);
|
|
2359
|
-
const s = t.clone();
|
|
2360
|
-
return s.pixelType = this.outputPixelType, s.bandCount = 1, s.dataType !== "thematic" && (s.keyProperties = s.keyProperties ? { ...s.keyProperties, DataType: "thematic" } : { DataType: "thematic" }), this.rasterInfo = s, { success: !0, supportsGPU: !0 };
|
|
2361
|
-
}
|
|
2362
|
-
_processPixels(t) {
|
|
2363
|
-
var e;
|
|
2364
|
-
return (e = t.pixelBlocks) == null ? void 0 : e[0];
|
|
2365
|
-
}
|
|
2366
|
-
};
|
|
2367
|
-
c([m({ json: { write: !0, name: "rasterFunction" } })], xt.prototype, "functionName", void 0), c([m({ type: uo, json: { write: !0, name: "rasterFunctionArguments" } })], xt.prototype, "functionArguments", void 0), c([m()], xt.prototype, "rasterArgumentNames", void 0), c([m()], xt.prototype, "isNoopProcess", void 0), xt = c([A("esri.layers.support.rasterFunctions.TableFunction")], xt);
|
|
2368
|
-
const lo = xt, M = /* @__PURE__ */ new Map();
|
|
2369
|
-
function co(i, t) {
|
|
2370
|
-
const { rasterFunctionArguments: e } = i;
|
|
2371
|
-
e && (e.rasters || [e.raster]).forEach((s) => {
|
|
2372
|
-
s && typeof s != "number" && (typeof s == "string" ? s.startsWith("http") && (t.includes(s) || t.push(s)) : "rasterFunctionArguments" in s && co(s, t));
|
|
2373
|
-
});
|
|
2374
|
-
}
|
|
2375
|
-
function Jo(i, t) {
|
|
2376
|
-
if (t = t ?? {}, "function" in (i = L(i)) && "arguments" in i && i.arguments) {
|
|
2377
|
-
const e = gs(i, /* @__PURE__ */ new Map(), t);
|
|
2378
|
-
if (we(e), !e.renderingRule)
|
|
2379
|
-
throw new Bt("raster-function-helper", "Unsupported raster function json.");
|
|
2380
|
-
i = e.renderingRule;
|
|
2381
|
-
}
|
|
2382
|
-
if ("rasterFunction" in i)
|
|
2383
|
-
return fs(i = xe(i), t);
|
|
2384
|
-
throw new Bt("raster-function-helper", "unsupported raster function json.");
|
|
2385
|
-
}
|
|
2386
|
-
function po(i, t) {
|
|
2387
|
-
return t[0] === "rasters" && Array.isArray(i.rasters) ? i.rasters : t.map((e) => i[e]);
|
|
2388
|
-
}
|
|
2389
|
-
function es(i) {
|
|
2390
|
-
return !!(i && typeof i == "object" && i.rasterFunction && i.rasterFunctionArguments);
|
|
2391
|
-
}
|
|
2392
|
-
function xe(i) {
|
|
2393
|
-
var o;
|
|
2394
|
-
const { rasterFunction: t, rasterFunctionArguments: e } = i, s = {};
|
|
2395
|
-
for (const r in e) {
|
|
2396
|
-
let a = e[r];
|
|
2397
|
-
const n = r.toLowerCase();
|
|
2398
|
-
if (n === "rasters" && Array.isArray(a))
|
|
2399
|
-
s.rasters = a.map((u) => es(u) ? xe(u) : u);
|
|
2400
|
-
else
|
|
2401
|
-
switch (es(a) && (a = xe(a)), n) {
|
|
2402
|
-
case "dra":
|
|
2403
|
-
s.dra = a;
|
|
2404
|
-
break;
|
|
2405
|
-
case "pspower":
|
|
2406
|
-
s.psPower = a;
|
|
2407
|
-
break;
|
|
2408
|
-
case "pszfactor":
|
|
2409
|
-
s.psZFactor = a;
|
|
2410
|
-
break;
|
|
2411
|
-
case "bandids":
|
|
2412
|
-
s.bandIds = a;
|
|
2413
|
-
break;
|
|
2414
|
-
default:
|
|
2415
|
-
s[r[0].toLowerCase() + r.slice(1)] = a;
|
|
2416
|
-
}
|
|
2417
|
-
}
|
|
2418
|
-
return t !== "Local" || (o = s.rasters) != null && o.length || (s.rasters = ["$$"]), { ...i, rasterFunctionArguments: s };
|
|
2419
|
-
}
|
|
2420
|
-
function fs(i, t) {
|
|
2421
|
-
var f, g;
|
|
2422
|
-
const { rasterFunction: e, rasterFunctionArguments: s } = i, o = (f = i.outputPixelType) == null ? void 0 : f.toLowerCase();
|
|
2423
|
-
if (e == null || !M.has(e))
|
|
2424
|
-
throw new Bt("raster-function-helper", `unsupported raster function: ${e}`);
|
|
2425
|
-
const r = M.get(e), a = (typeof r.ctor == "function" ? r.ctor : r.ctor.default).fromJSON({ ...i, outputPixelType: o }), { rasterArgumentNames: n } = a, u = [], l = po(s, n), p = n[0] === "rasters", h = [];
|
|
2426
|
-
for (let x = 0; x < l.length; x++) {
|
|
2427
|
-
const y = l[x];
|
|
2428
|
-
let d;
|
|
2429
|
-
y == null || typeof y == "string" && y.startsWith("$") ? u.push(t == null ? void 0 : t.raster) : typeof y == "string" ? t[y] && u.push(t[y]) : typeof y != "number" && "rasterFunction" in y && (d = fs(y, t), p || (a.functionArguments[n[x]] = d), u.push(d)), p && h.push(d ?? y);
|
|
2430
|
-
}
|
|
2431
|
-
if (p && (a.functionArguments.rasters = h), t) {
|
|
2432
|
-
a.sourceRasters = u;
|
|
2433
|
-
const x = (g = t.raster) == null ? void 0 : g.url;
|
|
2434
|
-
x && (a.mainPrimaryRasterId = x);
|
|
2435
|
-
}
|
|
2436
|
-
return a;
|
|
2437
|
-
}
|
|
2438
|
-
function ds(i, t) {
|
|
2439
|
-
if (i && t)
|
|
2440
|
-
for (const e in i) {
|
|
2441
|
-
const s = i[e];
|
|
2442
|
-
s && typeof s == "object" && "type" in s && (s.type === "RasterFunctionTemplate" ? ds(s.arguments, t) : s.type === "RasterFunctionVariable" && t[s.name] != null && (s.value = t[s.name]));
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
function ve(i, t) {
|
|
2446
|
-
var o;
|
|
2447
|
-
if (!i || typeof i != "object")
|
|
2448
|
-
return i;
|
|
2449
|
-
const { value: e } = i;
|
|
2450
|
-
if (!e || typeof e != "object")
|
|
2451
|
-
return i.isDataset ? "$$" : e;
|
|
2452
|
-
if (Array.isArray(e))
|
|
2453
|
-
return e.length === 0 ? [] : e.map((r) => typeof r == "object" && r.type === "RasterFunctionVariable" ? ve(r, t) : r);
|
|
2454
|
-
if ("value" in e && ["number", "string", "boolean"].includes(typeof e.value))
|
|
2455
|
-
return e.value;
|
|
2456
|
-
if (i.isDataset && e.type !== "Scalar")
|
|
2457
|
-
return "$$";
|
|
2458
|
-
if (!("type" in e))
|
|
2459
|
-
return e;
|
|
2460
|
-
let s = e;
|
|
2461
|
-
switch (e.type) {
|
|
2462
|
-
case "Scalar":
|
|
2463
|
-
s = e.value;
|
|
2464
|
-
break;
|
|
2465
|
-
case "AlgorithmicColorRamp":
|
|
2466
|
-
s = ss(e);
|
|
2467
|
-
break;
|
|
2468
|
-
case "MultiPartColorRamp":
|
|
2469
|
-
s = { type: "multipart", colorRamps: e.ArrayOfColorRamp.map(ss) };
|
|
2470
|
-
break;
|
|
2471
|
-
case "ArgumentArray":
|
|
2472
|
-
if ((o = e.elements) != null && o.length && e.elements[0].type !== "RasterStatistics") {
|
|
2473
|
-
const r = [];
|
|
2474
|
-
for (let a = 0; a < e.elements.length; a++) {
|
|
2475
|
-
const n = e.elements[a], { type: u } = n;
|
|
2476
|
-
if (u)
|
|
2477
|
-
if (u === "RasterFunctionTemplate") {
|
|
2478
|
-
const { renderingRule: l } = gs(n, t);
|
|
2479
|
-
r.push(l), n._object_id != null && t.set(n._object_id, l);
|
|
2480
|
-
} else {
|
|
2481
|
-
if (u !== "RasterFunctionVariable")
|
|
2482
|
-
throw new Bt("raster-function-helper", "unsupported raster function json.");
|
|
2483
|
-
{
|
|
2484
|
-
const l = ve(n, t);
|
|
2485
|
-
r.push(l), n._object_id != null && t.set(n._object_id, l);
|
|
2486
|
-
}
|
|
2487
|
-
}
|
|
2488
|
-
else
|
|
2489
|
-
r.push(n);
|
|
2490
|
-
}
|
|
2491
|
-
s = r;
|
|
2492
|
-
} else
|
|
2493
|
-
s = e.elements;
|
|
2494
|
-
}
|
|
2495
|
-
return e._object_id != null && t.set(e._object_id, s), s;
|
|
2496
|
-
}
|
|
2497
|
-
function ss(i) {
|
|
2498
|
-
const t = i.algorithm ?? "esriHSVAlgorithm";
|
|
2499
|
-
let { FromColor: e, ToColor: s } = i;
|
|
2500
|
-
if (!Array.isArray(e)) {
|
|
2501
|
-
const { r: o, g: r, b: a } = _e({ h: e.Hue, s: e.Saturation, v: e.Value });
|
|
2502
|
-
e = [o, r, a, e.AlphaValue];
|
|
2503
|
-
}
|
|
2504
|
-
if (!Array.isArray(s)) {
|
|
2505
|
-
const { r: o, g: r, b: a } = _e({ h: s.Hue, s: s.Saturation, v: s.Value });
|
|
2506
|
-
s = [o, r, a, s.AlphaValue];
|
|
2507
|
-
}
|
|
2508
|
-
return { type: "algorithmic", algorithm: t, fromColor: e, toColor: s };
|
|
2509
|
-
}
|
|
2510
|
-
function gs(i, t, e) {
|
|
2511
|
-
e && ds(i, e);
|
|
2512
|
-
const s = { renderingRule: {}, templates: t };
|
|
2513
|
-
return ys(i, s), s;
|
|
2514
|
-
}
|
|
2515
|
-
function ys(i, t) {
|
|
2516
|
-
if (!i || !t.renderingRule)
|
|
2517
|
-
return;
|
|
2518
|
-
const { renderingRule: e, templates: s } = t, { function: o, arguments: r, _object_id: a } = i;
|
|
2519
|
-
if (!o || !r)
|
|
2520
|
-
return;
|
|
2521
|
-
a != null && s.set(a, e), e.rasterFunction = o.type.replace("Function", ""), e.outputPixelType = o.pixelType;
|
|
2522
|
-
const n = {};
|
|
2523
|
-
e.rasterFunctionArguments = n;
|
|
2524
|
-
for (const u in r) {
|
|
2525
|
-
if (u === "type" || u === "object_id" || u === "_object_ref_id")
|
|
2526
|
-
continue;
|
|
2527
|
-
const l = r[u];
|
|
2528
|
-
l && typeof l == "object" && "type" in l && (l.type === "RasterFunctionTemplate" || l.type === "RasterFunctionVariable") ? (l.type === "RasterFunctionVariable" ? n[u] = ve(l, s) : (e.rasterFunctionArguments[u] = {}, ys(l, { renderingRule: e.rasterFunctionArguments[u], templates: s })), l._object_id != null && s.set(l._object_id, n[u])) : n[u] = l;
|
|
2529
|
-
}
|
|
2530
|
-
switch (n.DEM && !n.Raster && (n.Raster = n.DEM, delete n.DEM), e.rasterFunction) {
|
|
2531
|
-
case "Stretch":
|
|
2532
|
-
ho(n);
|
|
2533
|
-
break;
|
|
2534
|
-
case "Colormap":
|
|
2535
|
-
mo(n);
|
|
2536
|
-
break;
|
|
2537
|
-
case "Convolution":
|
|
2538
|
-
fo(n);
|
|
2539
|
-
break;
|
|
2540
|
-
case "Mask":
|
|
2541
|
-
go(n);
|
|
2542
|
-
}
|
|
2543
|
-
}
|
|
2544
|
-
function we(i) {
|
|
2545
|
-
const { renderingRule: t, templates: e } = i;
|
|
2546
|
-
if (typeof t != "object" || !(t != null && t.rasterFunctionArguments) || !e.size)
|
|
2547
|
-
return;
|
|
2548
|
-
const { rasterFunctionArguments: s } = t;
|
|
2549
|
-
for (const o in s) {
|
|
2550
|
-
const r = s[o], a = o === "_object_ref_id" ? r : r && typeof r == "object" && "_object_ref_id" in r ? r._object_ref_id : null;
|
|
2551
|
-
if (a == null)
|
|
2552
|
-
r && typeof r == "object" && (r.rasterFunctionArguments && we({ renderingRule: r, templates: e }), Array.isArray(r) && r.forEach((n, u) => {
|
|
2553
|
-
if (typeof n == "object")
|
|
2554
|
-
if (n._object_ref_id != null) {
|
|
2555
|
-
if (!e.has(n._object_ref_id))
|
|
2556
|
-
throw new Bt("raster-function-helper", `unsupported raster function json. _object_ref_id: ${r} does not exist`);
|
|
2557
|
-
const l = e.get(a);
|
|
2558
|
-
l && typeof l == "object" ? Object.assign(n, l) : r[u] = l;
|
|
2559
|
-
} else
|
|
2560
|
-
we({ renderingRule: n, templates: e });
|
|
2561
|
-
}));
|
|
2562
|
-
else {
|
|
2563
|
-
if (!e.has(a))
|
|
2564
|
-
throw new Bt("raster-function-helper", `unsupported raster function json. _object_ref_id: ${a} does not exist`);
|
|
2565
|
-
const n = e.get(a);
|
|
2566
|
-
o !== "_object_ref_id" ? s[o] = n : n && typeof n == "object" && Object.assign(s, n);
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
function ho(i) {
|
|
2571
|
-
var t;
|
|
2572
|
-
(t = i.Statistics) != null && t.length && typeof i.Statistics == "object" && (i.Statistics = i.Statistics.map((e) => [e.min, e.max, e.mean, e.standardDeviation])), i.NumberOfStandardDeviation != null && (i.NumberOfStandardDeviations = i.NumberOfStandardDeviation, delete i.NumberOfStandardDeviation);
|
|
2573
|
-
}
|
|
2574
|
-
function mo(i) {
|
|
2575
|
-
var t, e;
|
|
2576
|
-
((e = (t = i.ColorRamp) == null ? void 0 : t.type) == null ? void 0 : e.toLowerCase()) === "randomcolorramp" && (delete i.ColorRamp, i.ColormapName = "Random"), i.ColorSchemeType === 0 && delete i.ColorRamp;
|
|
2577
|
-
}
|
|
2578
|
-
function fo(i) {
|
|
2579
|
-
i.ConvolutionType != null && (i.Type = i.ConvolutionType, delete i.ConvolutionType);
|
|
2580
|
-
}
|
|
2581
|
-
function go(i) {
|
|
2582
|
-
var t;
|
|
2583
|
-
(t = i.NoDataValues) != null && t.length && typeof i.NoDataValues[0] == "string" && (i.NoDataValues = i.NoDataValues.filter((e) => e !== "").map((e) => Number(e)));
|
|
2584
|
-
}
|
|
2585
|
-
M.set("Arithmetic", { desc: "Arithmetic Function", ctor: Bn, rasterArgumentNames: ["rasters"] }), M.set("Aspect", { desc: "Aspect Function", ctor: Sn, rasterArgumentNames: ["raster"] }), M.set("BandArithmetic", { desc: "Band Arithmetic Function", ctor: ur, rasterArgumentNames: ["raster"] }), M.set("Colormap", { desc: "Colormap Function", ctor: wr, rasterArgumentNames: ["raster"] }), M.set("CompositeBand", { desc: "CompositeBand Function", ctor: Ar, rasterArgumentNames: ["rasters"] }), M.set("Convolution", { desc: "Convolution Function", ctor: Cr, rasterArgumentNames: ["raster"] }), M.set("ContrastBrightness", { desc: "Contrast Brightness Function", ctor: Pr, rasterArgumentNames: ["raster"] }), M.set("ExtractBand", { desc: "ExtractBand Function", ctor: Sr, rasterArgumentNames: ["raster"] }), M.set("Curvature", { desc: "Curvature Function", ctor: Br, rasterArgumentNames: ["raster"] }), M.set("Grayscale", { desc: "Grayscale Function", ctor: Dr, rasterArgumentNames: ["raster"] }), M.set("Clip", { desc: "Clip Function", ctor: cr, rasterArgumentNames: ["raster"] }), M.set("Local", { desc: "Local Function", ctor: zr, rasterArgumentNames: ["rasters"] }), M.set("Mask", { desc: "Mask Function", ctor: Vr, rasterArgumentNames: ["raster"] }), M.set("NDVI", { desc: "NDVI Function", ctor: Lr, rasterArgumentNames: ["raster"] }), M.set("Remap", { desc: "Remap Function", ctor: qr, rasterArgumentNames: ["raster"] }), M.set("Slope", { desc: "Slope Function", ctor: Jr, rasterArgumentNames: ["raster"] }), M.set("Statistics", { desc: "Focal Statistics Function", ctor: so, rasterArgumentNames: ["raster"] }), M.set("StatisticsHistogram", { desc: "Statistics Histogram Function", ctor: ro, rasterArgumentNames: ["raster"] }), M.set("Stretch", { desc: "Stretch Function", ctor: ao, rasterArgumentNames: ["raster"] }), M.set("Table", { desc: "Attribute Table Function", ctor: lo, rasterArgumentNames: ["raster"] });
|
|
2586
|
-
let zt = class extends $e {
|
|
2587
|
-
get affectsPixelSize() {
|
|
2588
|
-
return !1;
|
|
2589
|
-
}
|
|
2590
|
-
forwardTransform(i) {
|
|
2591
|
-
return i;
|
|
2592
|
-
}
|
|
2593
|
-
inverseTransform(i) {
|
|
2594
|
-
return i;
|
|
2595
|
-
}
|
|
2596
|
-
};
|
|
2597
|
-
c([m()], zt.prototype, "affectsPixelSize", null), c([m({ json: { write: !0 } })], zt.prototype, "spatialReference", void 0), zt = c([A("esri.layers.support.rasterTransforms.BaseRasterTransform")], zt);
|
|
2598
|
-
const Ce = zt;
|
|
2599
|
-
var be;
|
|
2600
|
-
let Et = be = class extends Ce {
|
|
2601
|
-
constructor() {
|
|
2602
|
-
super(...arguments), this.type = "gcs-shift", this.tolerance = 1e-8;
|
|
2603
|
-
}
|
|
2604
|
-
forwardTransform(i) {
|
|
2605
|
-
return (i = i.clone()).type === "point" ? (i.x > 180 + this.tolerance && (i.x -= 360), i) : (i.xmin >= 180 - this.tolerance ? (i.xmax -= 360, i.xmin -= 360) : i.xmax > 180 + this.tolerance && (i.xmin = -180, i.xmax = 180), i);
|
|
2606
|
-
}
|
|
2607
|
-
inverseTransform(i) {
|
|
2608
|
-
return (i = i.clone()).type === "point" ? (i.x < -this.tolerance && (i.x += 360), i) : (i.xmin < -this.tolerance && (i.xmin += 360, i.xmax += 360), i);
|
|
2609
|
-
}
|
|
2610
|
-
clone() {
|
|
2611
|
-
return new be({ tolerance: this.tolerance });
|
|
2612
|
-
}
|
|
2613
|
-
};
|
|
2614
|
-
c([Y({ GCSShiftXform: "gcs-shift" })], Et.prototype, "type", void 0), c([m()], Et.prototype, "tolerance", void 0), Et = be = c([A("esri.layers.support.rasterTransforms.GCSShiftTransform")], Et);
|
|
2615
|
-
const yo = Et;
|
|
2616
|
-
var Ae;
|
|
2617
|
-
let qt = Ae = class extends Ce {
|
|
2618
|
-
constructor() {
|
|
2619
|
-
super(...arguments), this.type = "identity";
|
|
2620
|
-
}
|
|
2621
|
-
clone() {
|
|
2622
|
-
return new Ae();
|
|
2623
|
-
}
|
|
2624
|
-
};
|
|
2625
|
-
c([Y({ IdentityXform: "identity" })], qt.prototype, "type", void 0), qt = Ae = c([A("esri.layers.support.rasterTransforms.IdentityTransform")], qt);
|
|
2626
|
-
const xo = qt;
|
|
2627
|
-
var Te;
|
|
2628
|
-
function Pe(i, t, e) {
|
|
2629
|
-
const { x: s, y: o } = t;
|
|
2630
|
-
if (e < 2)
|
|
2631
|
-
return { x: i[0] + s * i[2] + o * i[4], y: i[1] + s * i[3] + o * i[5] };
|
|
2632
|
-
if (e === 2) {
|
|
2633
|
-
const f = s * s, g = o * o, x = s * o;
|
|
2634
|
-
return { x: i[0] + s * i[2] + o * i[4] + f * i[6] + x * i[8] + g * i[10], y: i[1] + s * i[3] + o * i[5] + f * i[7] + x * i[9] + g * i[11] };
|
|
2635
|
-
}
|
|
2636
|
-
const r = s * s, a = o * o, n = s * o, u = r * s, l = r * o, p = s * a, h = o * a;
|
|
2637
|
-
return { x: i[0] + s * i[2] + o * i[4] + r * i[6] + n * i[8] + a * i[10] + u * i[12] + l * i[14] + p * i[16] + h * i[18], y: i[1] + s * i[3] + o * i[5] + r * i[7] + n * i[9] + a * i[11] + u * i[13] + l * i[15] + p * i[17] + h * i[19] };
|
|
2638
|
-
}
|
|
2639
|
-
function ns(i, t, e) {
|
|
2640
|
-
const { xmin: s, ymin: o, xmax: r, ymax: a, spatialReference: n } = t;
|
|
2641
|
-
let u = [];
|
|
2642
|
-
if (e < 2)
|
|
2643
|
-
u.push({ x: s, y: a }), u.push({ x: r, y: a }), u.push({ x: s, y: o }), u.push({ x: r, y: o });
|
|
2644
|
-
else {
|
|
2645
|
-
let h = 10;
|
|
2646
|
-
for (let f = 0; f < h; f++)
|
|
2647
|
-
u.push({ x: s, y: o + (a - o) * f / (h - 1) }), u.push({ x: r, y: o + (a - o) * f / (h - 1) });
|
|
2648
|
-
h = 8;
|
|
2649
|
-
for (let f = 1; f <= h; f++)
|
|
2650
|
-
u.push({ x: s + (r - s) * f / h, y: o }), u.push({ x: s + (r - s) * f / h, y: a });
|
|
2651
|
-
}
|
|
2652
|
-
u = u.map((h) => Pe(i, h, e));
|
|
2653
|
-
const l = u.map((h) => h.x), p = u.map((h) => h.y);
|
|
2654
|
-
return new bs({ xmin: Math.min.apply(null, l), xmax: Math.max.apply(null, l), ymin: Math.min.apply(null, p), ymax: Math.max.apply(null, p), spatialReference: n });
|
|
2655
|
-
}
|
|
2656
|
-
function vo(i) {
|
|
2657
|
-
const [t, e, s, o, r, a] = i, n = s * a - r * o, u = r * o - s * a;
|
|
2658
|
-
return [(r * e - t * a) / n, (s * e - t * o) / u, a / n, o / u, -r / n, -s / u];
|
|
2659
|
-
}
|
|
2660
|
-
let q = Te = class extends Ce {
|
|
2661
|
-
constructor() {
|
|
2662
|
-
super(...arguments), this.polynomialOrder = 1, this.type = "polynomial";
|
|
2663
|
-
}
|
|
2664
|
-
readForwardCoefficients(i, t) {
|
|
2665
|
-
const { coeffX: e, coeffY: s } = t;
|
|
2666
|
-
if (!(e != null && e.length) || !(s != null && s.length) || e.length !== s.length)
|
|
2667
|
-
return null;
|
|
2668
|
-
const o = [];
|
|
2669
|
-
for (let r = 0; r < e.length; r++)
|
|
2670
|
-
o.push(e[r]), o.push(s[r]);
|
|
2671
|
-
return o;
|
|
2672
|
-
}
|
|
2673
|
-
writeForwardCoefficients(i, t, e) {
|
|
2674
|
-
const s = [], o = [];
|
|
2675
|
-
for (let r = 0; r < (i == null ? void 0 : i.length); r++)
|
|
2676
|
-
r % 2 == 0 ? s.push(i[r]) : o.push(i[r]);
|
|
2677
|
-
t.coeffX = s, t.coeffY = o;
|
|
2678
|
-
}
|
|
2679
|
-
get inverseCoefficients() {
|
|
2680
|
-
let i = this._get("inverseCoefficients");
|
|
2681
|
-
const t = this._get("forwardCoefficients");
|
|
2682
|
-
return !i && t && this.polynomialOrder < 2 && (i = vo(t)), i;
|
|
2683
|
-
}
|
|
2684
|
-
set inverseCoefficients(i) {
|
|
2685
|
-
this._set("inverseCoefficients", i);
|
|
2686
|
-
}
|
|
2687
|
-
readInverseCoefficients(i, t) {
|
|
2688
|
-
const { inverseCoeffX: e, inverseCoeffY: s } = t;
|
|
2689
|
-
if (!(e != null && e.length) || !(s != null && s.length) || e.length !== s.length)
|
|
2690
|
-
return null;
|
|
2691
|
-
const o = [];
|
|
2692
|
-
for (let r = 0; r < e.length; r++)
|
|
2693
|
-
o.push(e[r]), o.push(s[r]);
|
|
2694
|
-
return o;
|
|
2695
|
-
}
|
|
2696
|
-
writeInverseCoefficients(i, t, e) {
|
|
2697
|
-
const s = [], o = [];
|
|
2698
|
-
for (let r = 0; r < (i == null ? void 0 : i.length); r++)
|
|
2699
|
-
r % 2 == 0 ? s.push(i[r]) : o.push(i[r]);
|
|
2700
|
-
t.inverseCoeffX = s, t.inverseCoeffY = o;
|
|
2701
|
-
}
|
|
2702
|
-
get affectsPixelSize() {
|
|
2703
|
-
return this.polynomialOrder > 0;
|
|
2704
|
-
}
|
|
2705
|
-
forwardTransform(i) {
|
|
2706
|
-
if (i.type === "point") {
|
|
2707
|
-
const t = Pe(this.forwardCoefficients, i, this.polynomialOrder);
|
|
2708
|
-
return new Be({ x: t.x, y: t.y, spatialReference: i.spatialReference });
|
|
2709
|
-
}
|
|
2710
|
-
return ns(this.forwardCoefficients, i, this.polynomialOrder);
|
|
2711
|
-
}
|
|
2712
|
-
inverseTransform(i) {
|
|
2713
|
-
if (i.type === "point") {
|
|
2714
|
-
const t = Pe(this.inverseCoefficients, i, this.polynomialOrder);
|
|
2715
|
-
return new Be({ x: t.x, y: t.y, spatialReference: i.spatialReference });
|
|
2716
|
-
}
|
|
2717
|
-
return ns(this.inverseCoefficients, i, this.polynomialOrder);
|
|
2718
|
-
}
|
|
2719
|
-
clone() {
|
|
2720
|
-
return new Te({ polynomialOrder: this.polynomialOrder, forwardCoefficients: this.forwardCoefficients ? [...this.forwardCoefficients] : null, inverseCoefficients: this.inverseCoefficients ? [...this.inverseCoefficients] : null });
|
|
2721
|
-
}
|
|
2722
|
-
};
|
|
2723
|
-
c([m({ json: { write: !0 } })], q.prototype, "polynomialOrder", void 0), c([m()], q.prototype, "forwardCoefficients", void 0), c([Ct("forwardCoefficients", ["coeffX", "coeffY"])], q.prototype, "readForwardCoefficients", null), c([_t("forwardCoefficients")], q.prototype, "writeForwardCoefficients", null), c([m({ json: { write: !0 } })], q.prototype, "inverseCoefficients", null), c([Ct("inverseCoefficients", ["inverseCoeffX", "inverseCoeffY"])], q.prototype, "readInverseCoefficients", null), c([_t("inverseCoefficients")], q.prototype, "writeInverseCoefficients", null), c([m()], q.prototype, "affectsPixelSize", null), c([Y({ PolynomialXform: "polynomial" })], q.prototype, "type", void 0), q = Te = c([A("esri.layers.support.rasterTransforms.PolynomialTransform")], q);
|
|
2724
|
-
const wo = q, xs = { GCSShiftXform: yo, IdentityXform: xo, PolynomialXform: wo }, bo = Object.keys(xs);
|
|
2725
|
-
function Ko(i) {
|
|
2726
|
-
const t = i == null ? void 0 : i.type;
|
|
2727
|
-
return !i || bo.includes(t);
|
|
2728
|
-
}
|
|
2729
|
-
function Yo(i) {
|
|
2730
|
-
if (!(i == null ? void 0 : i.type))
|
|
2731
|
-
return null;
|
|
2732
|
-
const e = xs[i == null ? void 0 : i.type];
|
|
2733
|
-
if (e) {
|
|
2734
|
-
const s = new e();
|
|
2735
|
-
return s.read(i), s;
|
|
2736
|
-
}
|
|
2737
|
-
return null;
|
|
2738
|
-
}
|
|
2739
|
-
export {
|
|
2740
|
-
co as N,
|
|
2741
|
-
Jo as R,
|
|
2742
|
-
yo as c,
|
|
2743
|
-
Ko as f,
|
|
2744
|
-
Yo as i,
|
|
2745
|
-
wo as y
|
|
2746
|
-
};
|