@loaders.gl/tile-converter 4.2.0-alpha.4 → 4.2.0-alpha.5

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.
Files changed (144) hide show
  1. package/dist/3d-tiles-converter/3d-tiles-converter.d.ts +3 -3
  2. package/dist/3d-tiles-converter/3d-tiles-converter.d.ts.map +1 -1
  3. package/dist/3d-tiles-converter/3d-tiles-converter.js +329 -293
  4. package/dist/3d-tiles-converter/helpers/b3dm-converter.js +257 -200
  5. package/dist/3d-tiles-converter/helpers/i3s-obb-to-3d-tiles-obb.js +14 -5
  6. package/dist/3d-tiles-converter/helpers/load-i3s.js +106 -75
  7. package/dist/3d-tiles-converter/helpers/texture-atlas.js +44 -21
  8. package/dist/3d-tiles-converter/json-templates/tileset.js +32 -33
  9. package/dist/constants.js +0 -1
  10. package/dist/converter-cli.js +255 -234
  11. package/dist/converter.min.cjs +80 -90
  12. package/dist/deps-installer/deps-installer.js +72 -58
  13. package/dist/i3s-converter/helpers/attribute-metadata-info.js +207 -153
  14. package/dist/i3s-converter/helpers/batch-ids-extensions.d.ts +1 -1
  15. package/dist/i3s-converter/helpers/batch-ids-extensions.d.ts.map +1 -1
  16. package/dist/i3s-converter/helpers/batch-ids-extensions.js +145 -103
  17. package/dist/i3s-converter/helpers/coordinate-converter.js +100 -65
  18. package/dist/i3s-converter/helpers/create-scene-server-path.js +14 -9
  19. package/dist/i3s-converter/helpers/feature-attributes.js +168 -105
  20. package/dist/i3s-converter/helpers/geometry-attributes.d.ts +1 -1
  21. package/dist/i3s-converter/helpers/geometry-attributes.d.ts.map +1 -1
  22. package/dist/i3s-converter/helpers/geometry-attributes.js +204 -212
  23. package/dist/i3s-converter/helpers/geometry-converter.d.ts +2 -2
  24. package/dist/i3s-converter/helpers/geometry-converter.d.ts.map +1 -1
  25. package/dist/i3s-converter/helpers/geometry-converter.js +1148 -829
  26. package/dist/i3s-converter/helpers/gltf-attributes.d.ts +1 -1
  27. package/dist/i3s-converter/helpers/gltf-attributes.d.ts.map +1 -1
  28. package/dist/i3s-converter/helpers/gltf-attributes.js +111 -97
  29. package/dist/i3s-converter/helpers/load-3d-tiles.js +103 -66
  30. package/dist/i3s-converter/helpers/node-debug.js +98 -54
  31. package/dist/i3s-converter/helpers/node-index-document.d.ts +3 -3
  32. package/dist/i3s-converter/helpers/node-index-document.d.ts.map +1 -1
  33. package/dist/i3s-converter/helpers/node-index-document.js +248 -177
  34. package/dist/i3s-converter/helpers/node-pages.d.ts +1 -1
  35. package/dist/i3s-converter/helpers/node-pages.d.ts.map +1 -1
  36. package/dist/i3s-converter/helpers/node-pages.js +299 -194
  37. package/dist/i3s-converter/helpers/preprocess-3d-tiles.d.ts +1 -1
  38. package/dist/i3s-converter/helpers/preprocess-3d-tiles.d.ts.map +1 -1
  39. package/dist/i3s-converter/helpers/preprocess-3d-tiles.js +92 -60
  40. package/dist/i3s-converter/helpers/progress.js +134 -83
  41. package/dist/i3s-converter/helpers/tileset-traversal.d.ts +1 -1
  42. package/dist/i3s-converter/helpers/tileset-traversal.d.ts.map +1 -1
  43. package/dist/i3s-converter/helpers/tileset-traversal.js +24 -13
  44. package/dist/i3s-converter/i3s-converter.d.ts +7 -7
  45. package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
  46. package/dist/i3s-converter/i3s-converter.js +1044 -898
  47. package/dist/i3s-converter/json-templates/geometry-definitions.js +70 -79
  48. package/dist/i3s-converter/json-templates/layers.js +120 -121
  49. package/dist/i3s-converter/json-templates/metadata.js +19 -20
  50. package/dist/i3s-converter/json-templates/node.js +73 -71
  51. package/dist/i3s-converter/json-templates/scene-server.js +25 -26
  52. package/dist/i3s-converter/json-templates/shared-resources.js +107 -108
  53. package/dist/i3s-converter/json-templates/store.js +96 -94
  54. package/dist/i3s-converter/types.js +35 -23
  55. package/dist/i3s-server/app.js +15 -12
  56. package/dist/i3s-server/bin/www.js +14 -7
  57. package/dist/i3s-server/controllers/index-controller.js +18 -15
  58. package/dist/i3s-server/controllers/slpk-controller.js +22 -11
  59. package/dist/i3s-server/routes/index.js +9 -8
  60. package/dist/i3s-server/routes/slpk-router.js +18 -17
  61. package/dist/i3s-server/utils/create-scene-server.js +15 -10
  62. package/dist/i3s-server/utils/server-utils.js +49 -32
  63. package/dist/index.cjs +292 -851
  64. package/dist/index.cjs.map +7 -0
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +0 -1
  68. package/dist/lib/json-schemas/conversion-dump-json-schema.js +243 -421
  69. package/dist/lib/utils/cli-utils.js +63 -36
  70. package/dist/lib/utils/compress-util.js +20 -15
  71. package/dist/lib/utils/conversion-dump.d.ts +1 -1
  72. package/dist/lib/utils/conversion-dump.d.ts.map +1 -1
  73. package/dist/lib/utils/conversion-dump.js +209 -187
  74. package/dist/lib/utils/file-utils.js +122 -74
  75. package/dist/lib/utils/geometry-utils.js +13 -7
  76. package/dist/lib/utils/lod-conversion-utils.js +65 -33
  77. package/dist/lib/utils/queue.js +12 -13
  78. package/dist/lib/utils/statistic-utills.d.ts +6 -23
  79. package/dist/lib/utils/statistic-utills.js +64 -59
  80. package/dist/lib/utils/write-queue.d.ts +2 -2
  81. package/dist/lib/utils/write-queue.d.ts.map +1 -1
  82. package/dist/lib/utils/write-queue.js +68 -86
  83. package/dist/pgm-loader.js +16 -12
  84. package/dist/slpk-extractor/slpk-extractor.js +59 -50
  85. package/dist/slpk-extractor-cli.js +82 -59
  86. package/package.json +18 -18
  87. package/dist/3d-tiles-converter/3d-tiles-converter.js.map +0 -1
  88. package/dist/3d-tiles-converter/helpers/b3dm-converter.js.map +0 -1
  89. package/dist/3d-tiles-converter/helpers/i3s-obb-to-3d-tiles-obb.js.map +0 -1
  90. package/dist/3d-tiles-converter/helpers/load-i3s.js.map +0 -1
  91. package/dist/3d-tiles-converter/helpers/texture-atlas.js.map +0 -1
  92. package/dist/3d-tiles-converter/json-templates/tileset.js.map +0 -1
  93. package/dist/constants.js.map +0 -1
  94. package/dist/converter-cli.js.map +0 -1
  95. package/dist/deps-installer/deps-installer.js.map +0 -1
  96. package/dist/i3s-converter/helpers/attribute-metadata-info.js.map +0 -1
  97. package/dist/i3s-converter/helpers/batch-ids-extensions.js.map +0 -1
  98. package/dist/i3s-converter/helpers/coordinate-converter.js.map +0 -1
  99. package/dist/i3s-converter/helpers/create-scene-server-path.js.map +0 -1
  100. package/dist/i3s-converter/helpers/feature-attributes.js.map +0 -1
  101. package/dist/i3s-converter/helpers/geometry-attributes.js.map +0 -1
  102. package/dist/i3s-converter/helpers/geometry-converter.js.map +0 -1
  103. package/dist/i3s-converter/helpers/gltf-attributes.js.map +0 -1
  104. package/dist/i3s-converter/helpers/load-3d-tiles.js.map +0 -1
  105. package/dist/i3s-converter/helpers/node-debug.js.map +0 -1
  106. package/dist/i3s-converter/helpers/node-index-document.js.map +0 -1
  107. package/dist/i3s-converter/helpers/node-pages.js.map +0 -1
  108. package/dist/i3s-converter/helpers/preprocess-3d-tiles.js.map +0 -1
  109. package/dist/i3s-converter/helpers/progress.js.map +0 -1
  110. package/dist/i3s-converter/helpers/tileset-traversal.js.map +0 -1
  111. package/dist/i3s-converter/i3s-converter.js.map +0 -1
  112. package/dist/i3s-converter/json-templates/geometry-definitions.js.map +0 -1
  113. package/dist/i3s-converter/json-templates/layers.js.map +0 -1
  114. package/dist/i3s-converter/json-templates/metadata.js.map +0 -1
  115. package/dist/i3s-converter/json-templates/node.js.map +0 -1
  116. package/dist/i3s-converter/json-templates/scene-server.js.map +0 -1
  117. package/dist/i3s-converter/json-templates/shared-resources.js.map +0 -1
  118. package/dist/i3s-converter/json-templates/store.js.map +0 -1
  119. package/dist/i3s-converter/types.js.map +0 -1
  120. package/dist/i3s-server/README.md +0 -63
  121. package/dist/i3s-server/app.js.map +0 -1
  122. package/dist/i3s-server/bin/www.js.map +0 -1
  123. package/dist/i3s-server/certs/cert.pem +0 -19
  124. package/dist/i3s-server/certs/key.pem +0 -27
  125. package/dist/i3s-server/controllers/index-controller.js.map +0 -1
  126. package/dist/i3s-server/controllers/slpk-controller.js.map +0 -1
  127. package/dist/i3s-server/routes/index.js.map +0 -1
  128. package/dist/i3s-server/routes/slpk-router.js.map +0 -1
  129. package/dist/i3s-server/utils/create-scene-server.js.map +0 -1
  130. package/dist/i3s-server/utils/server-utils.js.map +0 -1
  131. package/dist/index.js.map +0 -1
  132. package/dist/lib/json-schemas/conversion-dump-json-schema.js.map +0 -1
  133. package/dist/lib/utils/cli-utils.js.map +0 -1
  134. package/dist/lib/utils/compress-util.js.map +0 -1
  135. package/dist/lib/utils/conversion-dump.js.map +0 -1
  136. package/dist/lib/utils/file-utils.js.map +0 -1
  137. package/dist/lib/utils/geometry-utils.js.map +0 -1
  138. package/dist/lib/utils/lod-conversion-utils.js.map +0 -1
  139. package/dist/lib/utils/queue.js.map +0 -1
  140. package/dist/lib/utils/statistic-utills.js.map +0 -1
  141. package/dist/lib/utils/write-queue.js.map +0 -1
  142. package/dist/pgm-loader.js.map +0 -1
  143. package/dist/slpk-extractor/slpk-extractor.js.map +0 -1
  144. package/dist/slpk-extractor-cli.js.map +0 -1
@@ -1,128 +1,191 @@
1
1
  import { AttributeType } from "../types.js";
2
2
  import { EXT_FEATURE_METADATA, EXT_STRUCTURAL_METADATA } from '@loaders.gl/gltf';
3
+ /**
4
+ * Takes attributes from property table based on featureIdsMap.
5
+ * If there is no property value for particular featureId (index) the property will be null.
6
+ * Example:
7
+ * Initial data:
8
+ * OBJECTID: {0: 0, 3: 33, 4: 333}
9
+ * component: ['Windows', 'Frames', 'Wall', 'Roof', 'Skylight']
10
+ * Result:
11
+ * OBJECTID: [0, 33, 333]
12
+ * component: ['Windows', 'Roof', 'Skylight']
13
+ * @param featureIdsMap
14
+ * @param propertyTable
15
+ */
3
16
  export function flattenPropertyTableByFeatureIds(featureIdsMap, propertyTable) {
4
- const resultPropertyTable = {};
5
- for (const propertyName in propertyTable) {
6
- const properties = propertyTable[propertyName];
7
- resultPropertyTable[propertyName] = getPropertiesByFeatureIds(properties, featureIdsMap);
8
- }
9
- return resultPropertyTable;
17
+ const resultPropertyTable = {};
18
+ for (const propertyName in propertyTable) {
19
+ const properties = propertyTable[propertyName];
20
+ resultPropertyTable[propertyName] = getPropertiesByFeatureIds(properties, featureIdsMap);
21
+ }
22
+ return resultPropertyTable;
10
23
  }
24
+ /**
25
+ * Getting properties by featureId index
26
+ * @param properties
27
+ * @param featureIdsMap
28
+ */
11
29
  function getPropertiesByFeatureIds(properties, featureIdsMap) {
12
- const resultProperties = [];
13
- if (properties) {
14
- for (const featureIdKey in featureIdsMap) {
15
- const property = properties[featureIdKey] || null;
16
- resultProperties.push(property);
30
+ const resultProperties = [];
31
+ if (properties) {
32
+ for (const featureIdKey in featureIdsMap) {
33
+ const property = properties[featureIdKey] || null;
34
+ resultProperties.push(property);
35
+ }
17
36
  }
18
- }
19
- return resultProperties;
37
+ return resultProperties;
20
38
  }
39
+ /**
40
+ * Check that all attributes in propertyTable have the same length as FeatureIds.
41
+ * If there are differencies between lengths we should flatten property table based on exiesting featureIds.
42
+ * @param featureIds
43
+ * @param propertyTable
44
+ * @returns
45
+ */
21
46
  export function checkPropertiesLength(featureIds, propertyTable) {
22
- let needFlatten = false;
23
- for (const attribute of Object.values(propertyTable)) {
24
- if (!featureIds || !attribute || featureIds.length !== attribute.length) {
25
- needFlatten = true;
47
+ let needFlatten = false;
48
+ for (const attribute of Object.values(propertyTable)) {
49
+ if (!featureIds || !attribute || featureIds.length !== attribute.length) {
50
+ needFlatten = true;
51
+ }
26
52
  }
27
- }
28
- return needFlatten;
53
+ return needFlatten;
29
54
  }
55
+ /**
56
+ * Get the attribute type for attributeStorageInfo https://github.com/Esri/i3s-spec/blob/master/docs/1.7/attributeStorageInfo.cmn.md
57
+ * @param attribute - attribute taken from propertyTable
58
+ */
30
59
  export function getAttributeType(attribute) {
31
- if (typeof attribute === 'string' || typeof attribute === 'bigint') {
60
+ if (typeof attribute === 'string' || typeof attribute === 'bigint') {
61
+ return AttributeType.STRING_TYPE;
62
+ }
63
+ else if (typeof attribute === 'number') {
64
+ return Number.isInteger(attribute) ? AttributeType.SHORT_INT_TYPE : AttributeType.DOUBLE_TYPE;
65
+ }
32
66
  return AttributeType.STRING_TYPE;
33
- } else if (typeof attribute === 'number') {
34
- return Number.isInteger(attribute) ? AttributeType.SHORT_INT_TYPE : AttributeType.DOUBLE_TYPE;
35
- }
36
- return AttributeType.STRING_TYPE;
37
67
  }
68
+ /**
69
+ * Gets attribute's types based on the property table records.
70
+ * @param propertyTable - Table with layer meta data.
71
+ * @returns set of attribute types
72
+ * @example of returned object:
73
+ * {
74
+ * "opt_uint8": "Int32",
75
+ * "opt_uint64": "string"
76
+ * }
77
+ */
38
78
  export function getAttributeTypesMapFromPropertyTable(propertyTable) {
39
- const attributeTypesMap = {};
40
- for (const key in propertyTable) {
41
- const firstAttribute = propertyTable[key][0];
42
- const attributeType = getAttributeType(firstAttribute);
43
- attributeTypesMap[key] = attributeType;
44
- }
45
- return attributeTypesMap;
79
+ const attributeTypesMap = {};
80
+ for (const key in propertyTable) {
81
+ // Get attribute type based on the first element of each property.
82
+ const firstAttribute = propertyTable[key][0];
83
+ const attributeType = getAttributeType(firstAttribute);
84
+ attributeTypesMap[key] = attributeType;
85
+ }
86
+ return attributeTypesMap;
46
87
  }
88
+ /**
89
+ * Gets attribute's types from the extension schema selected by the class name 'metadataClass'.
90
+ * @param gltfJson - JSON part of GLB content
91
+ * @param metadataClass - name of the schema class
92
+ * @returns set of attribute's types
93
+ * @example of returned object:
94
+ * {
95
+ * "opt_uint8": "Int32",
96
+ * "opt_uint64": "string"
97
+ * }
98
+ */
47
99
  export const getAttributeTypesMapFromSchema = (gltfJson, metadataClass) => {
48
- var _gltfJson$extensions, _gltfJson$extensions$, _gltfJson$extensions$2, _gltfJson$extensions$3, _gltfJson$extensions2, _gltfJson$extensions3, _gltfJson$extensions4, _gltfJson$extensions5;
49
- const attributeTypesMap = {};
50
- const extFeatureMetadataSchemaClass = (_gltfJson$extensions = gltfJson.extensions) === null || _gltfJson$extensions === void 0 ? void 0 : (_gltfJson$extensions$ = _gltfJson$extensions[EXT_FEATURE_METADATA]) === null || _gltfJson$extensions$ === void 0 ? void 0 : (_gltfJson$extensions$2 = _gltfJson$extensions$.schema) === null || _gltfJson$extensions$2 === void 0 ? void 0 : (_gltfJson$extensions$3 = _gltfJson$extensions$2.classes) === null || _gltfJson$extensions$3 === void 0 ? void 0 : _gltfJson$extensions$3[metadataClass];
51
- if (extFeatureMetadataSchemaClass) {
52
- for (let propertyName in extFeatureMetadataSchemaClass.properties) {
53
- const property = extFeatureMetadataSchemaClass.properties[propertyName];
54
- const attributeProperty = getAttributeTypeFromExtFeatureMetadata(property);
55
- attributeTypesMap[propertyName] = attributeProperty;
100
+ const attributeTypesMap = {};
101
+ const extFeatureMetadataSchemaClass = gltfJson.extensions?.[EXT_FEATURE_METADATA]?.schema?.classes?.[metadataClass];
102
+ if (extFeatureMetadataSchemaClass) {
103
+ for (let propertyName in extFeatureMetadataSchemaClass.properties) {
104
+ const property = extFeatureMetadataSchemaClass.properties[propertyName];
105
+ const attributeProperty = getAttributeTypeFromExtFeatureMetadata(property);
106
+ attributeTypesMap[propertyName] = attributeProperty;
107
+ }
108
+ return attributeTypesMap;
56
109
  }
57
- return attributeTypesMap;
58
- }
59
- const extStructuralMetadataSchemaClass = (_gltfJson$extensions2 = gltfJson.extensions) === null || _gltfJson$extensions2 === void 0 ? void 0 : (_gltfJson$extensions3 = _gltfJson$extensions2[EXT_STRUCTURAL_METADATA]) === null || _gltfJson$extensions3 === void 0 ? void 0 : (_gltfJson$extensions4 = _gltfJson$extensions3.schema) === null || _gltfJson$extensions4 === void 0 ? void 0 : (_gltfJson$extensions5 = _gltfJson$extensions4.classes) === null || _gltfJson$extensions5 === void 0 ? void 0 : _gltfJson$extensions5[metadataClass];
60
- if (extStructuralMetadataSchemaClass) {
61
- for (let propertyName in extStructuralMetadataSchemaClass.properties) {
62
- const property = extStructuralMetadataSchemaClass.properties[propertyName];
63
- const attributeProperty = getAttributeTypeFromExtStructuralMetadata(property);
64
- attributeTypesMap[propertyName] = attributeProperty;
110
+ const extStructuralMetadataSchemaClass = gltfJson.extensions?.[EXT_STRUCTURAL_METADATA]?.schema?.classes?.[metadataClass];
111
+ if (extStructuralMetadataSchemaClass) {
112
+ for (let propertyName in extStructuralMetadataSchemaClass.properties) {
113
+ const property = extStructuralMetadataSchemaClass.properties[propertyName];
114
+ const attributeProperty = getAttributeTypeFromExtStructuralMetadata(property);
115
+ attributeTypesMap[propertyName] = attributeProperty;
116
+ }
117
+ return attributeTypesMap;
65
118
  }
66
- return attributeTypesMap;
67
- }
68
- return null;
119
+ return null;
69
120
  };
70
- const getAttributeTypeFromExtFeatureMetadata = property => {
71
- let attributeType;
72
- switch (property.type) {
73
- case 'INT8':
74
- case 'UINT8':
75
- case 'INT16':
76
- case 'UINT16':
77
- case 'INT32':
78
- case 'UINT32':
79
- attributeType = AttributeType.SHORT_INT_TYPE;
80
- break;
81
- case 'FLOAT32':
82
- case 'FLOAT64':
83
- attributeType = AttributeType.DOUBLE_TYPE;
84
- break;
85
- case 'INT64':
86
- case 'UINT64':
87
- case 'BOOLEAN':
88
- case 'ENUM':
89
- case 'STRING':
90
- case 'ARRAY':
91
- attributeType = AttributeType.STRING_TYPE;
92
- break;
93
- default:
94
- attributeType = AttributeType.STRING_TYPE;
95
- break;
96
- }
97
- return attributeType;
121
+ /**
122
+ * Gets the attribute type according to the Ext_feature_metadata extension class schema
123
+ * @see https://github.com/Esri/i3s-spec/blob/master/docs/1.7/attributeStorageInfo.cmn.md
124
+ * @param property - schema of the class property for Ext_feature_metadata
125
+ * @returns attribute's type
126
+ */
127
+ const getAttributeTypeFromExtFeatureMetadata = (property) => {
128
+ let attributeType;
129
+ switch (property.type) {
130
+ case 'INT8':
131
+ case 'UINT8':
132
+ case 'INT16':
133
+ case 'UINT16':
134
+ case 'INT32':
135
+ case 'UINT32':
136
+ attributeType = AttributeType.SHORT_INT_TYPE;
137
+ break;
138
+ case 'FLOAT32':
139
+ case 'FLOAT64':
140
+ attributeType = AttributeType.DOUBLE_TYPE;
141
+ break;
142
+ case 'INT64':
143
+ case 'UINT64':
144
+ case 'BOOLEAN':
145
+ case 'ENUM':
146
+ case 'STRING':
147
+ case 'ARRAY':
148
+ attributeType = AttributeType.STRING_TYPE;
149
+ break;
150
+ default:
151
+ attributeType = AttributeType.STRING_TYPE;
152
+ break;
153
+ }
154
+ return attributeType;
98
155
  };
99
- const getAttributeTypeFromExtStructuralMetadata = property => {
100
- let attributeType;
101
- if (property.array) {
102
- attributeType = AttributeType.STRING_TYPE;
103
- } else {
104
- switch (property.componentType) {
105
- case 'INT8':
106
- case 'UINT8':
107
- case 'INT16':
108
- case 'UINT16':
109
- case 'INT32':
110
- case 'UINT32':
111
- attributeType = AttributeType.SHORT_INT_TYPE;
112
- break;
113
- case 'FLOAT32':
114
- case 'FLOAT64':
115
- attributeType = AttributeType.DOUBLE_TYPE;
116
- break;
117
- case 'INT64':
118
- case 'UINT64':
156
+ /**
157
+ * Gets the attribute type according to the Ext_structural_metadata extension class schema
158
+ * @see https://github.com/Esri/i3s-spec/blob/master/docs/1.7/attributeStorageInfo.cmn.md
159
+ * @param property - schema of the class property for Ext_structural_metadata
160
+ * @returns attribute's type
161
+ */
162
+ const getAttributeTypeFromExtStructuralMetadata = (property) => {
163
+ let attributeType;
164
+ if (property.array) {
119
165
  attributeType = AttributeType.STRING_TYPE;
120
- break;
121
- default:
122
- attributeType = AttributeType.STRING_TYPE;
123
- break;
124
166
  }
125
- }
126
- return attributeType;
167
+ else {
168
+ switch (property.componentType) {
169
+ case 'INT8':
170
+ case 'UINT8':
171
+ case 'INT16':
172
+ case 'UINT16':
173
+ case 'INT32':
174
+ case 'UINT32':
175
+ attributeType = AttributeType.SHORT_INT_TYPE;
176
+ break;
177
+ case 'FLOAT32':
178
+ case 'FLOAT64':
179
+ attributeType = AttributeType.DOUBLE_TYPE;
180
+ break;
181
+ case 'INT64':
182
+ case 'UINT64':
183
+ attributeType = AttributeType.STRING_TYPE;
184
+ break;
185
+ default:
186
+ attributeType = AttributeType.STRING_TYPE;
187
+ break;
188
+ }
189
+ }
190
+ return attributeType;
127
191
  };
128
- //# sourceMappingURL=feature-attributes.js.map
@@ -1,4 +1,4 @@
1
- import type { GeometryAttributes, ConvertedAttributes } from '../types';
1
+ import type { GeometryAttributes, ConvertedAttributes } from "../types.js";
2
2
  /**
3
3
  * Generate geometry attributes with faceRange and featureCount
4
4
  * @param attributes
@@ -1 +1 @@
1
- {"version":3,"file":"geometry-attributes.d.ts","sourceRoot":"","sources":["../../../src/i3s-converter/helpers/geometry-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EAGpB,MAAM,UAAU,CAAC;AAMlB;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,mBAAmB,GAAG,kBAAkB,CAyBtF"}
1
+ {"version":3,"file":"geometry-attributes.d.ts","sourceRoot":"","sources":["../../../src/i3s-converter/helpers/geometry-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EAGpB,oBAAiB;AAMlB;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,mBAAmB,GAAG,kBAAkB,CAyBtF"}