@itwin/map-layers-formats 3.5.0-dev.33
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/.nycrc +10 -0
- package/.rush/temp/package-deps_build_ci.json +33 -0
- package/.rush/temp/package-deps_cover.json +33 -0
- package/.rush/temp/package-deps_docs.json +33 -0
- package/.rush/temp/shrinkwrap-deps.json +352 -0
- package/README.md +11 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts +9 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +15 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +15 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js +135 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +15 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +206 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +43 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +412 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +94 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +91 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +18 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +34 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +33 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +143 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts +17 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js +44 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +86 -0
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +190 -0
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -0
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts +1064 -0
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js +2271 -0
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -0
- package/lib/cjs/map-layers-formats.d.ts +9 -0
- package/lib/cjs/map-layers-formats.d.ts.map +1 -0
- package/lib/cjs/map-layers-formats.js +25 -0
- package/lib/cjs/map-layers-formats.js.map +1 -0
- package/lib/cjs/mapLayersFormats.d.ts +11 -0
- package/lib/cjs/mapLayersFormats.d.ts.map +1 -0
- package/lib/cjs/mapLayersFormats.js +29 -0
- package/lib/cjs/mapLayersFormats.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +35 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +162 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +168 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +657 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +109 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +215 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +95 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +2 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +60 -0
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +7 -0
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/Mocks.js +19 -0
- package/lib/cjs/test/ArcGisFeature/Mocks.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +56 -0
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +420 -0
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +1 -0
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1043 -0
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -0
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +427 -0
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -0
- package/lib/cjs/test/coverage/.nyc_output/4a4a8f53-a85f-4448-a46a-5812eb4f4c28.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/c25e0b2e-c348-49c1-990c-2c062e25b38f.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/4a4a8f53-a85f-4448-a46a-5812eb4f4c28.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/c25e0b2e-c348-49c1-990c-2c062e25b38f.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +1 -0
- package/lib/cjs/test/coverage/cobertura-coverage.xml +1162 -0
- package/lib/cjs/test/coverage/lcov-report/base.css +224 -0
- package/lib/cjs/test/coverage/lcov-report/block-navigation.js +87 -0
- package/lib/cjs/test/coverage/lcov-report/favicon.png +0 -0
- package/lib/cjs/test/coverage/lcov-report/index.html +131 -0
- package/lib/cjs/test/coverage/lcov-report/prettify.css +1 -0
- package/lib/cjs/test/coverage/lcov-report/prettify.js +2 -0
- package/lib/cjs/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/lib/cjs/test/coverage/lcov-report/sorter.js +196 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +133 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +550 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +736 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +1513 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +793 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +223 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +598 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +301 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +823 -0
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +236 -0
- package/lib/cjs/test/coverage/lcov-report/src/index.html +131 -0
- package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +130 -0
- package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +163 -0
- package/lib/cjs/test/coverage/lcov.info +1503 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts +9 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +11 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +15 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +131 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +15 -0
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +202 -0
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +43 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +408 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +94 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +87 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +18 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +30 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +33 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +139 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts +17 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js +40 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +86 -0
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +183 -0
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -0
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts +1064 -0
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js +2268 -0
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -0
- package/lib/esm/map-layers-formats.d.ts +9 -0
- package/lib/esm/map-layers-formats.d.ts.map +1 -0
- package/lib/esm/map-layers-formats.js +13 -0
- package/lib/esm/map-layers-formats.js.map +1 -0
- package/lib/esm/mapLayersFormats.d.ts +11 -0
- package/lib/esm/mapLayersFormats.d.ts.map +1 -0
- package/lib/esm/mapLayersFormats.js +25 -0
- package/lib/esm/mapLayersFormats.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +33 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +160 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +166 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +655 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +107 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +213 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +93 -0
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +2 -0
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +58 -0
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts +7 -0
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/Mocks.js +16 -0
- package/lib/esm/test/ArcGisFeature/Mocks.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +56 -0
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +416 -0
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +1 -0
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1043 -0
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -0
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +423 -0
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -0
- package/lib/test/junit_results.xml +161 -0
- package/map-layers-formats.build.log +30 -0
- package/package.json +103 -0
- package/src/ArcGisFeature/ArcGisFeatureFormat.ts +16 -0
- package/src/ArcGisFeature/ArcGisFeatureJSON.ts +155 -0
- package/src/ArcGisFeature/ArcGisFeaturePBF.ts +217 -0
- package/src/ArcGisFeature/ArcGisFeatureProvider.ts +476 -0
- package/src/ArcGisFeature/ArcGisFeatureQuery.ts +236 -0
- package/src/ArcGisFeature/ArcGisFeatureReader.ts +46 -0
- package/src/ArcGisFeature/ArcGisFeatureRenderer.ts +171 -0
- package/src/ArcGisFeature/ArcGisFeatureResponse.ts +72 -0
- package/src/ArcGisFeature/ArcGisSymbologyRenderer.ts +246 -0
- package/src/ArcGisFeature/esriPBuffer.gen.ts +2615 -0
- package/src/map-layers-formats.ts +15 -0
- package/src/mapLayersFormats.ts +26 -0
- package/src/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.ts +46 -0
- package/src/test/ArcGisFeature/ArcGisFeatureJSON.test.ts +202 -0
- package/src/test/ArcGisFeature/ArcGisFeaturePBF.test.ts +227 -0
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +776 -0
- package/src/test/ArcGisFeature/ArcGisFeatureQuery.test.ts +124 -0
- package/src/test/ArcGisFeature/ArcGisFeatureRenderer.test.ts +296 -0
- package/src/test/ArcGisFeature/ArcGisFeatureResponse.test.ts +109 -0
- package/src/test/ArcGisFeature/ArcGisSymbologyRenderer.test.ts +77 -0
- package/src/test/ArcGisFeature/Mocks.ts +19 -0
- package/src/test/ArcGisFeature/NewYorkDataset.ts +423 -0
- package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +455 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ArcGisFeatureProvider = void 0;
|
|
8
|
+
const core_common_1 = require("@itwin/core-common");
|
|
9
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
10
|
+
const core_geometry_1 = require("@itwin/core-geometry");
|
|
11
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
12
|
+
const ArcGisSymbologyRenderer_1 = require("./ArcGisSymbologyRenderer");
|
|
13
|
+
const ArcGisFeatureQuery_1 = require("./ArcGisFeatureQuery");
|
|
14
|
+
const ArcGisFeatureRenderer_1 = require("./ArcGisFeatureRenderer");
|
|
15
|
+
const ArcGisFeaturePBF_1 = require("./ArcGisFeaturePBF");
|
|
16
|
+
const ArcGisFeatureJSON_1 = require("./ArcGisFeatureJSON");
|
|
17
|
+
const ArcGisFeatureResponse_1 = require("./ArcGisFeatureResponse");
|
|
18
|
+
const loggerCategory = "MapLayersFormats.ArcGISFeature";
|
|
19
|
+
/** Provide tiles from a ESRI ArcGIS Feature service
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
23
|
+
// We should not be making any request if layer is currently out of range,
|
|
24
|
+
// but since minimum LOD is not correctely supported by iTwin tile, we dont use it for now.
|
|
25
|
+
// public get minimumZoomLevel(): number { return this._minDepthFromLod; }
|
|
26
|
+
// public get maximumZoomLevel(): number { return this._maxDepthFromLod; }
|
|
27
|
+
constructor(settings) {
|
|
28
|
+
super(settings, true);
|
|
29
|
+
// Debug flags, should always be commited to FALSE !
|
|
30
|
+
this._drawDebugInfo = false;
|
|
31
|
+
this._debugFeatureGeom = false;
|
|
32
|
+
this._supportsCoordinatesQuantization = false;
|
|
33
|
+
this._querySupported = false;
|
|
34
|
+
this._layerId = 0;
|
|
35
|
+
this._outSR = 102100;
|
|
36
|
+
this._maxDepthFromLod = 0;
|
|
37
|
+
this._minDepthFromLod = 0;
|
|
38
|
+
}
|
|
39
|
+
async initialize() {
|
|
40
|
+
var _a, _b, _c, _d, _f, _g, _h;
|
|
41
|
+
let json;
|
|
42
|
+
try {
|
|
43
|
+
json = await core_frontend_1.ArcGisUtilities.getServiceJson(this._settings.url, this._settings.formatId, this._settings.userName, this._settings.password);
|
|
44
|
+
}
|
|
45
|
+
catch (_e) {
|
|
46
|
+
}
|
|
47
|
+
if (json === undefined) {
|
|
48
|
+
core_bentley_1.Logger.logError(loggerCategory, "Could not get service JSON");
|
|
49
|
+
throw new core_common_1.ServerError(core_bentley_1.IModelStatus.ValidationFailed, "");
|
|
50
|
+
}
|
|
51
|
+
if (((_a = json === null || json === void 0 ? void 0 : json.error) === null || _a === void 0 ? void 0 : _a.code) === core_frontend_1.ArcGisErrorCode.TokenRequired || ((_b = json === null || json === void 0 ? void 0 : json.error) === null || _b === void 0 ? void 0 : _b.code) === core_frontend_1.ArcGisErrorCode.InvalidToken) {
|
|
52
|
+
// Check again layer status, it might have change during await.
|
|
53
|
+
if (this.status === core_frontend_1.MapLayerImageryProviderStatus.Valid) {
|
|
54
|
+
this.status = core_frontend_1.MapLayerImageryProviderStatus.RequireAuth;
|
|
55
|
+
this.onStatusChanged.raiseEvent(this);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (json.capabilities) {
|
|
60
|
+
this._querySupported = json.capabilities.indexOf("Query") >= 0;
|
|
61
|
+
if (!this._querySupported)
|
|
62
|
+
throw new core_common_1.ServerError(core_bentley_1.IModelStatus.ValidationFailed, "");
|
|
63
|
+
}
|
|
64
|
+
this.serviceJson = json;
|
|
65
|
+
let foundVisibleSubLayer = false;
|
|
66
|
+
if (this._settings.subLayers.length >= 0) {
|
|
67
|
+
// There is more than sub-layer for this layer, pick the first visible one.
|
|
68
|
+
for (const layer of this._settings.subLayers) {
|
|
69
|
+
if (layer.visible && typeof layer.id === "number") {
|
|
70
|
+
this._layerId = layer.id;
|
|
71
|
+
foundVisibleSubLayer = true;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!foundVisibleSubLayer && json !== undefined) {
|
|
77
|
+
// No suitable sublayer was specified on the layerSettings object, lets find a default one in the capabilities
|
|
78
|
+
// Check layer metadata
|
|
79
|
+
if (Array.isArray(this.serviceJson.layers) && this.serviceJson.layers.length >= 1) {
|
|
80
|
+
const hasDefaultVisibility = Object.keys(this.serviceJson.layers[0]).includes("defaultVisibility");
|
|
81
|
+
if (hasDefaultVisibility) {
|
|
82
|
+
for (const layer of this.serviceJson.layers) {
|
|
83
|
+
if (layer.defaultVisibility) {
|
|
84
|
+
this._layerId = layer.id;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
// On some older servers, the default visiblity is on the layer capabilities (i.e. not the service capabilities)
|
|
90
|
+
for (const layer of this.serviceJson.layers) {
|
|
91
|
+
const layerJson = await this.getLayerMetadata(layer.id);
|
|
92
|
+
if (!layerJson) {
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
if (layerJson.defaultVisibility) {
|
|
96
|
+
this._layerId = layer.id;
|
|
97
|
+
this._layerMetadata = layerJson;
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
// There is no layer to publish? Something is off with this server..
|
|
105
|
+
throw new core_common_1.ServerError(core_bentley_1.IModelStatus.ValidationFailed, "");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// Make sure we cache layer info (i.e. rendering info)
|
|
109
|
+
if (!this._layerMetadata) {
|
|
110
|
+
this._layerMetadata = await this.getLayerMetadata(this._layerId);
|
|
111
|
+
if (!this._layerMetadata) {
|
|
112
|
+
core_bentley_1.Logger.logError(loggerCategory, "Could not layer metadata");
|
|
113
|
+
throw new core_common_1.ServerError(core_bentley_1.IModelStatus.ValidationFailed, "");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// Check supported query formats: JSON and PBF are currently implemented by this provider
|
|
117
|
+
// Note: needs to be checked on the layer metadata, service metadata advertises a different set of formats
|
|
118
|
+
if (this._layerMetadata.supportedQueryFormats) {
|
|
119
|
+
const formats = this._layerMetadata.supportedQueryFormats.split(", ");
|
|
120
|
+
if (formats.includes("PBF")) {
|
|
121
|
+
this._format = "PBF";
|
|
122
|
+
}
|
|
123
|
+
else if (formats.includes("JSON")) {
|
|
124
|
+
this._format = "JSON";
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (!this._format) {
|
|
128
|
+
core_bentley_1.Logger.logError(loggerCategory, "Could not get service JSON");
|
|
129
|
+
throw new core_common_1.ServerError(core_bentley_1.IModelStatus.ValidationFailed, "");
|
|
130
|
+
}
|
|
131
|
+
// Coordinates Quantization: If supported, server will transform for us the coordinates in the Tile coordinate space (pixels, origin = upper left corner
|
|
132
|
+
// If not supported, transformation will be applied client side.
|
|
133
|
+
if (this._layerMetadata.supportsCoordinatesQuantization) {
|
|
134
|
+
this._supportsCoordinatesQuantization = true;
|
|
135
|
+
}
|
|
136
|
+
// Check for minScale / max scale
|
|
137
|
+
const minScale = ((_c = this._layerMetadata) === null || _c === void 0 ? void 0 : _c.minScale) || undefined; // undefined, 0 -> undefined
|
|
138
|
+
const maxScale = ((_d = this._layerMetadata) === null || _d === void 0 ? void 0 : _d.maxScale) || undefined; // undefined, 0 -> undefined
|
|
139
|
+
const scales = core_frontend_1.ArcGisUtilities.getZoomLevelsScales(this.defaultMaximumZoomLevel, this.tileSize, minScale, maxScale);
|
|
140
|
+
if (scales.minLod)
|
|
141
|
+
this._minDepthFromLod = scales.minLod;
|
|
142
|
+
if (scales.maxLod)
|
|
143
|
+
this._maxDepthFromLod = scales.maxLod;
|
|
144
|
+
this._symbologyRenderer = new ArcGisSymbologyRenderer_1.ArcGisSymbologyRenderer((_f = this._layerMetadata) === null || _f === void 0 ? void 0 : _f.geometryType, (_h = (_g = this._layerMetadata) === null || _g === void 0 ? void 0 : _g.drawingInfo) === null || _h === void 0 ? void 0 : _h.renderer);
|
|
145
|
+
}
|
|
146
|
+
async getLayerMetadata(layerId) {
|
|
147
|
+
let json;
|
|
148
|
+
try {
|
|
149
|
+
const url = new URL(this._settings.url);
|
|
150
|
+
url.pathname = `${url.pathname}/${layerId}`;
|
|
151
|
+
json = await core_frontend_1.ArcGisUtilities.getServiceJson(url.toString(), this._settings.formatId, this._settings.userName, this._settings.password);
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
}
|
|
155
|
+
return json;
|
|
156
|
+
}
|
|
157
|
+
get tileSize() { return 512; }
|
|
158
|
+
get format() { return this._format; }
|
|
159
|
+
// We don't use this method inside this provider (see constructFeatureUrl), but since this is an abstract method, we need to define something
|
|
160
|
+
async constructUrl(_row, _column, _zoomLevel) {
|
|
161
|
+
return "";
|
|
162
|
+
}
|
|
163
|
+
constructFeatureUrl(row, column, zoomLevel, format, geomOverride, outFields, tolerance, returnGeometry) {
|
|
164
|
+
const tileExtent = this.getEPSG3857Extent(row, column, zoomLevel);
|
|
165
|
+
const tileEnvelope = {
|
|
166
|
+
xmin: tileExtent.left, ymin: tileExtent.bottom,
|
|
167
|
+
xmax: tileExtent.right, ymax: tileExtent.top,
|
|
168
|
+
spatialReference: { wkid: 102100, latestWkid: 3857 },
|
|
169
|
+
};
|
|
170
|
+
// Actual spatial filter.
|
|
171
|
+
// By default, we request the tile extent. If 'cartoPoint' is specified,
|
|
172
|
+
// we restrict the spatial to specific point. (i.e. GetFeatureInfo requests)
|
|
173
|
+
// We a refine envelope is provided, it has the priority over 'cartoPoint'
|
|
174
|
+
let geometry;
|
|
175
|
+
if (geomOverride) {
|
|
176
|
+
geometry = geomOverride;
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
geometry = { geom: tileEnvelope, type: "esriGeometryEnvelope" };
|
|
180
|
+
}
|
|
181
|
+
let quantizationParameters;
|
|
182
|
+
const toleranceWorld = (tileExtent.top - tileExtent.bottom) / this.tileSize;
|
|
183
|
+
if (this._supportsCoordinatesQuantization) {
|
|
184
|
+
quantizationParameters = {
|
|
185
|
+
mode: "view",
|
|
186
|
+
originPosition: "upperLeft",
|
|
187
|
+
tolerance: toleranceWorld,
|
|
188
|
+
extent: tileEnvelope,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
const url = new ArcGisFeatureQuery_1.ArcGisFeatureQuery(this._settings.url, this._layerId, format, this._outSR, { geometry,
|
|
192
|
+
geometryType: "esriGeometryEnvelope",
|
|
193
|
+
returnExceededLimitFeatures: false,
|
|
194
|
+
maxRecordCountFactor: 3,
|
|
195
|
+
resultType: "tile",
|
|
196
|
+
quantizationParameters,
|
|
197
|
+
outFields,
|
|
198
|
+
returnGeometry,
|
|
199
|
+
distance: (tolerance ? tolerance * toleranceWorld : undefined) });
|
|
200
|
+
let envelope;
|
|
201
|
+
if (geomOverride && geomOverride.type === "esriGeometryEnvelope") {
|
|
202
|
+
envelope = geomOverride.geom;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
envelope = tileEnvelope;
|
|
206
|
+
}
|
|
207
|
+
return { url: url.toString(), envelope };
|
|
208
|
+
}
|
|
209
|
+
// Makes an identify request to ESRI MapService , and return it as a list MapLayerFeatureInfo object
|
|
210
|
+
async getFeatureInfo(featureInfos, quadId, carto, _tree) {
|
|
211
|
+
if (!this._querySupported || this.format === undefined)
|
|
212
|
+
return;
|
|
213
|
+
const cartoPoint = {
|
|
214
|
+
x: this.getEPSG3857X(carto.longitudeDegrees),
|
|
215
|
+
y: this.getEPSG3857Y(carto.latitudeDegrees),
|
|
216
|
+
spatialReference: { wkid: 102100, latestWkid: 3857 },
|
|
217
|
+
};
|
|
218
|
+
const doFeatureInfoQuery = async (format, outFields, returnGeometry) => {
|
|
219
|
+
const infoUrl = this.constructFeatureUrl(quadId.row, quadId.column, quadId.level, format, { geom: cartoPoint, type: "esriGeometryPoint" }, outFields, 3 /* tolerance in pixel*/, returnGeometry);
|
|
220
|
+
if (!infoUrl || infoUrl.url.length === 0) {
|
|
221
|
+
core_bentley_1.Logger.logError(loggerCategory, `Could not construct feature info query URL`);
|
|
222
|
+
return undefined;
|
|
223
|
+
}
|
|
224
|
+
const response = this.fetch(new URL(infoUrl.url), { method: "GET" });
|
|
225
|
+
const featureResponse = new ArcGisFeatureResponse_1.ArcGisFeatureResponse(format, response);
|
|
226
|
+
return featureResponse.getResponseData();
|
|
227
|
+
};
|
|
228
|
+
if (this._debugFeatureGeom) {
|
|
229
|
+
try {
|
|
230
|
+
let responseData = await doFeatureInfoQuery("PBF", "", true);
|
|
231
|
+
if (responseData) {
|
|
232
|
+
core_bentley_1.Logger.logInfo(loggerCategory, JSON.stringify(responseData.data.toObject()));
|
|
233
|
+
}
|
|
234
|
+
responseData = await doFeatureInfoQuery("JSON", "", true);
|
|
235
|
+
if (responseData) {
|
|
236
|
+
core_bentley_1.Logger.logInfo(loggerCategory, JSON.stringify(responseData.data));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
core_bentley_1.Logger.logInfo(loggerCategory, `Error occured with debug FeatureInfo: ${e}`);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
try {
|
|
244
|
+
const responseData = await doFeatureInfoQuery(this.format, "*", false);
|
|
245
|
+
if (!responseData) {
|
|
246
|
+
core_bentley_1.Logger.logError(loggerCategory, `Could not get feature info data`);
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (responseData.exceedTransferLimit) {
|
|
250
|
+
core_bentley_1.Logger.logError(loggerCategory, `Could not get feature info : transfert limit exeeded.`);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const featureReader = this.format === "PBF" ? new ArcGisFeaturePBF_1.ArcGisFeaturePBF(this._settings, this._layerMetadata) : new ArcGisFeatureJSON_1.ArcGisFeatureJSON(this._settings, this._layerMetadata);
|
|
254
|
+
featureReader.readFeatureInfo(responseData, featureInfos);
|
|
255
|
+
}
|
|
256
|
+
catch (e) {
|
|
257
|
+
core_bentley_1.Logger.logError(loggerCategory, `Exception occured while loading feature info data : ${e}`);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
async fetchTile(row, column, zoomLevel, refineEnvelope) {
|
|
263
|
+
if (!this.format) {
|
|
264
|
+
(0, core_bentley_1.assert)(!"No supported query format");
|
|
265
|
+
return undefined;
|
|
266
|
+
}
|
|
267
|
+
const geomOverride = (refineEnvelope ? { geom: refineEnvelope, type: "esriGeometryEnvelope" } : undefined);
|
|
268
|
+
const tileUrl = this.constructFeatureUrl(row, column, zoomLevel, this.format, geomOverride);
|
|
269
|
+
if (!tileUrl || tileUrl.url.length === 0) {
|
|
270
|
+
core_bentley_1.Logger.logError(loggerCategory, `Could not construct feature query URL for tile ${zoomLevel}/${row}/${column}`);
|
|
271
|
+
return undefined;
|
|
272
|
+
}
|
|
273
|
+
const response = this.fetch(new URL(tileUrl.url), { method: "GET" });
|
|
274
|
+
// if ((await response).status !== 200){
|
|
275
|
+
// return undefined;
|
|
276
|
+
// }
|
|
277
|
+
return new ArcGisFeatureResponse_1.ArcGisFeatureResponse(this.format, response, tileUrl.envelope);
|
|
278
|
+
}
|
|
279
|
+
drawTileDebugInfo(row, column, zoomLevel, context) {
|
|
280
|
+
context.fillStyle = "cyan";
|
|
281
|
+
context.strokeRect(0, 0, this.tileSize, this.tileSize);
|
|
282
|
+
context.font = "30px Arial";
|
|
283
|
+
context.lineWidth = 5;
|
|
284
|
+
context.fillText(`${zoomLevel}-${row}-${column}`, 10, 50);
|
|
285
|
+
}
|
|
286
|
+
// Compute transform that provides coordinates in the canvas coordinate system (pixels, origin = top-left)
|
|
287
|
+
// from coordinate in world (i.e EPSG:3857)
|
|
288
|
+
computeTileWorld2CanvasTransform(row, column, zoomLevel) {
|
|
289
|
+
const tileExtentWorld3857 = this.getEPSG3857Extent(row, column, zoomLevel);
|
|
290
|
+
const worldTileWidth = tileExtentWorld3857.right - tileExtentWorld3857.left;
|
|
291
|
+
const canvasTileWidth = this.tileSize;
|
|
292
|
+
const world2CanvasRatio = canvasTileWidth / worldTileWidth;
|
|
293
|
+
const worldTileOrigin = core_geometry_1.Point3d.create(tileExtentWorld3857.left, tileExtentWorld3857.bottom);
|
|
294
|
+
const worldTileExtent = core_geometry_1.Point3d.create(tileExtentWorld3857.right, tileExtentWorld3857.top);
|
|
295
|
+
const canvasTileOriginOffset = worldTileOrigin.clone();
|
|
296
|
+
const canvasTileExtentOffset = worldTileExtent.clone();
|
|
297
|
+
canvasTileOriginOffset.scaleInPlace(world2CanvasRatio);
|
|
298
|
+
canvasTileExtentOffset.scaleInPlace(world2CanvasRatio);
|
|
299
|
+
const xTranslate = -1 * canvasTileOriginOffset.x;
|
|
300
|
+
// Canvas origin is uppler left corner, so we need to flip the y axsis
|
|
301
|
+
const yTranslate = canvasTileExtentOffset.y; // y-axis flip
|
|
302
|
+
const yWorld2CanvasRatio = -1 * world2CanvasRatio; // y-axis flip
|
|
303
|
+
const matrix = core_geometry_1.Matrix4d.createTranslationAndScaleXYZ(xTranslate, yTranslate, 0, world2CanvasRatio, yWorld2CanvasRatio, 1);
|
|
304
|
+
return matrix.asTransform;
|
|
305
|
+
}
|
|
306
|
+
async loadTile(row, column, zoomLevel) {
|
|
307
|
+
if ((this.status === core_frontend_1.MapLayerImageryProviderStatus.RequireAuth)) {
|
|
308
|
+
return undefined;
|
|
309
|
+
}
|
|
310
|
+
const canvas = document.createElement("canvas");
|
|
311
|
+
canvas.width = this.tileSize;
|
|
312
|
+
canvas.height = this.tileSize;
|
|
313
|
+
const ctx = canvas.getContext("2d");
|
|
314
|
+
if (ctx == null) {
|
|
315
|
+
core_bentley_1.Logger.logError(loggerCategory, "No canvas context available for loading tile.");
|
|
316
|
+
(0, core_bentley_1.assert)(!"no canvas context");
|
|
317
|
+
return undefined;
|
|
318
|
+
}
|
|
319
|
+
if (!this._symbologyRenderer) {
|
|
320
|
+
core_bentley_1.Logger.logError(loggerCategory, "No symbology renderer available for loading tile.");
|
|
321
|
+
(0, core_bentley_1.assert)(!"No symbology renderer");
|
|
322
|
+
return undefined;
|
|
323
|
+
}
|
|
324
|
+
try {
|
|
325
|
+
// Compute transform if CoordinatesQuantization is not supported by service
|
|
326
|
+
let transfo;
|
|
327
|
+
if (!this._supportsCoordinatesQuantization) {
|
|
328
|
+
transfo = this.computeTileWorld2CanvasTransform(row, column, zoomLevel);
|
|
329
|
+
if (!transfo) {
|
|
330
|
+
core_bentley_1.Logger.logError(loggerCategory, `Could not compute data transformation for tile (${zoomLevel}/${row}/${column})`);
|
|
331
|
+
(0, core_bentley_1.assert)(!"Could not compute world to canvas transform");
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
const renderer = new ArcGisFeatureRenderer_1.ArcGisFeatureRenderer(ctx, this._symbologyRenderer, transfo);
|
|
335
|
+
const featureReader = this.format === "PBF" ? new ArcGisFeaturePBF_1.ArcGisFeaturePBF(this._settings, this._layerMetadata) : new ArcGisFeatureJSON_1.ArcGisFeatureJSON(this._settings, this._layerMetadata);
|
|
336
|
+
const getSubEnvelopes = (envelope) => {
|
|
337
|
+
const dx = (envelope.xmax - envelope.xmin) * 0.5;
|
|
338
|
+
const dy = (envelope.xmax - envelope.xmin) * 0.5;
|
|
339
|
+
const subEnvelopes = [];
|
|
340
|
+
for (let posX = 0; posX < ArcGisFeatureProvider._nbSubTiles; posX++) {
|
|
341
|
+
for (let posY = 0; posY < ArcGisFeatureProvider._nbSubTiles; posY++) {
|
|
342
|
+
subEnvelopes.push({
|
|
343
|
+
xmin: envelope.xmin + (dx * posX), ymin: envelope.ymin + (dy * posY),
|
|
344
|
+
xmax: envelope.xmin + (dx * (posX + 1)), ymax: envelope.ymin + (dy * (posY + 1)),
|
|
345
|
+
spatialReference: { wkid: 102100, latestWkid: 3857 },
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return subEnvelopes;
|
|
350
|
+
};
|
|
351
|
+
// The strategy here is simple: we make a request for an area that represents the current tile (i.e envelope),
|
|
352
|
+
// the server will either return the requested data OR a 'exceedTransferLimit' message (too much data to transfers).
|
|
353
|
+
// In the latter case, we subdivide the previous request envelope in for 4 sub-envelopes,
|
|
354
|
+
// and repeat again until we get data.
|
|
355
|
+
const renderData = async (envelope) => {
|
|
356
|
+
let response;
|
|
357
|
+
let responseData;
|
|
358
|
+
try {
|
|
359
|
+
response = await this.fetchTile(row, column, zoomLevel, envelope);
|
|
360
|
+
if (!response) {
|
|
361
|
+
core_bentley_1.Logger.logError(loggerCategory, `Error occurred while fetching tile (${zoomLevel}/${row}/${column})`);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
responseData = await response.getResponseData();
|
|
365
|
+
if (!responseData) {
|
|
366
|
+
core_bentley_1.Logger.logError(loggerCategory, `Could not get response data for tile (${zoomLevel}/${row}/${column})`);
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
catch (e) {
|
|
371
|
+
core_bentley_1.Logger.logError(loggerCategory, `Exception occurred while loading tile (${zoomLevel}/${row}/${column}) : ${e}`);
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
if (responseData.exceedTransferLimit) {
|
|
375
|
+
if (response.envelope) {
|
|
376
|
+
const subEnvelopes = getSubEnvelopes(response.envelope);
|
|
377
|
+
const renderPromises = [];
|
|
378
|
+
for (const subEnvelope of subEnvelopes) {
|
|
379
|
+
renderPromises.push(renderData(subEnvelope));
|
|
380
|
+
}
|
|
381
|
+
await Promise.all(renderPromises);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
core_bentley_1.Logger.logError(loggerCategory, `Request exceeded transfer limit, could not refine request`);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
featureReader.readAndRender(responseData, renderer);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
await renderData();
|
|
392
|
+
if (this._drawDebugInfo)
|
|
393
|
+
this.drawTileDebugInfo(row, column, zoomLevel, ctx);
|
|
394
|
+
}
|
|
395
|
+
catch (e) {
|
|
396
|
+
core_bentley_1.Logger.logError(loggerCategory, `Exception occurred while loading tile (${zoomLevel}/${row}/${column}) : ${e}`);
|
|
397
|
+
}
|
|
398
|
+
try {
|
|
399
|
+
const dataUrl = canvas.toDataURL("image/png");
|
|
400
|
+
const header = "data:image/png;base64,";
|
|
401
|
+
const dataUrl2 = dataUrl.substring(header.length);
|
|
402
|
+
return new core_common_1.ImageSource((0, core_bentley_1.base64StringToUint8Array)(dataUrl2), core_common_1.ImageSourceFormat.Png);
|
|
403
|
+
}
|
|
404
|
+
catch (e) {
|
|
405
|
+
core_bentley_1.Logger.logError(loggerCategory, `Exception occurred while rendering tile (${zoomLevel}/${row}/${column}) : ${e}.`);
|
|
406
|
+
}
|
|
407
|
+
return undefined;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
exports.ArcGisFeatureProvider = ArcGisFeatureProvider;
|
|
411
|
+
ArcGisFeatureProvider._nbSubTiles = 2;
|
|
412
|
+
//# sourceMappingURL=ArcGisFeatureProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArcGisFeatureProvider.js","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisFeatureProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,oDAAsH;AACtH,sDAA6F;AAC7F,wDAAoE;AACpE,wDAA+K;AAC/K,uEAAoE;AACpE,6DAA6I;AAC7I,mEAAgE;AAChE,yDAAsD;AACtD,2DAAwD;AACxD,mEAAoF;AAEpF,MAAM,cAAc,GAAI,gCAAgC,CAAC;AASzD;;EAEE;AACF,MAAa,qBAAsB,SAAQ,qCAAqB;IAiB9D,0EAA0E;IAC1E,2FAA2F;IAC3F,0EAA0E;IAC1E,0EAA0E;IAE1E,YAAY,QAA+B;QACzC,KAAK,CAAC,QAAQ,EAAE,IAAI,CA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Y,EAAE;4BACtC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;yBAC9C;wBACD,MAAM,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;qBACnC;yBAAM;wBACL,qBAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,2DAA2D,CAAC,CAAC;qBAC9F;iBACF;qBAAM;oBACL,aAAa,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;iBACrD;YACH,CAAC,CAAC;YACF,MAAM,UAAU,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,cAAc;gBACrB,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;SACvD;QAAC,OAAO,CAAC,EAAE;YACV,qBAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,0CAA0C,SAAS,IAAI,GAAG,IAAI,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC;SACjH;QAED,IAAI;YACF,MAAM,OAAO,GAAI,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,wBAAwB,CAAC;YACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAClD,OAAO,IAAI,yBAAW,CAAC,IAAA,uCAAwB,EAAC,QAAQ,CAAC,EAAE,+BAAiB,CAAC,GAAG,CAAC,CAAC;SACnF;QAAC,OAAO,CAAC,EAAE;YACV,qBAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,4CAA4C,SAAS,IAAI,GAAG,IAAI,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;SACpH;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;;AA9bH,sDA+bC;AAnbyB,iCAAW,GAAG,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport { Cartographic, ImageMapLayerSettings, ImageSource, ImageSourceFormat, ServerError } from \"@itwin/core-common\";\r\nimport { assert, base64StringToUint8Array, IModelStatus, Logger } from \"@itwin/core-bentley\";\r\nimport { Matrix4d, Point3d, Transform } from \"@itwin/core-geometry\";\r\nimport { ArcGisErrorCode, ArcGISImageryProvider, ArcGisUtilities, ImageryMapTileTree, MapLayerFeatureInfo, MapLayerImageryProviderStatus, QuadId } from \"@itwin/core-frontend\";\r\nimport { ArcGisSymbologyRenderer } from \"./ArcGisSymbologyRenderer\";\r\nimport { ArcGisExtent, ArcGisFeatureFormat, ArcGisFeatureQuery, ArcGisGeometry, FeatureQueryQuantizationParams } from \"./ArcGisFeatureQuery\";\r\nimport { ArcGisFeatureRenderer } from \"./ArcGisFeatureRenderer\";\r\nimport { ArcGisFeaturePBF } from \"./ArcGisFeaturePBF\";\r\nimport { ArcGisFeatureJSON } from \"./ArcGisFeatureJSON\";\r\nimport { ArcGisFeatureResponse, ArcGisResponseData } from \"./ArcGisFeatureResponse\";\r\nimport { ArcGisFeatureReader } from \"./ArcGisFeatureReader\";\r\nconst loggerCategory = \"MapLayersFormats.ArcGISFeature\";\r\n/**\r\n* @internal\r\n*/\r\ninterface ArcGisFeatureUrl {\r\n url: string;\r\n envelope?: ArcGisExtent; // envelope representing the current computed URL, requiered to refine request.\r\n}\r\n\r\n/** Provide tiles from a ESRI ArcGIS Feature service\r\n* @internal\r\n*/\r\nexport class ArcGisFeatureProvider extends ArcGISImageryProvider {\r\n // Debug flags, should always be commited to FALSE !\r\n private _drawDebugInfo = false;\r\n private _debugFeatureGeom = false;\r\n\r\n private _supportsCoordinatesQuantization = false;\r\n private _querySupported = false;\r\n private _layerId = 0;\r\n private _layerMetadata: any;\r\n private _format: ArcGisFeatureFormat|undefined;\r\n public serviceJson: any;\r\n private _symbologyRenderer: ArcGisSymbologyRenderer|undefined;\r\n private static readonly _nbSubTiles = 2;\r\n private _outSR = 102100;\r\n\r\n private _maxDepthFromLod = 0;\r\n private _minDepthFromLod = 0;\r\n // We should not be making any request if layer is currently out of range,\r\n // but since minimum LOD is not correctely supported by iTwin tile, we dont use it for now.\r\n // public get minimumZoomLevel(): number { return this._minDepthFromLod; }\r\n // public get maximumZoomLevel(): number { return this._maxDepthFromLod; }\r\n\r\n constructor(settings: ImageMapLayerSettings) {\r\n super(settings, true);\r\n }\r\n\r\n public override async initialize(): Promise<void> {\r\n\r\n let json;\r\n try {\r\n json = await ArcGisUtilities.getServiceJson(this._settings.url, this._settings.formatId, this._settings.userName, this._settings.password);\r\n\r\n } catch (_e) {\r\n\r\n }\r\n\r\n if (json === undefined) {\r\n Logger.logError(loggerCategory, \"Could not get service JSON\");\r\n throw new ServerError(IModelStatus.ValidationFailed, \"\");\r\n }\r\n\r\n if (json?.error?.code === ArcGisErrorCode.TokenRequired || json?.error?.code === ArcGisErrorCode.InvalidToken) {\r\n // Check again layer status, it might have change during await.\r\n if (this.status === MapLayerImageryProviderStatus.Valid) {\r\n this.status = MapLayerImageryProviderStatus.RequireAuth;\r\n this.onStatusChanged.raiseEvent(this);\r\n return;\r\n }\r\n }\r\n\r\n if (json.capabilities) {\r\n this._querySupported = json.capabilities.indexOf(\"Query\") >= 0;\r\n if (!this._querySupported)\r\n throw new ServerError(IModelStatus.ValidationFailed, \"\");\r\n }\r\n\r\n this.serviceJson = json;\r\n\r\n let foundVisibleSubLayer = false;\r\n if (this._settings.subLayers.length >= 0) {\r\n // There is more than sub-layer for this layer, pick the first visible one.\r\n for (const layer of this._settings.subLayers) {\r\n if (layer.visible && typeof layer.id === \"number\") {\r\n this._layerId = layer.id;\r\n foundVisibleSubLayer = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!foundVisibleSubLayer && json !== undefined) {\r\n // No suitable sublayer was specified on the layerSettings object, lets find a default one in the capabilities\r\n\r\n // Check layer metadata\r\n if (Array.isArray(this.serviceJson.layers) && this.serviceJson.layers.length >= 1) {\r\n\r\n const hasDefaultVisibility = Object.keys(this.serviceJson.layers[0]).includes(\"defaultVisibility\");\r\n if (hasDefaultVisibility) {\r\n for (const layer of this.serviceJson.layers) {\r\n if (layer.defaultVisibility) {\r\n this._layerId = layer.id;\r\n }\r\n }\r\n } else {\r\n // On some older servers, the default visiblity is on the layer capabilities (i.e. not the service capabilities)\r\n for (const layer of this.serviceJson.layers) {\r\n const layerJson = await this.getLayerMetadata(layer.id);\r\n if (!layerJson) {\r\n continue;\r\n }\r\n\r\n if (layerJson.defaultVisibility) {\r\n this._layerId = layer.id;\r\n this._layerMetadata = layerJson;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n } else {\r\n // There is no layer to publish? Something is off with this server..\r\n throw new ServerError(IModelStatus.ValidationFailed, \"\");\r\n }\r\n }\r\n\r\n // Make sure we cache layer info (i.e. rendering info)\r\n if (!this._layerMetadata) {\r\n\r\n this._layerMetadata = await this.getLayerMetadata(this._layerId);\r\n if (!this._layerMetadata) {\r\n Logger.logError(loggerCategory, \"Could not layer metadata\");\r\n throw new ServerError(IModelStatus.ValidationFailed, \"\");\r\n }\r\n }\r\n\r\n // Check supported query formats: JSON and PBF are currently implemented by this provider\r\n // Note: needs to be checked on the layer metadata, service metadata advertises a different set of formats\r\n if (this._layerMetadata.supportedQueryFormats) {\r\n const formats: string[] = this._layerMetadata.supportedQueryFormats.split(\", \");\r\n if (formats.includes(\"PBF\")) {\r\n this._format = \"PBF\";\r\n } else if (formats.includes (\"JSON\")) {\r\n this._format = \"JSON\";\r\n }\r\n }\r\n\r\n if (!this._format) {\r\n Logger.logError(loggerCategory, \"Could not get service JSON\");\r\n throw new ServerError(IModelStatus.ValidationFailed, \"\");\r\n }\r\n\r\n // Coordinates Quantization: If supported, server will transform for us the coordinates in the Tile coordinate space (pixels, origin = upper left corner\r\n // If not supported, transformation will be applied client side.\r\n if (this._layerMetadata.supportsCoordinatesQuantization) {\r\n this._supportsCoordinatesQuantization = true;\r\n }\r\n\r\n // Check for minScale / max scale\r\n const minScale = this._layerMetadata?.minScale || undefined; // undefined, 0 -> undefined\r\n const maxScale = this._layerMetadata?.maxScale || undefined; // undefined, 0 -> undefined\r\n const scales = ArcGisUtilities.getZoomLevelsScales(this.defaultMaximumZoomLevel, this.tileSize, minScale, maxScale);\r\n if (scales.minLod)\r\n this._minDepthFromLod = scales.minLod;\r\n if (scales.maxLod)\r\n this._maxDepthFromLod = scales.maxLod;\r\n\r\n this._symbologyRenderer = new ArcGisSymbologyRenderer(this._layerMetadata?.geometryType, this._layerMetadata?.drawingInfo?.renderer);\r\n }\r\n\r\n protected async getLayerMetadata(layerId: number) {\r\n let json;\r\n try {\r\n const url = new URL(this._settings.url);\r\n url.pathname = `${url.pathname}/${layerId}`;\r\n json = await ArcGisUtilities.getServiceJson(url.toString(), this._settings.formatId, this._settings.userName, this._settings.password);\r\n } catch {\r\n\r\n }\r\n return json;\r\n }\r\n\r\n public override get tileSize(): number { return 512; }\r\n public get format(): ArcGisFeatureFormat|undefined { return this._format; }\r\n\r\n // We don't use this method inside this provider (see constructFeatureUrl), but since this is an abstract method, we need to define something\r\n public async constructUrl(_row: number, _column: number, _zoomLevel: number): Promise<string> {\r\n return \"\";\r\n }\r\n\r\n public constructFeatureUrl(row: number, column: number, zoomLevel: number, format: ArcGisFeatureFormat, geomOverride?: ArcGisGeometry, outFields?: string, tolerance?: number, returnGeometry?: boolean): ArcGisFeatureUrl | undefined {\r\n\r\n const tileExtent = this.getEPSG3857Extent(row, column, zoomLevel);\r\n const tileEnvelope = {\r\n xmin: tileExtent.left, ymin: tileExtent.bottom,\r\n xmax: tileExtent.right, ymax: tileExtent.top,\r\n spatialReference: {wkid:102100, latestWkid:3857},\r\n };\r\n\r\n // Actual spatial filter.\r\n // By default, we request the tile extent. If 'cartoPoint' is specified,\r\n // we restrict the spatial to specific point. (i.e. GetFeatureInfo requests)\r\n // We a refine envelope is provided, it has the priority over 'cartoPoint'\r\n let geometry: ArcGisGeometry|undefined;\r\n if (geomOverride) {\r\n geometry = geomOverride;\r\n } else {\r\n geometry = {geom: tileEnvelope, type: \"esriGeometryEnvelope\"};\r\n }\r\n\r\n let quantizationParameters: FeatureQueryQuantizationParams|undefined;\r\n const toleranceWorld = (tileExtent.top - tileExtent.bottom) / this.tileSize;\r\n if (this._supportsCoordinatesQuantization) {\r\n quantizationParameters = {\r\n mode: \"view\",\r\n originPosition: \"upperLeft\",\r\n tolerance: toleranceWorld, // pixel size in world units\r\n extent: tileEnvelope,\r\n };\r\n }\r\n const url = new ArcGisFeatureQuery(\r\n this._settings.url,\r\n this._layerId,\r\n format,\r\n this._outSR,\r\n { geometry,\r\n geometryType: \"esriGeometryEnvelope\",\r\n returnExceededLimitFeatures: false,\r\n maxRecordCountFactor: 3, // This was grabbed from the ESRI web viewer request, not sure where this factor come from\r\n resultType: \"tile\",\r\n quantizationParameters,\r\n outFields,\r\n returnGeometry,\r\n distance: (tolerance ? tolerance*toleranceWorld :undefined) });\r\n\r\n let envelope: ArcGisExtent | undefined;\r\n if (geomOverride && geomOverride.type === \"esriGeometryEnvelope\"){\r\n envelope = geomOverride.geom as ArcGisExtent;\r\n } else {\r\n envelope = tileEnvelope;\r\n }\r\n\r\n return {url: url.toString(), envelope} ;\r\n\r\n }\r\n\r\n // Makes an identify request to ESRI MapService , and return it as a list MapLayerFeatureInfo object\r\n public override async getFeatureInfo(featureInfos: MapLayerFeatureInfo[], quadId: QuadId, carto: Cartographic, _tree: ImageryMapTileTree): Promise<void> {\r\n if (!this._querySupported || this.format === undefined)\r\n return;\r\n\r\n const cartoPoint = {\r\n x: this.getEPSG3857X(carto.longitudeDegrees),\r\n y: this.getEPSG3857Y(carto.latitudeDegrees),\r\n spatialReference: {wkid:102100, latestWkid:3857},\r\n };\r\n\r\n const doFeatureInfoQuery = async (format: ArcGisFeatureFormat, outFields?: string, returnGeometry?: boolean,) => {\r\n const infoUrl = this.constructFeatureUrl(quadId.row, quadId.column, quadId.level, format, {geom: cartoPoint, type: \"esriGeometryPoint\"}, outFields, 3 /* tolerance in pixel*/, returnGeometry);\r\n\r\n if (!infoUrl || infoUrl.url.length === 0) {\r\n Logger.logError(loggerCategory, `Could not construct feature info query URL`);\r\n return undefined;\r\n }\r\n\r\n const response = this.fetch(new URL(infoUrl.url), { method: \"GET\" });\r\n\r\n const featureResponse = new ArcGisFeatureResponse(format, response);\r\n return featureResponse.getResponseData();\r\n };\r\n\r\n if (this._debugFeatureGeom) {\r\n try {\r\n let responseData = await doFeatureInfoQuery(\"PBF\", \"\", true);\r\n if (responseData) {\r\n Logger.logInfo(loggerCategory, JSON.stringify(responseData.data.toObject()));\r\n }\r\n responseData = await doFeatureInfoQuery(\"JSON\", \"\", true);\r\n if (responseData) {\r\n Logger.logInfo(loggerCategory, JSON.stringify(responseData.data));\r\n }\r\n } catch (e) {\r\n Logger.logInfo(loggerCategory, `Error occured with debug FeatureInfo: ${e}`);\r\n }\r\n }\r\n\r\n try {\r\n const responseData = await doFeatureInfoQuery(this.format, \"*\", false);\r\n if (!responseData) {\r\n Logger.logError(loggerCategory, `Could not get feature info data`);\r\n return;\r\n }\r\n if (responseData.exceedTransferLimit) {\r\n Logger.logError(loggerCategory, `Could not get feature info : transfert limit exeeded.`);\r\n return;\r\n }\r\n const featureReader: ArcGisFeatureReader = this.format === \"PBF\" ? new ArcGisFeaturePBF(this._settings, this._layerMetadata) : new ArcGisFeatureJSON(this._settings, this._layerMetadata);\r\n featureReader.readFeatureInfo(responseData, featureInfos);\r\n\r\n } catch (e) {\r\n Logger.logError(loggerCategory, `Exception occured while loading feature info data : ${e}`);\r\n return;\r\n }\r\n\r\n return;\r\n }\r\n\r\n private async fetchTile(row: number, column: number, zoomLevel: number, refineEnvelope?: ArcGisExtent): Promise<ArcGisFeatureResponse | undefined> {\r\n if (!this.format) {\r\n assert(!\"No supported query format\");\r\n return undefined;\r\n }\r\n\r\n const geomOverride: ArcGisGeometry|undefined = (refineEnvelope ? {geom: refineEnvelope, type: \"esriGeometryEnvelope\"} : undefined);\r\n const tileUrl = this.constructFeatureUrl(row, column, zoomLevel, this.format, geomOverride);\r\n if (!tileUrl || tileUrl.url.length === 0) {\r\n Logger.logError(loggerCategory, `Could not construct feature query URL for tile ${zoomLevel}/${row}/${column}`);\r\n return undefined;\r\n }\r\n\r\n const response = this.fetch(new URL(tileUrl.url), { method: \"GET\" });\r\n // if ((await response).status !== 200){\r\n // return undefined;\r\n // }\r\n return new ArcGisFeatureResponse(this.format, response, tileUrl.envelope);\r\n }\r\n\r\n public drawTileDebugInfo(row: number, column: number, zoomLevel: number, context: CanvasRenderingContext2D ){\r\n context.fillStyle = \"cyan\";\r\n context.strokeRect(0, 0, this.tileSize, this.tileSize);\r\n context.font = \"30px Arial\";\r\n context.lineWidth = 5;\r\n context.fillText(`${zoomLevel}-${row}-${column}`, 10, 50);\r\n }\r\n\r\n // Compute transform that provides coordinates in the canvas coordinate system (pixels, origin = top-left)\r\n // from coordinate in world (i.e EPSG:3857)\r\n protected computeTileWorld2CanvasTransform(row: number, column: number, zoomLevel: number) {\r\n\r\n const tileExtentWorld3857 = this.getEPSG3857Extent(row, column, zoomLevel);\r\n const worldTileWidth = tileExtentWorld3857.right - tileExtentWorld3857.left;\r\n const canvasTileWidth = this.tileSize;\r\n const world2CanvasRatio = canvasTileWidth / worldTileWidth;\r\n const worldTileOrigin = Point3d.create(tileExtentWorld3857.left, tileExtentWorld3857.bottom);\r\n const worldTileExtent = Point3d.create(tileExtentWorld3857.right, tileExtentWorld3857.top);\r\n const canvasTileOriginOffset = worldTileOrigin.clone();\r\n const canvasTileExtentOffset = worldTileExtent.clone();\r\n canvasTileOriginOffset.scaleInPlace(world2CanvasRatio);\r\n canvasTileExtentOffset.scaleInPlace(world2CanvasRatio);\r\n const xTranslate = -1*canvasTileOriginOffset.x;\r\n\r\n // Canvas origin is uppler left corner, so we need to flip the y axsis\r\n const yTranslate = canvasTileExtentOffset.y; // y-axis flip\r\n const yWorld2CanvasRatio = -1*world2CanvasRatio; // y-axis flip\r\n\r\n const matrix = Matrix4d.createTranslationAndScaleXYZ(xTranslate, yTranslate, 0, world2CanvasRatio, yWorld2CanvasRatio, 1);\r\n return matrix.asTransform;\r\n }\r\n\r\n public override async loadTile(row: number, column: number, zoomLevel: number): Promise<ImageSource | undefined> {\r\n\r\n if ((this.status === MapLayerImageryProviderStatus.RequireAuth)) {\r\n return undefined;\r\n }\r\n const canvas = document.createElement(\"canvas\");\r\n canvas.width = this.tileSize;\r\n canvas.height = this.tileSize;\r\n\r\n const ctx = canvas.getContext(\"2d\");\r\n if (ctx == null) {\r\n Logger.logError(loggerCategory, \"No canvas context available for loading tile.\");\r\n assert(!\"no canvas context\");\r\n return undefined;\r\n }\r\n\r\n if (!this._symbologyRenderer) {\r\n Logger.logError(loggerCategory, \"No symbology renderer available for loading tile.\");\r\n assert(!\"No symbology renderer\");\r\n return undefined;\r\n }\r\n try {\r\n\r\n // Compute transform if CoordinatesQuantization is not supported by service\r\n let transfo: Transform | undefined;\r\n if (!this._supportsCoordinatesQuantization) {\r\n transfo = this.computeTileWorld2CanvasTransform(row, column, zoomLevel);\r\n if (!transfo) {\r\n Logger.logError(loggerCategory, `Could not compute data transformation for tile (${zoomLevel}/${row}/${column})`);\r\n assert(!\"Could not compute world to canvas transform\");\r\n }\r\n }\r\n\r\n const renderer = new ArcGisFeatureRenderer(ctx, this._symbologyRenderer, transfo);\r\n const featureReader: ArcGisFeatureReader = this.format === \"PBF\" ? new ArcGisFeaturePBF(this._settings, this._layerMetadata) : new ArcGisFeatureJSON(this._settings, this._layerMetadata);\r\n\r\n const getSubEnvelopes = (envelope: ArcGisExtent): ArcGisExtent[] => {\r\n const dx = (envelope.xmax - envelope.xmin) * 0.5;\r\n const dy = (envelope.xmax - envelope.xmin) * 0.5;\r\n const subEnvelopes: ArcGisExtent[] = [];\r\n for (let posX=0; posX<ArcGisFeatureProvider._nbSubTiles; posX++) {\r\n for (let posY=0; posY<ArcGisFeatureProvider._nbSubTiles; posY++) {\r\n subEnvelopes.push({\r\n xmin: envelope.xmin + (dx*posX), ymin: envelope.ymin + (dy*posY),\r\n xmax: envelope.xmin + (dx*(posX+1)), ymax: envelope.ymin + (dy*(posY+1)),\r\n spatialReference: {wkid:102100, latestWkid:3857},\r\n });\r\n }\r\n }\r\n return subEnvelopes;\r\n };\r\n\r\n // The strategy here is simple: we make a request for an area that represents the current tile (i.e envelope),\r\n // the server will either return the requested data OR a 'exceedTransferLimit' message (too much data to transfers).\r\n // In the latter case, we subdivide the previous request envelope in for 4 sub-envelopes,\r\n // and repeat again until we get data.\r\n const renderData = async (envelope?: ArcGisExtent) => {\r\n let response: ArcGisFeatureResponse | undefined;\r\n let responseData: ArcGisResponseData | undefined;\r\n try {\r\n response = await this.fetchTile(row, column, zoomLevel, envelope);\r\n if (!response) {\r\n Logger.logError(loggerCategory, `Error occurred while fetching tile (${zoomLevel}/${row}/${column})`);\r\n return ;\r\n }\r\n\r\n responseData = await response.getResponseData();\r\n if (!responseData) {\r\n Logger.logError(loggerCategory, `Could not get response data for tile (${zoomLevel}/${row}/${column})`);\r\n return ;\r\n }\r\n } catch (e) {\r\n Logger.logError(loggerCategory, `Exception occurred while loading tile (${zoomLevel}/${row}/${column}) : ${e}`);\r\n return;\r\n }\r\n\r\n if (responseData.exceedTransferLimit) {\r\n if (response.envelope) {\r\n const subEnvelopes = getSubEnvelopes(response.envelope);\r\n const renderPromises = [];\r\n for (const subEnvelope of subEnvelopes) {\r\n renderPromises.push(renderData(subEnvelope));\r\n }\r\n await Promise.all(renderPromises);\r\n } else {\r\n Logger.logError(loggerCategory, `Request exceeded transfer limit, could not refine request`);\r\n }\r\n } else {\r\n featureReader.readAndRender(responseData, renderer);\r\n }\r\n };\r\n await renderData();\r\n if (this._drawDebugInfo)\r\n this.drawTileDebugInfo(row, column, zoomLevel, ctx);\r\n } catch (e) {\r\n Logger.logError(loggerCategory, `Exception occurred while loading tile (${zoomLevel}/${row}/${column}) : ${e}`);\r\n }\r\n\r\n try {\r\n const dataUrl = canvas.toDataURL(\"image/png\");\r\n const header = \"data:image/png;base64,\";\r\n const dataUrl2 = dataUrl.substring(header.length);\r\n return new ImageSource(base64StringToUint8Array(dataUrl2), ImageSourceFormat.Png);\r\n } catch (e) {\r\n Logger.logError(loggerCategory, `Exception occurred while rendering tile (${zoomLevel}/${row}/${column}) : ${e}.`);\r\n }\r\n\r\n return undefined;\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare type ArcGisFeatureResultType = "none" | "standard" | "tile";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare type ArcGisFeatureGeometryType = "esriGeometryNull" | "esriGeometryPoint" | "esriGeometryMultipoint" | "esriGeometryLine" | "esriGeometryCircularArc" | "esriGeometryEllipticArc" | "esriGeometryBezier3Curve" | "esriGeometryPath" | "esriGeometryPolyline" | "esriGeometryRing" | "esriGeometryPolygon" | "esriGeometryEnvelope" | "esriGeometryAny" | "esriGeometryBag" | "esriGeometryMultiPatch" | "esriGeometryTriangleStrip" | "esriGeometryTriangeFan" | "esriGeometryRay" | "esriGeometrySphere" | "esriGeometryTriangles";
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare type ArcGisFeatureSpatialRel = "esriSpatialRelIntersects" | "esriSpatialRelContains" | "esriSpatialRelCrosses" | "esriSpatialRelEnvelopeIntersects" | "esriSpatialRelIndexIntersects" | "esriSpatialRelOverlaps" | "esriSpatialRelTouches" | "esriSpatialRelWithin";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export interface ArcGisGeometry {
|
|
9
|
+
type: ArcGisFeatureGeometryType;
|
|
10
|
+
geom: ArcGisExtent | ArcGisPointGeometry;
|
|
11
|
+
}
|
|
12
|
+
/** @internal */
|
|
13
|
+
export interface ArcGisSpatialReference {
|
|
14
|
+
wkid: number;
|
|
15
|
+
latestWkid: number;
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
export interface ArcGisExtent {
|
|
19
|
+
xmin: number;
|
|
20
|
+
xmax: number;
|
|
21
|
+
ymin: number;
|
|
22
|
+
ymax: number;
|
|
23
|
+
spatialReference: ArcGisSpatialReference;
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export interface ArcGisPointGeometry {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
spatialReference: ArcGisSpatialReference;
|
|
30
|
+
}
|
|
31
|
+
/** @internal */
|
|
32
|
+
export interface FeatureQueryQuantizationParams {
|
|
33
|
+
extent: ArcGisExtent;
|
|
34
|
+
mode: "view" | "edit";
|
|
35
|
+
originPosition: "upperLeft" | "lowerLeft";
|
|
36
|
+
tolerance: number;
|
|
37
|
+
}
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare type ArcGisFeatureFormat = "JSON" | "PBF";
|
|
40
|
+
/** @internal */
|
|
41
|
+
export interface ArcGisFeatureQueryParams {
|
|
42
|
+
/** This option can be used for fetching query results up to the resultRecordCount specified.
|
|
43
|
+
* When resultOffset is specified but this parameter is not, the map service defaults it to maxRecordCount.
|
|
44
|
+
* The maximum value for this parameter is the value of the layer's maxRecordCount property.
|
|
45
|
+
* The minimum value entered for this parameter cannot be below 1.
|
|
46
|
+
* This parameter only applies if supportsPagination is true.
|
|
47
|
+
* */
|
|
48
|
+
resultRecordCount?: number;
|
|
49
|
+
/** This option can be used for fetching query results up to the resultRecordCount specified.
|
|
50
|
+
* When resultOffset is specified but this parameter is not, the map service defaults it to maxRecordCount.
|
|
51
|
+
* The maximum value for this parameter is the value of the layer's maxRecordCount property.
|
|
52
|
+
* The minimum value entered for this parameter cannot be below 1.
|
|
53
|
+
* This parameter only applies if supportsPagination is true.
|
|
54
|
+
* */
|
|
55
|
+
resultOffset?: number;
|
|
56
|
+
/** If true, the result includes the geometry associated with each feature returned. */
|
|
57
|
+
returnGeometry?: boolean;
|
|
58
|
+
geometry?: ArcGisGeometry;
|
|
59
|
+
geometryType?: ArcGisFeatureGeometryType;
|
|
60
|
+
spatialRel?: ArcGisFeatureSpatialRel;
|
|
61
|
+
resultType?: ArcGisFeatureResultType;
|
|
62
|
+
maxRecordCountFactor?: number;
|
|
63
|
+
returnExceededLimitFeatures?: boolean;
|
|
64
|
+
quantizationParameters?: FeatureQueryQuantizationParams;
|
|
65
|
+
/** The list of fields to be included in the returned result set. This list is a comma-delimited list of field names.
|
|
66
|
+
* You can also specify the wildcard "*" as the value of this parameter.
|
|
67
|
+
* */
|
|
68
|
+
outFields?: string;
|
|
69
|
+
/** The buffer distance for the input geometries.
|
|
70
|
+
* */
|
|
71
|
+
distance?: number;
|
|
72
|
+
}
|
|
73
|
+
/** @internal */
|
|
74
|
+
export declare class ArcGisFeatureQuery {
|
|
75
|
+
baseUrl: string;
|
|
76
|
+
layerIdx: number;
|
|
77
|
+
format: ArcGisFeatureFormat;
|
|
78
|
+
resultRecordCount?: number;
|
|
79
|
+
resultOffset?: number;
|
|
80
|
+
returnGeometry?: boolean;
|
|
81
|
+
geometry?: ArcGisGeometry;
|
|
82
|
+
spatialRel?: ArcGisFeatureSpatialRel;
|
|
83
|
+
resultType?: ArcGisFeatureResultType;
|
|
84
|
+
maxRecordCountFactor?: number;
|
|
85
|
+
returnExceededLimitFeatures?: boolean;
|
|
86
|
+
outSR: number;
|
|
87
|
+
outFields?: string;
|
|
88
|
+
distance?: number;
|
|
89
|
+
quantizationParams?: FeatureQueryQuantizationParams;
|
|
90
|
+
constructor(baseUrl: string, layerIdx: number, format: ArcGisFeatureFormat, outSR: number, params?: ArcGisFeatureQueryParams);
|
|
91
|
+
toString(): string;
|
|
92
|
+
private static appendParam;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=ArcGisFeatureQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArcGisFeatureQuery.d.ts","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisFeatureQuery.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB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