@maplibre/mlt 0.0.1-alpha.6

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 (215) hide show
  1. package/README.md +28 -0
  2. package/dist/encodings/decodingUtils.d.ts +13 -0
  3. package/dist/encodings/decodingUtils.js +194 -0
  4. package/dist/encodings/decodingUtils.js.map +1 -0
  5. package/dist/encodings/doubleDecoder.d.ts +4 -0
  6. package/dist/encodings/doubleDecoder.js +22 -0
  7. package/dist/encodings/doubleDecoder.js.map +1 -0
  8. package/dist/encodings/fastpfor/bitpacking.d.ts +51 -0
  9. package/dist/encodings/fastpfor/bitpacking.js +4444 -0
  10. package/dist/encodings/fastpfor/bitpacking.js.map +1 -0
  11. package/dist/encodings/fastpfor/codec.d.ts +19 -0
  12. package/dist/encodings/fastpfor/codec.js +3 -0
  13. package/dist/encodings/fastpfor/codec.js.map +1 -0
  14. package/dist/encodings/fastpfor/fastpfor.d.ts +38 -0
  15. package/dist/encodings/fastpfor/fastpfor.js +123 -0
  16. package/dist/encodings/fastpfor/fastpfor.js.map +1 -0
  17. package/dist/encodings/fastpfor/index.d.ts +20 -0
  18. package/dist/encodings/fastpfor/index.js +47 -0
  19. package/dist/encodings/fastpfor/index.js.map +1 -0
  20. package/dist/encodings/fastpfor/util.d.ts +2 -0
  21. package/dist/encodings/fastpfor/util.js +16 -0
  22. package/dist/encodings/fastpfor/util.js.map +1 -0
  23. package/dist/encodings/fastpfor/varint.d.ts +18 -0
  24. package/dist/encodings/fastpfor/varint.js +125 -0
  25. package/dist/encodings/fastpfor/varint.js.map +1 -0
  26. package/dist/encodings/fsstDecoder.d.ts +9 -0
  27. package/dist/encodings/fsstDecoder.js +34 -0
  28. package/dist/encodings/fsstDecoder.js.map +1 -0
  29. package/dist/encodings/geometryDecoder.d.ts +5 -0
  30. package/dist/encodings/geometryDecoder.js +453 -0
  31. package/dist/encodings/geometryDecoder.js.map +1 -0
  32. package/dist/encodings/geometryScaling.d.ts +6 -0
  33. package/dist/encodings/geometryScaling.js +3 -0
  34. package/dist/encodings/geometryScaling.js.map +1 -0
  35. package/dist/encodings/intWrapper.d.ts +8 -0
  36. package/dist/encodings/intWrapper.js +22 -0
  37. package/dist/encodings/intWrapper.js.map +1 -0
  38. package/dist/encodings/integerDecodingUtils.d.ts +46 -0
  39. package/dist/encodings/integerDecodingUtils.js +703 -0
  40. package/dist/encodings/integerDecodingUtils.js.map +1 -0
  41. package/dist/encodings/integerStreamDecoder.d.ts +26 -0
  42. package/dist/encodings/integerStreamDecoder.js +254 -0
  43. package/dist/encodings/integerStreamDecoder.js.map +1 -0
  44. package/dist/encodings/propertyDecoder.d.ts +4 -0
  45. package/dist/encodings/propertyDecoder.js +194 -0
  46. package/dist/encodings/propertyDecoder.js.map +1 -0
  47. package/dist/encodings/stringDecoder.d.ts +11 -0
  48. package/dist/encodings/stringDecoder.js +148 -0
  49. package/dist/encodings/stringDecoder.js.map +1 -0
  50. package/dist/index.d.ts +8 -0
  51. package/dist/index.js +19 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/metadata/tile/dictionaryType.d.ts +8 -0
  54. package/dist/metadata/tile/dictionaryType.js +13 -0
  55. package/dist/metadata/tile/dictionaryType.js.map +1 -0
  56. package/dist/metadata/tile/lengthType.d.ts +9 -0
  57. package/dist/metadata/tile/lengthType.js +14 -0
  58. package/dist/metadata/tile/lengthType.js.map +1 -0
  59. package/dist/metadata/tile/logicalLevelTechnique.d.ts +8 -0
  60. package/dist/metadata/tile/logicalLevelTechnique.js +15 -0
  61. package/dist/metadata/tile/logicalLevelTechnique.js.map +1 -0
  62. package/dist/metadata/tile/logicalStreamType.d.ts +12 -0
  63. package/dist/metadata/tile/logicalStreamType.js +21 -0
  64. package/dist/metadata/tile/logicalStreamType.js.map +1 -0
  65. package/dist/metadata/tile/mortonEncodedStreamMetadata.d.ts +15 -0
  66. package/dist/metadata/tile/mortonEncodedStreamMetadata.js +29 -0
  67. package/dist/metadata/tile/mortonEncodedStreamMetadata.js.map +1 -0
  68. package/dist/metadata/tile/offsetType.d.ts +6 -0
  69. package/dist/metadata/tile/offsetType.js +11 -0
  70. package/dist/metadata/tile/offsetType.js.map +1 -0
  71. package/dist/metadata/tile/physicalLevelTechnique.d.ts +17 -0
  72. package/dist/metadata/tile/physicalLevelTechnique.js +22 -0
  73. package/dist/metadata/tile/physicalLevelTechnique.js.map +1 -0
  74. package/dist/metadata/tile/physicalStreamType.d.ts +6 -0
  75. package/dist/metadata/tile/physicalStreamType.js +11 -0
  76. package/dist/metadata/tile/physicalStreamType.js.map +1 -0
  77. package/dist/metadata/tile/rleEncodedStreamMetadata.d.ts +20 -0
  78. package/dist/metadata/tile/rleEncodedStreamMetadata.js +34 -0
  79. package/dist/metadata/tile/rleEncodedStreamMetadata.js.map +1 -0
  80. package/dist/metadata/tile/scalarType.d.ts +12 -0
  81. package/dist/metadata/tile/scalarType.js +17 -0
  82. package/dist/metadata/tile/scalarType.js.map +1 -0
  83. package/dist/metadata/tile/streamMetadata.d.ts +23 -0
  84. package/dist/metadata/tile/streamMetadata.js +71 -0
  85. package/dist/metadata/tile/streamMetadata.js.map +1 -0
  86. package/dist/metadata/tile/streamMetadataDecoder.d.ts +5 -0
  87. package/dist/metadata/tile/streamMetadataDecoder.js +24 -0
  88. package/dist/metadata/tile/streamMetadataDecoder.js.map +1 -0
  89. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.d.ts +10 -0
  90. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.js +112 -0
  91. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.js.map +1 -0
  92. package/dist/metadata/tileset/tilesetMetadata.g.d.ts +418 -0
  93. package/dist/metadata/tileset/tilesetMetadata.g.js +476 -0
  94. package/dist/metadata/tileset/tilesetMetadata.g.js.map +1 -0
  95. package/dist/metadata/tileset/typeMap.d.ts +38 -0
  96. package/dist/metadata/tileset/typeMap.js +185 -0
  97. package/dist/metadata/tileset/typeMap.js.map +1 -0
  98. package/dist/mltDecoder.d.ts +11 -0
  99. package/dist/mltDecoder.js +146 -0
  100. package/dist/mltDecoder.js.map +1 -0
  101. package/dist/mltMetadata.d.ts +40 -0
  102. package/dist/mltMetadata.js +34 -0
  103. package/dist/mltMetadata.js.map +1 -0
  104. package/dist/vector/constant/intConstVector.d.ts +19 -0
  105. package/dist/vector/constant/intConstVector.js +89 -0
  106. package/dist/vector/constant/intConstVector.js.map +1 -0
  107. package/dist/vector/constant/longConstVector.d.ts +19 -0
  108. package/dist/vector/constant/longConstVector.js +87 -0
  109. package/dist/vector/constant/longConstVector.js.map +1 -0
  110. package/dist/vector/dictionary/stringDictionaryVector.d.ts +22 -0
  111. package/dist/vector/dictionary/stringDictionaryVector.js +180 -0
  112. package/dist/vector/dictionary/stringDictionaryVector.js.map +1 -0
  113. package/dist/vector/featureTable.d.ts +29 -0
  114. package/dist/vector/featureTable.js +70 -0
  115. package/dist/vector/featureTable.js.map +1 -0
  116. package/dist/vector/filter/constSelectionVector.d.ts +0 -0
  117. package/dist/vector/filter/constSelectionVector.js +1 -0
  118. package/dist/vector/filter/constSelectionVector.js.map +1 -0
  119. package/dist/vector/filter/flatSelectionVector.d.ts +16 -0
  120. package/dist/vector/filter/flatSelectionVector.js +42 -0
  121. package/dist/vector/filter/flatSelectionVector.js.map +1 -0
  122. package/dist/vector/filter/selectionVector.d.ts +8 -0
  123. package/dist/vector/filter/selectionVector.js +3 -0
  124. package/dist/vector/filter/selectionVector.js.map +1 -0
  125. package/dist/vector/filter/selectionVectorUtils.d.ts +7 -0
  126. package/dist/vector/filter/selectionVectorUtils.js +44 -0
  127. package/dist/vector/filter/selectionVectorUtils.js.map +1 -0
  128. package/dist/vector/filter/sequenceSelectionVector.d.ts +0 -0
  129. package/dist/vector/filter/sequenceSelectionVector.js +1 -0
  130. package/dist/vector/filter/sequenceSelectionVector.js.map +1 -0
  131. package/dist/vector/fixedSizeVector.d.ts +5 -0
  132. package/dist/vector/fixedSizeVector.js +14 -0
  133. package/dist/vector/fixedSizeVector.js.map +1 -0
  134. package/dist/vector/flat/bitVector.d.ts +14 -0
  135. package/dist/vector/flat/bitVector.js +38 -0
  136. package/dist/vector/flat/bitVector.js.map +1 -0
  137. package/dist/vector/flat/booleanFlatVector.d.ts +20 -0
  138. package/dist/vector/flat/booleanFlatVector.js +55 -0
  139. package/dist/vector/flat/booleanFlatVector.js.map +1 -0
  140. package/dist/vector/flat/doubleFlatVector.d.ts +19 -0
  141. package/dist/vector/flat/doubleFlatVector.js +109 -0
  142. package/dist/vector/flat/doubleFlatVector.js.map +1 -0
  143. package/dist/vector/flat/floatFlatVector.d.ts +19 -0
  144. package/dist/vector/flat/floatFlatVector.js +109 -0
  145. package/dist/vector/flat/floatFlatVector.js.map +1 -0
  146. package/dist/vector/flat/intFlatVector.d.ts +19 -0
  147. package/dist/vector/flat/intFlatVector.js +123 -0
  148. package/dist/vector/flat/intFlatVector.js.map +1 -0
  149. package/dist/vector/flat/longFlatVector.d.ts +19 -0
  150. package/dist/vector/flat/longFlatVector.js +124 -0
  151. package/dist/vector/flat/longFlatVector.js.map +1 -0
  152. package/dist/vector/flat/stringFlatVector.d.ts +20 -0
  153. package/dist/vector/flat/stringFlatVector.js +165 -0
  154. package/dist/vector/flat/stringFlatVector.js.map +1 -0
  155. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.d.ts +27 -0
  156. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.js +115 -0
  157. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.js.map +1 -0
  158. package/dist/vector/geometry/constGeometryVector.d.ts +17 -0
  159. package/dist/vector/geometry/constGeometryVector.js +51 -0
  160. package/dist/vector/geometry/constGeometryVector.js.map +1 -0
  161. package/dist/vector/geometry/constGpuVector.d.ts +15 -0
  162. package/dist/vector/geometry/constGpuVector.js +66 -0
  163. package/dist/vector/geometry/constGpuVector.js.map +1 -0
  164. package/dist/vector/geometry/flatGeometryVector.d.ts +16 -0
  165. package/dist/vector/geometry/flatGeometryVector.js +64 -0
  166. package/dist/vector/geometry/flatGeometryVector.js.map +1 -0
  167. package/dist/vector/geometry/flatGpuVector.d.ts +14 -0
  168. package/dist/vector/geometry/flatGpuVector.js +67 -0
  169. package/dist/vector/geometry/flatGpuVector.js.map +1 -0
  170. package/dist/vector/geometry/geometryType.d.ts +13 -0
  171. package/dist/vector/geometry/geometryType.js +19 -0
  172. package/dist/vector/geometry/geometryType.js.map +1 -0
  173. package/dist/vector/geometry/geometryVector.d.ts +37 -0
  174. package/dist/vector/geometry/geometryVector.js +73 -0
  175. package/dist/vector/geometry/geometryVector.js.map +1 -0
  176. package/dist/vector/geometry/geometryVectorConverter.d.ts +2 -0
  177. package/dist/vector/geometry/geometryVectorConverter.js +302 -0
  178. package/dist/vector/geometry/geometryVectorConverter.js.map +1 -0
  179. package/dist/vector/geometry/gpuVector.d.ts +21 -0
  180. package/dist/vector/geometry/gpuVector.js +38 -0
  181. package/dist/vector/geometry/gpuVector.js.map +1 -0
  182. package/dist/vector/geometry/point.d.ts +195 -0
  183. package/dist/vector/geometry/point.js +283 -0
  184. package/dist/vector/geometry/point.js.map +1 -0
  185. package/dist/vector/geometry/spaceFillingCurve.d.ts +22 -0
  186. package/dist/vector/geometry/spaceFillingCurve.js +26 -0
  187. package/dist/vector/geometry/spaceFillingCurve.js.map +1 -0
  188. package/dist/vector/geometry/topologyVector.d.ts +9 -0
  189. package/dist/vector/geometry/topologyVector.js +21 -0
  190. package/dist/vector/geometry/topologyVector.js.map +1 -0
  191. package/dist/vector/geometry/zOrderCurve.d.ts +17 -0
  192. package/dist/vector/geometry/zOrderCurve.js +44 -0
  193. package/dist/vector/geometry/zOrderCurve.js.map +1 -0
  194. package/dist/vector/intVector.d.ts +8 -0
  195. package/dist/vector/intVector.js +3 -0
  196. package/dist/vector/intVector.js.map +1 -0
  197. package/dist/vector/sequence/intSequenceVector.d.ts +18 -0
  198. package/dist/vector/sequence/intSequenceVector.js +72 -0
  199. package/dist/vector/sequence/intSequenceVector.js.map +1 -0
  200. package/dist/vector/sequence/longSequenceVector.d.ts +18 -0
  201. package/dist/vector/sequence/longSequenceVector.js +57 -0
  202. package/dist/vector/sequence/longSequenceVector.js.map +1 -0
  203. package/dist/vector/sequence/sequenceVector.d.ts +5 -0
  204. package/dist/vector/sequence/sequenceVector.js +15 -0
  205. package/dist/vector/sequence/sequenceVector.js.map +1 -0
  206. package/dist/vector/variableSizeVector.d.ts +6 -0
  207. package/dist/vector/variableSizeVector.js +16 -0
  208. package/dist/vector/variableSizeVector.js.map +1 -0
  209. package/dist/vector/vector.d.ts +30 -0
  210. package/dist/vector/vector.js +73 -0
  211. package/dist/vector/vector.js.map +1 -0
  212. package/dist/vector/vectorType.d.ts +7 -0
  213. package/dist/vector/vectorType.js +12 -0
  214. package/dist/vector/vectorType.js.map +1 -0
  215. package/package.json +81 -0
@@ -0,0 +1,476 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
3
+ // @generated from file mlt_tileset_metadata.proto (package mlt, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ComplexField = exports.ScalarField = exports.Field = exports.ComplexColumn = exports.ScalarColumn = exports.Column = exports.FeatureTableSchema = exports.TileSetMetadata = exports.LogicalComplexType = exports.LogicalScalarType = exports.ComplexType = exports.ScalarType = exports.ColumnScope = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ /**
10
+ * @generated from enum mlt.ColumnScope
11
+ */
12
+ var ColumnScope;
13
+ (function (ColumnScope) {
14
+ /**
15
+ * 1:1 Mapping of property and feature -> id and geometry
16
+ *
17
+ * @generated from enum value: FEATURE = 0;
18
+ */
19
+ ColumnScope[ColumnScope["FEATURE"] = 0] = "FEATURE";
20
+ /**
21
+ * For M-Values -> 1:1 Mapping for property and vertex
22
+ *
23
+ * @generated from enum value: VERTEX = 1;
24
+ */
25
+ ColumnScope[ColumnScope["VERTEX"] = 1] = "VERTEX";
26
+ })(ColumnScope || (exports.ColumnScope = ColumnScope = {}));
27
+ // Retrieve enum metadata with: proto3.getEnumType(ColumnScope)
28
+ protobuf_1.proto3.util.setEnumType(ColumnScope, "mlt.ColumnScope", [
29
+ { no: 0, name: "FEATURE" },
30
+ { no: 1, name: "VERTEX" },
31
+ ]);
32
+ /**
33
+ * @generated from enum mlt.ScalarType
34
+ */
35
+ var ScalarType;
36
+ (function (ScalarType) {
37
+ /**
38
+ * @generated from enum value: BOOLEAN = 0;
39
+ */
40
+ ScalarType[ScalarType["BOOLEAN"] = 0] = "BOOLEAN";
41
+ /**
42
+ * @generated from enum value: INT_8 = 1;
43
+ */
44
+ ScalarType[ScalarType["INT_8"] = 1] = "INT_8";
45
+ /**
46
+ * @generated from enum value: UINT_8 = 2;
47
+ */
48
+ ScalarType[ScalarType["UINT_8"] = 2] = "UINT_8";
49
+ /**
50
+ * @generated from enum value: INT_32 = 3;
51
+ */
52
+ ScalarType[ScalarType["INT_32"] = 3] = "INT_32";
53
+ /**
54
+ * @generated from enum value: UINT_32 = 4;
55
+ */
56
+ ScalarType[ScalarType["UINT_32"] = 4] = "UINT_32";
57
+ /**
58
+ * @generated from enum value: INT_64 = 5;
59
+ */
60
+ ScalarType[ScalarType["INT_64"] = 5] = "INT_64";
61
+ /**
62
+ * @generated from enum value: UINT_64 = 6;
63
+ */
64
+ ScalarType[ScalarType["UINT_64"] = 6] = "UINT_64";
65
+ /**
66
+ * @generated from enum value: FLOAT = 7;
67
+ */
68
+ ScalarType[ScalarType["FLOAT"] = 7] = "FLOAT";
69
+ /**
70
+ * @generated from enum value: DOUBLE = 8;
71
+ */
72
+ ScalarType[ScalarType["DOUBLE"] = 8] = "DOUBLE";
73
+ /**
74
+ * @generated from enum value: STRING = 9;
75
+ */
76
+ ScalarType[ScalarType["STRING"] = 9] = "STRING";
77
+ })(ScalarType || (exports.ScalarType = ScalarType = {}));
78
+ // Retrieve enum metadata with: proto3.getEnumType(ScalarType)
79
+ protobuf_1.proto3.util.setEnumType(ScalarType, "mlt.ScalarType", [
80
+ { no: 0, name: "BOOLEAN" },
81
+ { no: 1, name: "INT_8" },
82
+ { no: 2, name: "UINT_8" },
83
+ { no: 3, name: "INT_32" },
84
+ { no: 4, name: "UINT_32" },
85
+ { no: 5, name: "INT_64" },
86
+ { no: 6, name: "UINT_64" },
87
+ { no: 7, name: "FLOAT" },
88
+ { no: 8, name: "DOUBLE" },
89
+ { no: 9, name: "STRING" },
90
+ ]);
91
+ /**
92
+ * @generated from enum mlt.ComplexType
93
+ */
94
+ var ComplexType;
95
+ (function (ComplexType) {
96
+ /**
97
+ * @generated from enum value: GEOMETRY = 0;
98
+ */
99
+ ComplexType[ComplexType["GEOMETRY"] = 0] = "GEOMETRY";
100
+ /**
101
+ * @generated from enum value: STRUCT = 1;
102
+ */
103
+ ComplexType[ComplexType["STRUCT"] = 1] = "STRUCT";
104
+ })(ComplexType || (exports.ComplexType = ComplexType = {}));
105
+ // Retrieve enum metadata with: proto3.getEnumType(ComplexType)
106
+ protobuf_1.proto3.util.setEnumType(ComplexType, "mlt.ComplexType", [
107
+ { no: 0, name: "GEOMETRY" },
108
+ { no: 1, name: "STRUCT" },
109
+ ]);
110
+ /**
111
+ * @generated from enum mlt.LogicalScalarType
112
+ */
113
+ var LogicalScalarType;
114
+ (function (LogicalScalarType) {
115
+ /**
116
+ * @generated from enum value: ID = 0;
117
+ */
118
+ LogicalScalarType[LogicalScalarType["ID"] = 0] = "ID";
119
+ })(LogicalScalarType || (exports.LogicalScalarType = LogicalScalarType = {}));
120
+ // Retrieve enum metadata with: proto3.getEnumType(LogicalScalarType)
121
+ protobuf_1.proto3.util.setEnumType(LogicalScalarType, "mlt.LogicalScalarType", [
122
+ { no: 0, name: "ID" },
123
+ ]);
124
+ /**
125
+ * @generated from enum mlt.LogicalComplexType
126
+ */
127
+ var LogicalComplexType;
128
+ (function (LogicalComplexType) {
129
+ /**
130
+ * physical type: list<UInt8>
131
+ *
132
+ * @generated from enum value: BINARY = 0;
133
+ */
134
+ LogicalComplexType[LogicalComplexType["BINARY"] = 0] = "BINARY";
135
+ /**
136
+ * physical type: map<vec2<double, T>> -> special data structure which can be used for a efficient representation of linear referencing
137
+ *
138
+ * @generated from enum value: RANGE_MAP = 1;
139
+ */
140
+ LogicalComplexType[LogicalComplexType["RANGE_MAP"] = 1] = "RANGE_MAP";
141
+ })(LogicalComplexType || (exports.LogicalComplexType = LogicalComplexType = {}));
142
+ // Retrieve enum metadata with: proto3.getEnumType(LogicalComplexType)
143
+ protobuf_1.proto3.util.setEnumType(LogicalComplexType, "mlt.LogicalComplexType", [
144
+ { no: 0, name: "BINARY" },
145
+ { no: 1, name: "RANGE_MAP" },
146
+ ]);
147
+ /**
148
+ * @generated from message mlt.TileSetMetadata
149
+ */
150
+ class TileSetMetadata extends protobuf_1.Message {
151
+ constructor(data) {
152
+ super();
153
+ /**
154
+ * @generated from field: int32 version = 1;
155
+ */
156
+ this.version = 0;
157
+ /**
158
+ * @generated from field: repeated mlt.FeatureTableSchema featureTables = 2;
159
+ */
160
+ this.featureTables = [];
161
+ /**
162
+ * order left, bottom, right, top in WGS84
163
+ *
164
+ * @generated from field: repeated double bounds = 8;
165
+ */
166
+ this.bounds = [];
167
+ /**
168
+ * order longitude, latitude in WGS84
169
+ *
170
+ * @generated from field: repeated double center = 9;
171
+ */
172
+ this.center = [];
173
+ protobuf_1.proto3.util.initPartial(data, this);
174
+ }
175
+ static fromBinary(bytes, options) {
176
+ return new TileSetMetadata().fromBinary(bytes, options);
177
+ }
178
+ static fromJson(jsonValue, options) {
179
+ return new TileSetMetadata().fromJson(jsonValue, options);
180
+ }
181
+ static fromJsonString(jsonString, options) {
182
+ return new TileSetMetadata().fromJsonString(jsonString, options);
183
+ }
184
+ static equals(a, b) {
185
+ return protobuf_1.proto3.util.equals(TileSetMetadata, a, b);
186
+ }
187
+ }
188
+ exports.TileSetMetadata = TileSetMetadata;
189
+ TileSetMetadata.runtime = protobuf_1.proto3;
190
+ TileSetMetadata.typeName = "mlt.TileSetMetadata";
191
+ TileSetMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
192
+ { no: 1, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
193
+ { no: 2, name: "featureTables", kind: "message", T: FeatureTableSchema, repeated: true },
194
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
195
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
196
+ { no: 5, name: "attribution", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
197
+ { no: 6, name: "minZoom", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
198
+ { no: 7, name: "maxZoom", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
199
+ { no: 8, name: "bounds", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
200
+ { no: 9, name: "center", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
201
+ ]);
202
+ /**
203
+ * @generated from message mlt.FeatureTableSchema
204
+ */
205
+ class FeatureTableSchema extends protobuf_1.Message {
206
+ constructor(data) {
207
+ super();
208
+ /**
209
+ * @generated from field: string name = 1;
210
+ */
211
+ this.name = "";
212
+ /**
213
+ * @generated from field: repeated mlt.Column columns = 2;
214
+ */
215
+ this.columns = [];
216
+ protobuf_1.proto3.util.initPartial(data, this);
217
+ }
218
+ static fromBinary(bytes, options) {
219
+ return new FeatureTableSchema().fromBinary(bytes, options);
220
+ }
221
+ static fromJson(jsonValue, options) {
222
+ return new FeatureTableSchema().fromJson(jsonValue, options);
223
+ }
224
+ static fromJsonString(jsonString, options) {
225
+ return new FeatureTableSchema().fromJsonString(jsonString, options);
226
+ }
227
+ static equals(a, b) {
228
+ return protobuf_1.proto3.util.equals(FeatureTableSchema, a, b);
229
+ }
230
+ }
231
+ exports.FeatureTableSchema = FeatureTableSchema;
232
+ FeatureTableSchema.runtime = protobuf_1.proto3;
233
+ FeatureTableSchema.typeName = "mlt.FeatureTableSchema";
234
+ FeatureTableSchema.fields = protobuf_1.proto3.util.newFieldList(() => [
235
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
236
+ { no: 2, name: "columns", kind: "message", T: Column, repeated: true },
237
+ ]);
238
+ /**
239
+ * Column are top-level types in the schema
240
+ *
241
+ * @generated from message mlt.Column
242
+ */
243
+ class Column extends protobuf_1.Message {
244
+ constructor(data) {
245
+ super();
246
+ /**
247
+ * @generated from field: string name = 1;
248
+ */
249
+ this.name = "";
250
+ /**
251
+ * specifies if the values are optional in the column and a present stream should be used
252
+ *
253
+ * @generated from field: bool nullable = 2;
254
+ */
255
+ this.nullable = false;
256
+ /**
257
+ * @generated from field: mlt.ColumnScope columnScope = 3;
258
+ */
259
+ this.columnScope = ColumnScope.FEATURE;
260
+ /**
261
+ * @generated from oneof mlt.Column.type
262
+ */
263
+ this.type = { case: undefined };
264
+ protobuf_1.proto3.util.initPartial(data, this);
265
+ }
266
+ static fromBinary(bytes, options) {
267
+ return new Column().fromBinary(bytes, options);
268
+ }
269
+ static fromJson(jsonValue, options) {
270
+ return new Column().fromJson(jsonValue, options);
271
+ }
272
+ static fromJsonString(jsonString, options) {
273
+ return new Column().fromJsonString(jsonString, options);
274
+ }
275
+ static equals(a, b) {
276
+ return protobuf_1.proto3.util.equals(Column, a, b);
277
+ }
278
+ }
279
+ exports.Column = Column;
280
+ Column.runtime = protobuf_1.proto3;
281
+ Column.typeName = "mlt.Column";
282
+ Column.fields = protobuf_1.proto3.util.newFieldList(() => [
283
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
284
+ { no: 2, name: "nullable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
285
+ { no: 3, name: "columnScope", kind: "enum", T: protobuf_1.proto3.getEnumType(ColumnScope) },
286
+ { no: 4, name: "scalarType", kind: "message", T: ScalarColumn, oneof: "type" },
287
+ { no: 5, name: "complexType", kind: "message", T: ComplexColumn, oneof: "type" },
288
+ ]);
289
+ /**
290
+ * @generated from message mlt.ScalarColumn
291
+ */
292
+ class ScalarColumn extends protobuf_1.Message {
293
+ constructor(data) {
294
+ super();
295
+ /**
296
+ * this belongs elsewhere, but is here for now
297
+ *
298
+ * @generated from field: bool longID = 1;
299
+ */
300
+ this.longID = false;
301
+ /**
302
+ * @generated from oneof mlt.ScalarColumn.type
303
+ */
304
+ this.type = { case: undefined };
305
+ protobuf_1.proto3.util.initPartial(data, this);
306
+ }
307
+ static fromBinary(bytes, options) {
308
+ return new ScalarColumn().fromBinary(bytes, options);
309
+ }
310
+ static fromJson(jsonValue, options) {
311
+ return new ScalarColumn().fromJson(jsonValue, options);
312
+ }
313
+ static fromJsonString(jsonString, options) {
314
+ return new ScalarColumn().fromJsonString(jsonString, options);
315
+ }
316
+ static equals(a, b) {
317
+ return protobuf_1.proto3.util.equals(ScalarColumn, a, b);
318
+ }
319
+ }
320
+ exports.ScalarColumn = ScalarColumn;
321
+ ScalarColumn.runtime = protobuf_1.proto3;
322
+ ScalarColumn.typeName = "mlt.ScalarColumn";
323
+ ScalarColumn.fields = protobuf_1.proto3.util.newFieldList(() => [
324
+ { no: 1, name: "longID", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
325
+ { no: 4, name: "physicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(ScalarType), oneof: "type" },
326
+ { no: 5, name: "logicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(LogicalScalarType), oneof: "type" },
327
+ ]);
328
+ /**
329
+ * The type tree is flattened in to a list via a pre-order traversal
330
+ * Represents a column if it is a root (top-level) type or a child of a nested type
331
+ *
332
+ * @generated from message mlt.ComplexColumn
333
+ */
334
+ class ComplexColumn extends protobuf_1.Message {
335
+ constructor(data) {
336
+ super();
337
+ /**
338
+ * @generated from oneof mlt.ComplexColumn.type
339
+ */
340
+ this.type = { case: undefined };
341
+ /**
342
+ * The complex type Geometry and the logical type BINARY have no children since there layout is implicit known.
343
+ * RangeMap has only one child specifying the type of the value since the key is always a vec2<double>.
344
+ *
345
+ * @generated from field: repeated mlt.Field children = 6;
346
+ */
347
+ this.children = [];
348
+ protobuf_1.proto3.util.initPartial(data, this);
349
+ }
350
+ static fromBinary(bytes, options) {
351
+ return new ComplexColumn().fromBinary(bytes, options);
352
+ }
353
+ static fromJson(jsonValue, options) {
354
+ return new ComplexColumn().fromJson(jsonValue, options);
355
+ }
356
+ static fromJsonString(jsonString, options) {
357
+ return new ComplexColumn().fromJsonString(jsonString, options);
358
+ }
359
+ static equals(a, b) {
360
+ return protobuf_1.proto3.util.equals(ComplexColumn, a, b);
361
+ }
362
+ }
363
+ exports.ComplexColumn = ComplexColumn;
364
+ ComplexColumn.runtime = protobuf_1.proto3;
365
+ ComplexColumn.typeName = "mlt.ComplexColumn";
366
+ ComplexColumn.fields = protobuf_1.proto3.util.newFieldList(() => [
367
+ { no: 4, name: "physicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(ComplexType), oneof: "type" },
368
+ { no: 5, name: "logicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(LogicalComplexType), oneof: "type" },
369
+ { no: 6, name: "children", kind: "message", T: Field, repeated: true },
370
+ ]);
371
+ /**
372
+ * Fields define nested or leaf types in the schema as part of a complex type definition
373
+ *
374
+ * @generated from message mlt.Field
375
+ */
376
+ class Field extends protobuf_1.Message {
377
+ constructor(data) {
378
+ super();
379
+ /**
380
+ * @generated from oneof mlt.Field.type
381
+ */
382
+ this.type = { case: undefined };
383
+ protobuf_1.proto3.util.initPartial(data, this);
384
+ }
385
+ static fromBinary(bytes, options) {
386
+ return new Field().fromBinary(bytes, options);
387
+ }
388
+ static fromJson(jsonValue, options) {
389
+ return new Field().fromJson(jsonValue, options);
390
+ }
391
+ static fromJsonString(jsonString, options) {
392
+ return new Field().fromJsonString(jsonString, options);
393
+ }
394
+ static equals(a, b) {
395
+ return protobuf_1.proto3.util.equals(Field, a, b);
396
+ }
397
+ }
398
+ exports.Field = Field;
399
+ Field.runtime = protobuf_1.proto3;
400
+ Field.typeName = "mlt.Field";
401
+ Field.fields = protobuf_1.proto3.util.newFieldList(() => [
402
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
403
+ { no: 2, name: "nullable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
404
+ { no: 3, name: "scalarField", kind: "message", T: ScalarField, oneof: "type" },
405
+ { no: 4, name: "complexField", kind: "message", T: ComplexField, oneof: "type" },
406
+ ]);
407
+ /**
408
+ * @generated from message mlt.ScalarField
409
+ */
410
+ class ScalarField extends protobuf_1.Message {
411
+ constructor(data) {
412
+ super();
413
+ /**
414
+ * @generated from oneof mlt.ScalarField.type
415
+ */
416
+ this.type = { case: undefined };
417
+ protobuf_1.proto3.util.initPartial(data, this);
418
+ }
419
+ static fromBinary(bytes, options) {
420
+ return new ScalarField().fromBinary(bytes, options);
421
+ }
422
+ static fromJson(jsonValue, options) {
423
+ return new ScalarField().fromJson(jsonValue, options);
424
+ }
425
+ static fromJsonString(jsonString, options) {
426
+ return new ScalarField().fromJsonString(jsonString, options);
427
+ }
428
+ static equals(a, b) {
429
+ return protobuf_1.proto3.util.equals(ScalarField, a, b);
430
+ }
431
+ }
432
+ exports.ScalarField = ScalarField;
433
+ ScalarField.runtime = protobuf_1.proto3;
434
+ ScalarField.typeName = "mlt.ScalarField";
435
+ ScalarField.fields = protobuf_1.proto3.util.newFieldList(() => [
436
+ { no: 1, name: "physicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(ScalarType), oneof: "type" },
437
+ { no: 2, name: "logicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(LogicalScalarType), oneof: "type" },
438
+ ]);
439
+ /**
440
+ * @generated from message mlt.ComplexField
441
+ */
442
+ class ComplexField extends protobuf_1.Message {
443
+ constructor(data) {
444
+ super();
445
+ /**
446
+ * @generated from oneof mlt.ComplexField.type
447
+ */
448
+ this.type = { case: undefined };
449
+ /**
450
+ * @generated from field: repeated mlt.Field children = 3;
451
+ */
452
+ this.children = [];
453
+ protobuf_1.proto3.util.initPartial(data, this);
454
+ }
455
+ static fromBinary(bytes, options) {
456
+ return new ComplexField().fromBinary(bytes, options);
457
+ }
458
+ static fromJson(jsonValue, options) {
459
+ return new ComplexField().fromJson(jsonValue, options);
460
+ }
461
+ static fromJsonString(jsonString, options) {
462
+ return new ComplexField().fromJsonString(jsonString, options);
463
+ }
464
+ static equals(a, b) {
465
+ return protobuf_1.proto3.util.equals(ComplexField, a, b);
466
+ }
467
+ }
468
+ exports.ComplexField = ComplexField;
469
+ ComplexField.runtime = protobuf_1.proto3;
470
+ ComplexField.typeName = "mlt.ComplexField";
471
+ ComplexField.fields = protobuf_1.proto3.util.newFieldList(() => [
472
+ { no: 1, name: "physicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(ComplexType), oneof: "type" },
473
+ { no: 2, name: "logicalType", kind: "enum", T: protobuf_1.proto3.getEnumType(LogicalComplexType), oneof: "type" },
474
+ { no: 3, name: "children", kind: "message", T: Field, repeated: true },
475
+ ]);
476
+ //# sourceMappingURL=tilesetMetadata.g.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilesetMetadata.g.js","sourceRoot":"","sources":["../../../src/metadata/tileset/tilesetMetadata.g.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE,+EAA+E;AAC/E,oBAAoB;AACpB,cAAc;;;AAGd,iDAAqD;AAErD;;GAEG;AACH,IAAY,WAcX;AAdD,WAAY,WAAW;IACrB;;;;OAIG;IACH,mDAAW,CAAA;IAEX;;;;OAIG;IACH,iDAAU,CAAA;AACZ,CAAC,EAdW,WAAW,2BAAX,WAAW,QActB;AACD,+DAA+D;AAC/D,iBAAM,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,iBAAiB,EAAE;IACtD,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE;IAC1B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;C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,AAArB,CAAsB;AAC9B,mBAAM,GAAc,iBAAM,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;IACjE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,iBAAM,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;IAChG,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,iBAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;IACtG,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;CACvE,CAAC,AAJoB,CAInB"}
@@ -0,0 +1,38 @@
1
+ import { Column } from "./tilesetMetadata.g";
2
+ /**
3
+ * The type code is a single varint32 that encodes:
4
+ * - Physical or logical type
5
+ * - Nullable flag
6
+ * - Whether the column has a name (typeCode >= 10)
7
+ * - Whether the column has children (typeCode == 30 for STRUCT)
8
+ * - For ID types: whether it uses long (64-bit) IDs
9
+ */
10
+ export declare class TypeMap {
11
+ /**
12
+ * Decodes a type code into a Column structure.
13
+ * ID columns (0-3) are represented as physical UINT_32 or UINT_64 types in TypeScript
14
+ */
15
+ static decodeColumnType(typeCode: number): Column | null;
16
+ /**
17
+ * Returns true if this type code requires a name to be stored.
18
+ * ID (0-3) and GEOMETRY (4) columns have implicit names.
19
+ * All other types (>= 10) require explicit names.
20
+ */
21
+ static columnTypeHasName(typeCode: number): boolean;
22
+ /**
23
+ * Returns true if this type code has child fields.
24
+ * Only STRUCT (typeCode 30) has children.
25
+ */
26
+ static columnTypeHasChildren(typeCode: number): boolean;
27
+ /**
28
+ * Determines if a stream count needs to be read for this column.
29
+ * Mirrors the logic in cpp/include/mlt/metadata/type_map.hpp lines 81-118
30
+ */
31
+ static hasStreamCount(column: Column): boolean;
32
+ /**
33
+ * Maps a scalar type code to a Column with ScalarType.
34
+ * Type codes 10-29 encode scalar types with nullable flag.
35
+ * Even codes are non-nullable, odd codes are nullable.
36
+ */
37
+ private static mapScalarType;
38
+ }