@itwin/map-layers-formats 4.1.0-dev.8 → 4.1.0-dev.80
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/CHANGELOG.md +74 -1
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts +19 -0
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js +46 -0
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +3 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +16 -8
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +157 -45
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +6 -4
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +14 -0
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/{ArcGisFeatureJSON.js → ArcGisJsonFeatureReader.js} +51 -55
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts +22 -0
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js +249 -0
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +32 -77
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +88 -128
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/cjs/ArcGisFeature/EsriSymbology.d.ts +152 -0
- package/lib/cjs/ArcGisFeature/EsriSymbology.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/EsriSymbology.js +181 -0
- package/lib/cjs/ArcGisFeature/EsriSymbology.js.map +1 -0
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts +34 -0
- package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
- package/lib/cjs/Tools/MapFeatureInfoDecorator.js +281 -0
- package/lib/cjs/Tools/MapFeatureInfoDecorator.js.map +1 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.d.ts +38 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.d.ts.map +1 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.js +113 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.js.map +1 -0
- package/lib/cjs/map-layers-formats.d.ts +1 -0
- package/lib/cjs/map-layers-formats.d.ts.map +1 -1
- package/lib/cjs/map-layers-formats.js +1 -0
- package/lib/cjs/map-layers-formats.js.map +1 -1
- package/lib/cjs/mapLayersFormats.d.ts +12 -1
- package/lib/cjs/mapLayersFormats.d.ts.map +1 -1
- package/lib/cjs/mapLayersFormats.js +11 -1
- package/lib/cjs/mapLayersFormats.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts +19 -0
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js +42 -0
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +4 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +16 -8
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +158 -46
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +4 -2
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +14 -0
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/{ArcGisFeatureJSON.js → ArcGisJsonFeatureReader.js} +51 -55
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts +22 -0
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js +245 -0
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +32 -77
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +84 -124
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/esm/ArcGisFeature/EsriSymbology.d.ts +152 -0
- package/lib/esm/ArcGisFeature/EsriSymbology.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/EsriSymbology.js +170 -0
- package/lib/esm/ArcGisFeature/EsriSymbology.js.map +1 -0
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts +34 -0
- package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
- package/lib/esm/Tools/MapFeatureInfoDecorator.js +277 -0
- package/lib/esm/Tools/MapFeatureInfoDecorator.js.map +1 -0
- package/lib/esm/Tools/MapFeatureInfoTool.d.ts +38 -0
- package/lib/esm/Tools/MapFeatureInfoTool.d.ts.map +1 -0
- package/lib/esm/Tools/MapFeatureInfoTool.js +110 -0
- package/lib/esm/Tools/MapFeatureInfoTool.js.map +1 -0
- package/lib/esm/map-layers-formats.d.ts +1 -0
- package/lib/esm/map-layers-formats.d.ts.map +1 -1
- package/lib/esm/map-layers-formats.js +1 -0
- package/lib/esm/map-layers-formats.js.map +1 -1
- package/lib/esm/mapLayersFormats.d.ts +12 -1
- package/lib/esm/mapLayersFormats.d.ts.map +1 -1
- package/lib/esm/mapLayersFormats.js +13 -2
- package/lib/esm/mapLayersFormats.js.map +1 -1
- package/lib/public/locales/en/mapLayersFormats.json +12 -0
- package/package.json +19 -22
- package/.nycrc +0 -10
- package/.rush/temp/operation/build/all.log +0 -3
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/operation/cover/all.log +0 -98
- package/.rush/temp/operation/cover/state.json +0 -3
- package/.rush/temp/operation/docs/all.log +0 -30
- package/.rush/temp/operation/docs/state.json +0 -3
- package/.rush/temp/package-deps_build.json +0 -36
- package/.rush/temp/package-deps_cover.json +0 -36
- package/.rush/temp/package-deps_docs.json +0 -36
- package/.rush/temp/shrinkwrap-deps.json +0 -505
- package/CHANGELOG.json +0 -119
- package/config/rush-project.json +0 -6
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +0 -15
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +0 -201
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +0 -143
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -35
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -162
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -168
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -680
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -104
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -215
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -95
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -60
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +0 -7
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/Mocks.js +0 -19
- package/lib/cjs/test/ArcGisFeature/Mocks.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +0 -420
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -427
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
- package/lib/cjs/test/coverage/.nyc_output/43b4d4c9-a360-43df-88fe-ecfb97b8832b.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/5c53bf83-e91a-4706-bc7c-fa9b79502114.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/43b4d4c9-a360-43df-88fe-ecfb97b8832b.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/5c53bf83-e91a-4706-bc7c-fa9b79502114.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +0 -1
- package/lib/cjs/test/coverage/cobertura-coverage.xml +0 -1169
- package/lib/cjs/test/coverage/lcov-report/base.css +0 -224
- package/lib/cjs/test/coverage/lcov-report/block-navigation.js +0 -87
- package/lib/cjs/test/coverage/lcov-report/favicon.png +0 -0
- package/lib/cjs/test/coverage/lcov-report/index.html +0 -131
- package/lib/cjs/test/coverage/lcov-report/prettify.css +0 -1
- package/lib/cjs/test/coverage/lcov-report/prettify.js +0 -2
- package/lib/cjs/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/lib/cjs/test/coverage/lcov-report/sorter.js +0 -196
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +0 -133
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +0 -550
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +0 -730
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +0 -1546
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +0 -763
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +0 -223
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +0 -598
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +0 -301
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +0 -832
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +0 -236
- package/lib/cjs/test/coverage/lcov-report/src/index.html +0 -131
- package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +0 -130
- package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +0 -163
- package/lib/cjs/test/coverage/lcov.info +0 -1358
- package/lib/cjs/tsconfig.tsbuildinfo +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +0 -15
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +0 -197
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +0 -139
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -33
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -160
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -166
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -678
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -102
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -213
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -93
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -58
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts +0 -7
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/Mocks.js +0 -16
- package/lib/esm/test/ArcGisFeature/Mocks.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +0 -417
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -424
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
- package/lib/esm/tsconfig.tsbuildinfo +0 -1
- package/lib/test/junit_results.xml +0 -159
- package/map-layers-formats.build.log +0 -30
- package/src/ArcGisFeature/ArcGisFeatureFormat.ts +0 -16
- package/src/ArcGisFeature/ArcGisFeatureJSON.ts +0 -155
- package/src/ArcGisFeature/ArcGisFeaturePBF.ts +0 -215
- package/src/ArcGisFeature/ArcGisFeatureProvider.ts +0 -487
- package/src/ArcGisFeature/ArcGisFeatureQuery.ts +0 -226
- package/src/ArcGisFeature/ArcGisFeatureReader.ts +0 -46
- package/src/ArcGisFeature/ArcGisFeatureRenderer.ts +0 -171
- package/src/ArcGisFeature/ArcGisFeatureResponse.ts +0 -72
- package/src/ArcGisFeature/ArcGisSymbologyRenderer.ts +0 -249
- package/src/ArcGisFeature/esriPBuffer.gen.ts +0 -2612
- package/src/map-layers-formats.ts +0 -15
- package/src/mapLayersFormats.ts +0 -26
- package/src/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.ts +0 -46
- package/src/test/ArcGisFeature/ArcGisFeatureJSON.test.ts +0 -202
- package/src/test/ArcGisFeature/ArcGisFeaturePBF.test.ts +0 -227
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +0 -805
- package/src/test/ArcGisFeature/ArcGisFeatureQuery.test.ts +0 -117
- package/src/test/ArcGisFeature/ArcGisFeatureRenderer.test.ts +0 -296
- package/src/test/ArcGisFeature/ArcGisFeatureResponse.test.ts +0 -109
- package/src/test/ArcGisFeature/ArcGisSymbologyRenderer.test.ts +0 -77
- package/src/test/ArcGisFeature/Mocks.ts +0 -19
- package/src/test/ArcGisFeature/NewYorkDataset.ts +0 -423
- package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +0 -455
- package/tsconfig.json +0 -20
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="Mocha Tests" time="0.684" tests="69" failures="0">
|
|
3
|
-
<testsuite name="Root Suite" timestamp="2023-05-19T05:14:27" tests="0" time="0.000" failures="0">
|
|
4
|
-
</testsuite>
|
|
5
|
-
<testsuite name="ArcGisFeaturePBF" timestamp="2023-05-19T05:14:27" tests="2" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureFeatureFormats.test.js" time="0.014" failures="0">
|
|
6
|
-
<testcase name="ArcGisFeaturePBF should createImageryProvider" time="0.001" classname="should createImageryProvider">
|
|
7
|
-
</testcase>
|
|
8
|
-
<testcase name="ArcGisFeaturePBF should validateSource" time="0.004" classname="should validateSource">
|
|
9
|
-
</testcase>
|
|
10
|
-
</testsuite>
|
|
11
|
-
<testsuite name="ArcGisFeatureJSON" timestamp="2023-05-19T05:14:27" tests="9" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureJSON.test.js" time="0.034" failures="0">
|
|
12
|
-
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyTansportation)" time="0.013" classname="should read FeatureInfo in JSON (phillyTansportation)">
|
|
13
|
-
</testcase>
|
|
14
|
-
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyAirport)" time="0.000" classname="should read FeatureInfo in JSON (phillyAirport)">
|
|
15
|
-
</testcase>
|
|
16
|
-
<testcase name="ArcGisFeatureJSON should deflate coordinates array" time="0.001" classname="should deflate coordinates array">
|
|
17
|
-
</testcase>
|
|
18
|
-
<testcase name="ArcGisFeatureJSON should readAndRender single ring polygon feature" time="0.003" classname="should readAndRender single ring polygon feature">
|
|
19
|
-
</testcase>
|
|
20
|
-
<testcase name="ArcGisFeatureJSON should readAndRender multiple ring polygon feature" time="0.002" classname="should readAndRender multiple ring polygon feature">
|
|
21
|
-
</testcase>
|
|
22
|
-
<testcase name="ArcGisFeatureJSON should readAndRender simple path" time="0.001" classname="should readAndRender simple path">
|
|
23
|
-
</testcase>
|
|
24
|
-
<testcase name="ArcGisFeatureJSON should readAndRender multi path" time="0.001" classname="should readAndRender multi path">
|
|
25
|
-
</testcase>
|
|
26
|
-
<testcase name="ArcGisFeatureJSON should readAndRender simple point" time="0.004" classname="should readAndRender simple point">
|
|
27
|
-
</testcase>
|
|
28
|
-
<testcase name="ArcGisFeatureJSON should log error when readAndRender / readFeatureInfo is called invalid response Data" time="0.002" classname="should log error when readAndRender / readFeatureInfo is called invalid response Data">
|
|
29
|
-
</testcase>
|
|
30
|
-
</testsuite>
|
|
31
|
-
<testsuite name="ArcGisFeaturePBF" timestamp="2023-05-19T05:14:27" tests="10" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeaturePBF.test.js" time="0.044" failures="0">
|
|
32
|
-
<testcase name="ArcGisFeaturePBF should convert pbf geometry type to Esri types" time="0.001" classname="should convert pbf geometry type to Esri types">
|
|
33
|
-
</testcase>
|
|
34
|
-
<testcase name="ArcGisFeaturePBF should read FeatureInfo in PBF" time="0.014" classname="should read FeatureInfo in PBF">
|
|
35
|
-
</testcase>
|
|
36
|
-
<testcase name="ArcGisFeaturePBF should read FeatureInfo from PBF (philly transportation)" time="0.010" classname="should read FeatureInfo from PBF (philly transportation)">
|
|
37
|
-
</testcase>
|
|
38
|
-
<testcase name="ArcGisFeaturePBF should read all data types from FeatureInfo " time="0.003" classname="should read all data types from FeatureInfo ">
|
|
39
|
-
</testcase>
|
|
40
|
-
<testcase name="ArcGisFeaturePBF should readAndRender single ring polygon feature" time="0.002" classname="should readAndRender single ring polygon feature">
|
|
41
|
-
</testcase>
|
|
42
|
-
<testcase name="ArcGisFeaturePBF should readAndRender multiple ring polygon feature" time="0.002" classname="should readAndRender multiple ring polygon feature">
|
|
43
|
-
</testcase>
|
|
44
|
-
<testcase name="ArcGisFeaturePBF should readAndRender simple path" time="0.001" classname="should readAndRender simple path">
|
|
45
|
-
</testcase>
|
|
46
|
-
<testcase name="ArcGisFeaturePBF should readAndRender multi path" time="0.001" classname="should readAndRender multi path">
|
|
47
|
-
</testcase>
|
|
48
|
-
<testcase name="ArcGisFeaturePBF should readAndRender simple point" time="0.003" classname="should readAndRender simple point">
|
|
49
|
-
</testcase>
|
|
50
|
-
<testcase name="ArcGisFeaturePBF should log error when readAndRender / readFeatureInfo is called invalid response Data" time="0.002" classname="should log error when readAndRender / readFeatureInfo is called invalid response Data">
|
|
51
|
-
</testcase>
|
|
52
|
-
</testsuite>
|
|
53
|
-
<testsuite name="ArcGisFeatureProvider" timestamp="2023-05-19T05:14:27" tests="23" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureProvider.test.js" time="0.430" failures="0">
|
|
54
|
-
<testcase name="ArcGisFeatureProvider should initialize with valid data" time="0.004" classname="should initialize with valid data">
|
|
55
|
-
</testcase>
|
|
56
|
-
<testcase name="ArcGisFeatureProvider should not initialize with no service metadata" time="0.003" classname="should not initialize with no service metadata">
|
|
57
|
-
</testcase>
|
|
58
|
-
<testcase name="ArcGisFeatureProvider should update status when invalid token error from service" time="0.002" classname="should update status when invalid token error from service">
|
|
59
|
-
</testcase>
|
|
60
|
-
<testcase name="ArcGisFeatureProvider should throw query capability not supported" time="0.002" classname="should throw query capability not supported">
|
|
61
|
-
</testcase>
|
|
62
|
-
<testcase name="ArcGisFeatureProvider should pick the first visible sub-layer when multiple visible sub-layers" time="0.004" classname="should pick the first visible sub-layer when multiple visible sub-layers">
|
|
63
|
-
</testcase>
|
|
64
|
-
<testcase name="ArcGisFeatureProvider should pick sub-layers from service metadata if none provided on layer settings" time="0.002" classname="should pick sub-layers from service metadata if none provided on layer settings">
|
|
65
|
-
</testcase>
|
|
66
|
-
<testcase name="ArcGisFeatureProvider should throw error if no layers in capabilities" time="0.000" classname="should throw error if no layers in capabilities">
|
|
67
|
-
</testcase>
|
|
68
|
-
<testcase name="ArcGisFeatureProvider should throw if no layer metadata from service" time="0.001" classname="should throw if no layer metadata from service">
|
|
69
|
-
</testcase>
|
|
70
|
-
<testcase name="ArcGisFeatureProvider should read supported supported format" time="0.003" classname="should read supported supported format">
|
|
71
|
-
</testcase>
|
|
72
|
-
<testcase name="ArcGisFeatureProvider should compute minLod/maxLod" time="0.001" classname="should compute minLod/maxLod">
|
|
73
|
-
</testcase>
|
|
74
|
-
<testcase name="ArcGisFeatureProvider should construct empty url" time="0.000" classname="should construct empty url">
|
|
75
|
-
</testcase>
|
|
76
|
-
<testcase name="ArcGisFeatureProvider should construct feature query url" time="0.026" classname="should construct feature query url">
|
|
77
|
-
</testcase>
|
|
78
|
-
<testcase name="ArcGisFeatureProvider should log error when getFeatureInfo cannot be performed" time="0.004" classname="should log error when getFeatureInfo cannot be performed">
|
|
79
|
-
</testcase>
|
|
80
|
-
<testcase name="ArcGisFeatureProvider should process data in getFeatureInfo" time="0.017" classname="should process data in getFeatureInfo">
|
|
81
|
-
</testcase>
|
|
82
|
-
<testcase name="ArcGisFeatureProvider should log error when exceed transfert limit" time="0.123" classname="should log error when exceed transfert limit">
|
|
83
|
-
</testcase>
|
|
84
|
-
<testcase name="ArcGisFeatureProvider should log error when exceed exception thrown limit" time="0.013" classname="should log error when exceed exception thrown limit">
|
|
85
|
-
</testcase>
|
|
86
|
-
<testcase name="ArcGisFeatureProvider should debug Feature Geom" time="0.027" classname="should debug Feature Geom">
|
|
87
|
-
</testcase>
|
|
88
|
-
<testcase name="ArcGisFeatureProvider should compute computeTileWorld2CanvasTransform" time="0.003" classname="should compute computeTileWorld2CanvasTransform">
|
|
89
|
-
</testcase>
|
|
90
|
-
<testcase name="ArcGisFeatureProvider should loadTile from PBF request" time="0.007" classname="should loadTile from PBF request">
|
|
91
|
-
</testcase>
|
|
92
|
-
<testcase name="ArcGisFeatureProvider should loadTile from JSON request" time="0.005" classname="should loadTile from JSON request">
|
|
93
|
-
</testcase>
|
|
94
|
-
<testcase name="ArcGisFeatureProvider should make sub request if loadtile request return 'exceedTransferLimit'" time="0.005" classname="should make sub request if loadtile request return 'exceedTransferLimit'">
|
|
95
|
-
</testcase>
|
|
96
|
-
<testcase name="ArcGisFeatureProvider fetchTile should return undefined when to format defined" time="0.005" classname="fetchTile should return undefined when to format defined">
|
|
97
|
-
</testcase>
|
|
98
|
-
<testcase name="ArcGisFeatureProvider fetchTile should call fetch with the proper URL" time="0.003" classname="fetchTile should call fetch with the proper URL">
|
|
99
|
-
</testcase>
|
|
100
|
-
</testsuite>
|
|
101
|
-
<testsuite name="ArcGisFeatureQuery" timestamp="2023-05-19T05:14:28" tests="3" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureQuery.test.js" time="0.047" failures="0">
|
|
102
|
-
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.003" classname="should not apply different switches if not needed">
|
|
103
|
-
</testcase>
|
|
104
|
-
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.007" classname="should not apply different switches if not needed">
|
|
105
|
-
</testcase>
|
|
106
|
-
<testcase name="ArcGisFeatureQuery should not include geometry only when applicable" time="0.003" classname="should not include geometry only when applicable">
|
|
107
|
-
</testcase>
|
|
108
|
-
</testsuite>
|
|
109
|
-
<testsuite name="ArcGisFeatureRenderer" timestamp="2023-05-19T05:14:28" tests="12" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureRenderer.test.js" time="0.084" failures="0">
|
|
110
|
-
<testcase name="ArcGisFeatureRenderer should render simple path, stride = 2" time="0.001" classname="should render simple path, stride = 2">
|
|
111
|
-
</testcase>
|
|
112
|
-
<testcase name="ArcGisFeatureRenderer should render simple filled path" time="0.002" classname="should render simple filled path">
|
|
113
|
-
</testcase>
|
|
114
|
-
<testcase name="ArcGisFeatureRenderer should render simple Path, stride = 3" time="0.001" classname="should render simple Path, stride = 3">
|
|
115
|
-
</testcase>
|
|
116
|
-
<testcase name="ArcGisFeatureRenderer should render multiple Paths, stride = 2" time="0.001" classname="should render multiple Paths, stride = 2">
|
|
117
|
-
</testcase>
|
|
118
|
-
<testcase name="ArcGisFeatureRenderer should not render invalid with stride value" time="0.000" classname="should not render invalid with stride value">
|
|
119
|
-
</testcase>
|
|
120
|
-
<testcase name="ArcGisFeatureRenderer should render Path and apply transform, relativeCoords OFF" time="0.001" classname="should render Path and apply transform, relativeCoords OFF">
|
|
121
|
-
</testcase>
|
|
122
|
-
<testcase name="ArcGisFeatureRenderer should render single Point, no transform, relativeCoords OFF" time="0.001" classname="should render single Point, no transform, relativeCoords OFF">
|
|
123
|
-
</testcase>
|
|
124
|
-
<testcase name="ArcGisFeatureRenderer should render single Point and apply transform, relativeCoords OFF" time="0.001" classname="should render single Point and apply transform, relativeCoords OFF">
|
|
125
|
-
</testcase>
|
|
126
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point, transform, relativeCoords OFF" time="0.001" classname="should render multi Point, transform, relativeCoords OFF">
|
|
127
|
-
</testcase>
|
|
128
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords OFF" time="0.002" classname="should render multi Point and apply transform, relativeCoords OFF">
|
|
129
|
-
</testcase>
|
|
130
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords ON" time="0.008" classname="should render multi Point and apply transform, relativeCoords ON">
|
|
131
|
-
</testcase>
|
|
132
|
-
<testcase name="ArcGisFeatureRenderer should render and apply transform, relativeCoords ON" time="0.000" classname="should render and apply transform, relativeCoords ON">
|
|
133
|
-
</testcase>
|
|
134
|
-
</testsuite>
|
|
135
|
-
<testsuite name="ArcGisFeatureResponse" timestamp="2023-05-19T05:14:28" tests="7" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureResponse.test.js" time="0.019" failures="0">
|
|
136
|
-
<testcase name="ArcGisFeatureResponse should return undefined if http error" time="0.000" classname="should return undefined if http error">
|
|
137
|
-
</testcase>
|
|
138
|
-
<testcase name="ArcGisFeatureResponse should return undefined if invalid PBF data" time="0.000" classname="should return undefined if invalid PBF data">
|
|
139
|
-
</testcase>
|
|
140
|
-
<testcase name="ArcGisFeatureResponse should create FeatureCollectionPBuffer from PBF data" time="0.004" classname="should create FeatureCollectionPBuffer from PBF data">
|
|
141
|
-
</testcase>
|
|
142
|
-
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from PBF object" time="0.007" classname="should report exceededTransferLimit from PBF object">
|
|
143
|
-
</testcase>
|
|
144
|
-
<testcase name="ArcGisFeatureResponse should return undefined if invalid JSON" time="0.000" classname="should return undefined if invalid JSON">
|
|
145
|
-
</testcase>
|
|
146
|
-
<testcase name="ArcGisFeatureResponse should return JSON data" time="0.000" classname="should return JSON data">
|
|
147
|
-
</testcase>
|
|
148
|
-
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from JSON object" time="0.000" classname="should report exceededTransferLimit from JSON object">
|
|
149
|
-
</testcase>
|
|
150
|
-
</testsuite>
|
|
151
|
-
<testsuite name="ArcGisSymbologyRenderer" timestamp="2023-05-19T05:14:28" tests="3" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisSymbologyRenderer.test.js" time="0.006" failures="0">
|
|
152
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from incomplete drawing info" time="0.003" classname="should construct renderer from incomplete drawing info">
|
|
153
|
-
</testcase>
|
|
154
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from unique value drawing info" time="0.000" classname="should construct renderer from unique value drawing info">
|
|
155
|
-
</testcase>
|
|
156
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from point symbology drawing info" time="0.000" classname="should construct renderer from point symbology drawing info">
|
|
157
|
-
</testcase>
|
|
158
|
-
</testsuite>
|
|
159
|
-
</testsuites>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Invoking: betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/map-layers-formats/file.json --tsIndexFile=./map-layers-formats.ts --onlyJson --excludes=**/ArcGisFeature/*.ts,**/*.gen.ts
|
|
2
|
-
Running command:
|
|
3
|
-
node D:\vsts_a\7\s\tools\build\scripts\docs.js --json ../../generated-docs/core/map-layers-formats/file.json --includes ../../generated-docs/extract --excludes **/ArcGisFeature/*.ts,**/*.gen.ts --tsIndexFile ./map-layers-formats.ts --onlyJson
|
|
4
|
-
Arguments to TypeDoc: [
|
|
5
|
-
"--entryPointStrategy",
|
|
6
|
-
"expand",
|
|
7
|
-
"D:\\vsts_a\\7\\s\\extensions\\map-layers-formats\\src",
|
|
8
|
-
"--excludePrivate",
|
|
9
|
-
"--hideGenerator",
|
|
10
|
-
"--logLevel",
|
|
11
|
-
"Error",
|
|
12
|
-
"--exclude",
|
|
13
|
-
"**/node_modules/**/*",
|
|
14
|
-
"--exclude",
|
|
15
|
-
"**/*test*/**/*",
|
|
16
|
-
"--exclude",
|
|
17
|
-
"**/**/ArcGisFeature/*.ts",
|
|
18
|
-
"--exclude",
|
|
19
|
-
"**/*.gen.ts/**/*",
|
|
20
|
-
"--json",
|
|
21
|
-
"../../generated-docs/core/map-layers-formats/file.json",
|
|
22
|
-
"--readme",
|
|
23
|
-
"none",
|
|
24
|
-
"--plugin",
|
|
25
|
-
"typedoc-plugin-merge-modules",
|
|
26
|
-
"--mergeModulesMergeMode",
|
|
27
|
-
"module",
|
|
28
|
-
"--includes",
|
|
29
|
-
"../../generated-docs/extract"
|
|
30
|
-
]
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ImageMapLayerSettings } from "@itwin/core-common";
|
|
6
|
-
import { ArcGisUtilities, ImageryMapLayerFormat, MapLayerImageryProvider, MapLayerSourceValidation } from "@itwin/core-frontend";
|
|
7
|
-
import { ArcGisFeatureProvider } from "./ArcGisFeatureProvider";
|
|
8
|
-
|
|
9
|
-
/** @internal */
|
|
10
|
-
export class ArcGisFeatureMapLayerFormat extends ImageryMapLayerFormat {
|
|
11
|
-
public static override formatId = "ArcGISFeature";
|
|
12
|
-
public static override createImageryProvider(settings: ImageMapLayerSettings): MapLayerImageryProvider | undefined { return new ArcGisFeatureProvider(settings); }
|
|
13
|
-
public static override async validateSource(url: string, userName?: string, password?: string, ignoreCache?: boolean): Promise<MapLayerSourceValidation> {
|
|
14
|
-
return ArcGisUtilities.validateSource(url, this.formatId, ["query"], userName, password, ignoreCache);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
import { PrimitiveValue, PropertyValueFormat, StandardTypeNames } from "@itwin/appui-abstract";
|
|
7
|
-
import { ImageMapLayerSettings } from "@itwin/core-common";
|
|
8
|
-
import { MapFeatureInfoRecord, MapLayerFeatureInfo, MapSubLayerFeatureInfo } from "@itwin/core-frontend";
|
|
9
|
-
import { Transform } from "@itwin/core-geometry";
|
|
10
|
-
import { ArcGisFeatureReader } from "./ArcGisFeatureReader";
|
|
11
|
-
import { ArcGisFeatureRenderer } from "./ArcGisFeatureRenderer";
|
|
12
|
-
import { ArcGisFieldType, ArcGisResponseData } from "./ArcGisFeatureResponse";
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export class ArcGisFeatureJSON extends ArcGisFeatureReader {
|
|
16
|
-
public transform: Transform|undefined;
|
|
17
|
-
|
|
18
|
-
public constructor(settings: ImageMapLayerSettings, layerMetadata: any) {
|
|
19
|
-
super(settings, layerMetadata);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public readAndRender(response: ArcGisResponseData, renderer: ArcGisFeatureRenderer) {
|
|
23
|
-
const responseObj = response.data;
|
|
24
|
-
|
|
25
|
-
if (responseObj?.geometryType === "esriGeometryPolyline" || responseObj?.geometryType === "esriGeometryPolygon") {
|
|
26
|
-
const fill = (responseObj.geometryType === "esriGeometryPolygon");
|
|
27
|
-
for (const feature of responseObj.features) {
|
|
28
|
-
let offset = 0;
|
|
29
|
-
const lengths: number[] = [];
|
|
30
|
-
const coords: number[] = [];
|
|
31
|
-
|
|
32
|
-
if (feature?.geometry?.rings) {
|
|
33
|
-
for (const ring of feature?.geometry?.rings) {
|
|
34
|
-
offset = ArcGisFeatureJSON.deflateCoordinates(ring, coords, 2, offset);
|
|
35
|
-
lengths.push(ring.length);
|
|
36
|
-
}
|
|
37
|
-
} else if (feature?.geometry?.paths) {
|
|
38
|
-
for (const path of feature?.geometry?.paths) {
|
|
39
|
-
offset = ArcGisFeatureJSON.deflateCoordinates(path, coords, 2, offset);
|
|
40
|
-
lengths.push(path.length);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
renderer.renderPath(lengths, coords, fill, 2, renderer.transform === undefined);
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
} else if (responseObj?.geometryType === "esriGeometryPoint" || responseObj?.geometryType === "esriGeometryMultiPoint") {
|
|
47
|
-
for (const feature of responseObj.features) {
|
|
48
|
-
// TODO: Add support for multipoint
|
|
49
|
-
if (feature.geometry) {
|
|
50
|
-
const lengths: number[] = [];
|
|
51
|
-
const coords: number[] = [feature.geometry.x, feature.geometry.y];
|
|
52
|
-
renderer.renderPoint(lengths, coords, 2, renderer.transform === undefined);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Converts an [[x1,y1], [x2,y2], ...] to [x1,y1,x2,y2, ...]
|
|
59
|
-
// stride is the number of dimensions
|
|
60
|
-
// https://github.com/openlayers/openlayers/blob/7a2f87caca9ddc1912d910f56eb5637445fc11f6/src/ol/geom/flat/deflate.js#L26
|
|
61
|
-
protected static deflateCoordinates( coordinates: number[][], flatCoordinates: number[], stride: number, offset: number) {
|
|
62
|
-
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
63
|
-
const coordinate = coordinates[i];
|
|
64
|
-
for (let j = 0; j < stride; ++j)
|
|
65
|
-
flatCoordinates[offset++] = coordinate[j];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return offset;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
public readFeatureInfo(response: ArcGisResponseData, featureInfos: MapLayerFeatureInfo[]) {
|
|
72
|
-
const responseObj = response.data;
|
|
73
|
-
if (responseObj === undefined || !Array.isArray(responseObj.features))
|
|
74
|
-
return;
|
|
75
|
-
|
|
76
|
-
const layerInfo: MapLayerFeatureInfo = {layerName: this._settings.name};
|
|
77
|
-
|
|
78
|
-
// Create a signature index for every field name / type.
|
|
79
|
-
const fieldsType: {[key: string]: ArcGisFieldType} = {};
|
|
80
|
-
for (const fieldInfo of responseObj.fields) {
|
|
81
|
-
fieldsType[fieldInfo.name] = fieldInfo.type;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const getStandardTypeName = (fieldType: ArcGisFieldType) => {
|
|
85
|
-
switch (fieldType) {
|
|
86
|
-
case "esriFieldTypeInteger":
|
|
87
|
-
case "esriFieldTypeSmallInteger":
|
|
88
|
-
case "esriFieldTypeOID":
|
|
89
|
-
return StandardTypeNames.Integer;
|
|
90
|
-
case "esriFieldTypeDouble":
|
|
91
|
-
return StandardTypeNames.Double;
|
|
92
|
-
case "esriFieldTypeSingle":
|
|
93
|
-
return StandardTypeNames.Float;
|
|
94
|
-
case "esriFieldTypeDate":
|
|
95
|
-
return StandardTypeNames.DateTime;
|
|
96
|
-
default:
|
|
97
|
-
return StandardTypeNames.String;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
const getRecordInfo = (fieldName: string, value: any) => {
|
|
102
|
-
const propertyValue: PrimitiveValue = {valueFormat: PropertyValueFormat.Primitive};
|
|
103
|
-
|
|
104
|
-
if (value === null) {
|
|
105
|
-
value = undefined;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const strValue = `${value}`;
|
|
109
|
-
const fieldType = fieldsType[fieldName];
|
|
110
|
-
switch (fieldType) {
|
|
111
|
-
case "esriFieldTypeInteger":
|
|
112
|
-
case "esriFieldTypeSmallInteger":
|
|
113
|
-
case "esriFieldTypeOID":
|
|
114
|
-
propertyValue.value = value as number;
|
|
115
|
-
break;
|
|
116
|
-
case "esriFieldTypeDouble":
|
|
117
|
-
case "esriFieldTypeSingle":
|
|
118
|
-
propertyValue.value = this.toFixedWithoutPadding(value);
|
|
119
|
-
break;
|
|
120
|
-
case "esriFieldTypeDate":
|
|
121
|
-
propertyValue.value = new Date(value);
|
|
122
|
-
break;
|
|
123
|
-
default:
|
|
124
|
-
if (value !== undefined)
|
|
125
|
-
propertyValue.value = strValue;
|
|
126
|
-
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const typename = getStandardTypeName(fieldType);
|
|
131
|
-
propertyValue.displayValue = this.getDisplayValue(typename, propertyValue.value);
|
|
132
|
-
|
|
133
|
-
return new MapFeatureInfoRecord (propertyValue, {name: fieldName, displayLabel: fieldName, typename});
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
for (const feature of responseObj.features) {
|
|
137
|
-
const subLayerInfo: MapSubLayerFeatureInfo = {
|
|
138
|
-
subLayerName: this._layerMetadata.name,
|
|
139
|
-
displayFieldName: this._layerMetadata.name,
|
|
140
|
-
records : [],
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
for (const [key, value] of Object.entries(feature.attributes))
|
|
144
|
-
subLayerInfo.records?.push(getRecordInfo(key,value));
|
|
145
|
-
|
|
146
|
-
if (layerInfo.info === undefined)
|
|
147
|
-
layerInfo.info = [];
|
|
148
|
-
|
|
149
|
-
if (!(layerInfo.info instanceof HTMLElement))
|
|
150
|
-
layerInfo.info.push(subLayerInfo);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
featureInfos.push(layerInfo);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
import { ArcGisFeatureRenderer } from "./ArcGisFeatureRenderer";
|
|
7
|
-
import { esriPBuffer } from "../ArcGisFeature/esriPBuffer.gen";
|
|
8
|
-
import { MapFeatureInfoRecord, MapLayerFeatureInfo, MapSubLayerFeatureInfo } from "@itwin/core-frontend";
|
|
9
|
-
import { PrimitiveValue, PropertyValueFormat, StandardTypeNames } from "@itwin/appui-abstract";
|
|
10
|
-
import { ImageMapLayerSettings } from "@itwin/core-common";
|
|
11
|
-
import { ArcGisFeatureReader } from "./ArcGisFeatureReader";
|
|
12
|
-
import { ArcGisResponseData } from "./ArcGisFeatureResponse";
|
|
13
|
-
import { Logger } from "@itwin/core-bentley";
|
|
14
|
-
import { ArcGisFeatureGeometryType } from "./ArcGisFeatureQuery";
|
|
15
|
-
|
|
16
|
-
const esriGeometryType = esriPBuffer.FeatureCollectionPBuffer.GeometryType;
|
|
17
|
-
const loggerCategory = "MapLayersFormats.ArcGISFeature";
|
|
18
|
-
|
|
19
|
-
interface PbfFieldInfo {
|
|
20
|
-
name: string;
|
|
21
|
-
type: esriPBuffer.FeatureCollectionPBuffer.FieldType;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export class ArcGisFeaturePBF extends ArcGisFeatureReader {
|
|
26
|
-
public constructor(settings: ImageMapLayerSettings, layerMetadata: any) {
|
|
27
|
-
super(settings, layerMetadata);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public static getArcGisFeatureGeometryType(geomType: esriPBuffer.FeatureCollectionPBuffer.GeometryType): ArcGisFeatureGeometryType {
|
|
31
|
-
switch (geomType) {
|
|
32
|
-
case esriPBuffer.FeatureCollectionPBuffer.GeometryType.esriGeometryTypeMultipatch:
|
|
33
|
-
return "esriGeometryMultiPatch";
|
|
34
|
-
case esriPBuffer.FeatureCollectionPBuffer.GeometryType.esriGeometryTypeMultipoint:
|
|
35
|
-
return "esriGeometryMultipoint";
|
|
36
|
-
case esriPBuffer.FeatureCollectionPBuffer.GeometryType.esriGeometryTypePoint:
|
|
37
|
-
return "esriGeometryPoint";
|
|
38
|
-
case esriPBuffer.FeatureCollectionPBuffer.GeometryType.esriGeometryTypePolygon:
|
|
39
|
-
return "esriGeometryPolygon";
|
|
40
|
-
case esriPBuffer.FeatureCollectionPBuffer.GeometryType.esriGeometryTypePolyline:
|
|
41
|
-
return "esriGeometryPolyline";
|
|
42
|
-
default:
|
|
43
|
-
return "esriGeometryNull";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public readAndRender(response: ArcGisResponseData, renderer: ArcGisFeatureRenderer) {
|
|
48
|
-
if (!(response.data instanceof esriPBuffer.FeatureCollectionPBuffer)) {
|
|
49
|
-
const msg = "Response was not in PBF format";
|
|
50
|
-
Logger.logError(loggerCategory, msg);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const collection = response.data;
|
|
55
|
-
if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection?.queryResult?.featureResult?.features === undefined)
|
|
56
|
-
return;
|
|
57
|
-
|
|
58
|
-
const geomType = collection.queryResult.featureResult.geometryType;
|
|
59
|
-
const stride = (collection.queryResult.featureResult.hasM || collection.queryResult.featureResult.hasZ) ? 3 : 2;
|
|
60
|
-
|
|
61
|
-
// console.log(`Nb Feature: ${collection.queryResult.featureResult.features.length}`);
|
|
62
|
-
if (geomType === esriGeometryType.esriGeometryTypePoint ||
|
|
63
|
-
geomType === esriGeometryType.esriGeometryTypeMultipoint) {
|
|
64
|
-
for (const feature of collection.queryResult.featureResult.features)
|
|
65
|
-
renderer.renderPoint(feature.geometry.lengths, feature.geometry.coords, stride, renderer.transform === undefined);
|
|
66
|
-
} else if (geomType === esriGeometryType.esriGeometryTypePolyline || geomType === esriGeometryType.esriGeometryTypePolygon) {
|
|
67
|
-
const fill = (geomType === esriGeometryType.esriGeometryTypePolygon);
|
|
68
|
-
for (const feature of collection.queryResult.featureResult.features)
|
|
69
|
-
if (feature?.has_geometry)
|
|
70
|
-
renderer.renderPath(feature.geometry.lengths, feature.geometry.coords, fill, stride, renderer.transform === undefined);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
public readFeatureInfo(response: ArcGisResponseData, featureInfos: MapLayerFeatureInfo[]) {
|
|
75
|
-
if (!(response.data instanceof esriPBuffer.FeatureCollectionPBuffer)) {
|
|
76
|
-
|
|
77
|
-
Logger.logError(loggerCategory, "Response was not in PBF format");
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const collection = response.data as esriPBuffer.FeatureCollectionPBuffer;
|
|
81
|
-
if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection?.queryResult?.featureResult?.features === undefined)
|
|
82
|
-
return;
|
|
83
|
-
|
|
84
|
-
const layerInfo: MapLayerFeatureInfo = { layerName: this._settings.name, info: [] };
|
|
85
|
-
|
|
86
|
-
// Fields metadata is stored outside feature results, create dedicated array first
|
|
87
|
-
const fields: PbfFieldInfo[] = [];
|
|
88
|
-
for (const field of collection.queryResult.featureResult.fields)
|
|
89
|
-
fields.push({name: field.name, type:field.fieldType});
|
|
90
|
-
|
|
91
|
-
const getNumericValue = (attrValue: esriPBuffer.FeatureCollectionPBuffer.Value) => {
|
|
92
|
-
const propertyValue: PrimitiveValue = { valueFormat: PropertyValueFormat.Primitive };
|
|
93
|
-
let typename = StandardTypeNames.Number;
|
|
94
|
-
if (attrValue.has_double_value) {
|
|
95
|
-
const value = this.toFixedWithoutPadding(attrValue.double_value);
|
|
96
|
-
propertyValue.value = value;
|
|
97
|
-
typename = StandardTypeNames.Double;
|
|
98
|
-
} else if (attrValue.has_float_value) {
|
|
99
|
-
const value = this.toFixedWithoutPadding(attrValue.float_value);
|
|
100
|
-
propertyValue.value = value;
|
|
101
|
-
typename = StandardTypeNames.Float;
|
|
102
|
-
} else if (attrValue.has_int64_value) {
|
|
103
|
-
propertyValue.value = attrValue.int64_value;
|
|
104
|
-
typename = StandardTypeNames.Integer;
|
|
105
|
-
} else if (attrValue.has_sint64_value) {
|
|
106
|
-
propertyValue.value = attrValue.sint64_value;
|
|
107
|
-
typename = StandardTypeNames.Integer;
|
|
108
|
-
} else if (attrValue.has_sint_value) {
|
|
109
|
-
propertyValue.value = attrValue.sint_value;
|
|
110
|
-
typename = StandardTypeNames.Integer;
|
|
111
|
-
} else if (attrValue.has_uint64_value) {
|
|
112
|
-
propertyValue.value = attrValue.uint64_value;
|
|
113
|
-
typename = StandardTypeNames.Integer;
|
|
114
|
-
} else if (attrValue.has_uint_value) {
|
|
115
|
-
propertyValue.value = attrValue.uint_value;
|
|
116
|
-
typename = StandardTypeNames.Integer;
|
|
117
|
-
} else {
|
|
118
|
-
propertyValue.value = undefined;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
return { propertyValue, typename };
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const getRecordInfo = (fieldInfo: PbfFieldInfo, attrValue: esriPBuffer.FeatureCollectionPBuffer.Value) => {
|
|
125
|
-
let propertyValue: PrimitiveValue = { valueFormat: PropertyValueFormat.Primitive };
|
|
126
|
-
|
|
127
|
-
let typename = StandardTypeNames.String;
|
|
128
|
-
if (fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeDouble
|
|
129
|
-
|| fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeInteger
|
|
130
|
-
|| fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeSmallInteger
|
|
131
|
-
|| fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeOID
|
|
132
|
-
|| fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeSingle
|
|
133
|
-
|| fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeDate
|
|
134
|
-
) {
|
|
135
|
-
const value = getNumericValue(attrValue);
|
|
136
|
-
if (value.propertyValue === undefined) {
|
|
137
|
-
Logger.logError(loggerCategory, `Could not read numeric value for field ${fieldInfo.name}`);
|
|
138
|
-
return undefined;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeDate) {
|
|
142
|
-
const test = (value.propertyValue.value as unknown) as number;
|
|
143
|
-
propertyValue.value = new Date(test);
|
|
144
|
-
typename = StandardTypeNames.DateTime;
|
|
145
|
-
} else {
|
|
146
|
-
typename = value.typename;
|
|
147
|
-
propertyValue = value.propertyValue;
|
|
148
|
-
}
|
|
149
|
-
} else if (fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeString) {
|
|
150
|
-
if (attrValue.has_string_value) {
|
|
151
|
-
propertyValue.value = attrValue.string_value;
|
|
152
|
-
typename = StandardTypeNames.String;
|
|
153
|
-
}
|
|
154
|
-
} else if (fieldInfo.type === esriPBuffer.FeatureCollectionPBuffer.FieldType.esriFieldTypeGlobalID) {
|
|
155
|
-
if (attrValue.has_string_value) {
|
|
156
|
-
propertyValue.value = attrValue.string_value;
|
|
157
|
-
typename = StandardTypeNames.String;
|
|
158
|
-
} else {
|
|
159
|
-
const value = getNumericValue(attrValue);
|
|
160
|
-
if (value.propertyValue === undefined) {
|
|
161
|
-
Logger.logError(loggerCategory, `Could not read GlobalId value for field ${fieldInfo.name}`);
|
|
162
|
-
return undefined;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
} else if (attrValue.has_string_value) {
|
|
166
|
-
// If we reach this case that probably mean we don't support the field type, simply try to output string value
|
|
167
|
-
typename = StandardTypeNames.String;
|
|
168
|
-
propertyValue.value = attrValue.string_value;
|
|
169
|
-
} else if (attrValue.value_type === "none") {
|
|
170
|
-
// Sometimes fields are just empty, use an empty string
|
|
171
|
-
typename = StandardTypeNames.String;
|
|
172
|
-
propertyValue.value = undefined;
|
|
173
|
-
} else {
|
|
174
|
-
Logger.logError(loggerCategory, `Could not read value for field ${fieldInfo.name}`);
|
|
175
|
-
return undefined;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
propertyValue.displayValue = this.getDisplayValue(typename, propertyValue.value);
|
|
179
|
-
|
|
180
|
-
return new MapFeatureInfoRecord(propertyValue, { name: fieldInfo.name, displayLabel: fieldInfo.name, typename });
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// Read feature values
|
|
184
|
-
for (const feature of collection.queryResult.featureResult.features) {
|
|
185
|
-
const subLayerInfo: MapSubLayerFeatureInfo = {
|
|
186
|
-
subLayerName: this._layerMetadata.name,
|
|
187
|
-
displayFieldName: this._layerMetadata.name,
|
|
188
|
-
records: [],
|
|
189
|
-
};
|
|
190
|
-
let i = 0;
|
|
191
|
-
|
|
192
|
-
for (const attrValue of feature.attributes) {
|
|
193
|
-
if (i > fields.length) {
|
|
194
|
-
Logger.logError(loggerCategory, "Error while read feature info data: fields metadata missing");
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
// Convert everything to string for now
|
|
198
|
-
const info = getRecordInfo(fields[i], attrValue);
|
|
199
|
-
if (info) {
|
|
200
|
-
subLayerInfo.records?.push(info);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
i++;
|
|
204
|
-
}
|
|
205
|
-
if (layerInfo.info === undefined) {
|
|
206
|
-
layerInfo.info = [];
|
|
207
|
-
}
|
|
208
|
-
if (!(layerInfo.info instanceof HTMLElement)) {
|
|
209
|
-
layerInfo.info.push(subLayerInfo);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
featureInfos.push(layerInfo);
|
|
214
|
-
}
|
|
215
|
-
}
|