@loaders.gl/flatgeobuf 4.2.0-alpha.4 → 4.2.0-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.
- package/dist/dist.dev.js +264 -218
- package/dist/dist.min.js +30 -0
- package/dist/flatgeobuf/3.27.2/column-meta.d.ts +1 -1
- package/dist/flatgeobuf/3.27.2/column-meta.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/column-meta.js +1 -2
- package/dist/flatgeobuf/3.27.2/config.js +13 -13
- package/dist/flatgeobuf/3.27.2/constants.js +3 -2
- package/dist/flatgeobuf/3.27.2/crs-meta.js +1 -2
- package/dist/flatgeobuf/3.27.2/dumptree.js +28 -23
- package/dist/flatgeobuf/3.27.2/feature.d.ts +1 -1
- package/dist/flatgeobuf/3.27.2/feature.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/feature.js +2 -3
- package/dist/flatgeobuf/3.27.2/flat-geobuf/column-type.js +19 -19
- package/dist/flatgeobuf/3.27.2/flat-geobuf/column.d.ts +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/column.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/column.js +115 -117
- package/dist/flatgeobuf/3.27.2/flat-geobuf/crs.js +74 -76
- package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.d.ts +2 -2
- package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.js +94 -90
- package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry-type.js +22 -22
- package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.d.ts +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.js +222 -210
- package/dist/flatgeobuf/3.27.2/flat-geobuf/header.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/flat-geobuf/header.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/header.js +164 -160
- package/dist/flatgeobuf/3.27.2/flat-geobuf.d.ts +5 -5
- package/dist/flatgeobuf/3.27.2/flat-geobuf.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf.js +1 -1
- package/dist/flatgeobuf/3.27.2/generic/feature.d.ts +4 -4
- package/dist/flatgeobuf/3.27.2/generic/feature.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/generic/feature.js +195 -205
- package/dist/flatgeobuf/3.27.2/generic/featurecollection.d.ts +6 -6
- package/dist/flatgeobuf/3.27.2/generic/featurecollection.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/generic/featurecollection.js +150 -128
- package/dist/flatgeobuf/3.27.2/generic/geometry.d.ts +2 -2
- package/dist/flatgeobuf/3.27.2/generic/geometry.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/generic/geometry.js +78 -66
- package/dist/flatgeobuf/3.27.2/generic/header.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/generic/header.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/generic/header.js +18 -18
- package/dist/flatgeobuf/3.27.2/generic/index.d.ts +4 -4
- package/dist/flatgeobuf/3.27.2/generic/index.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/generic/index.js +2 -1
- package/dist/flatgeobuf/3.27.2/generic.d.ts +7 -7
- package/dist/flatgeobuf/3.27.2/generic.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/generic.js +11 -3
- package/dist/flatgeobuf/3.27.2/geojson/feature.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/geojson/feature.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/geojson/feature.js +8 -9
- package/dist/flatgeobuf/3.27.2/geojson/featurecollection.d.ts +2 -2
- package/dist/flatgeobuf/3.27.2/geojson/featurecollection.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/geojson/featurecollection.js +40 -38
- package/dist/flatgeobuf/3.27.2/geojson/geometry.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/geojson/geometry.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/geojson/geometry.js +107 -103
- package/dist/flatgeobuf/3.27.2/geojson/index.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/geojson/index.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/geojson/index.js +2 -1
- package/dist/flatgeobuf/3.27.2/geojson.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/geojson.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/geojson.js +17 -5
- package/dist/flatgeobuf/3.27.2/header-meta.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/header-meta.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/header-meta.js +46 -43
- package/dist/flatgeobuf/3.27.2/header.d.ts +1 -1
- package/dist/flatgeobuf/3.27.2/header.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/header.js +2 -3
- package/dist/flatgeobuf/3.27.2/http-reader.d.ts +3 -3
- package/dist/flatgeobuf/3.27.2/http-reader.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/http-reader.js +241 -171
- package/dist/flatgeobuf/3.27.2/index.d.ts +13 -13
- package/dist/flatgeobuf/3.27.2/index.d.ts.map +1 -1
- package/dist/flatgeobuf/3.27.2/index.js +5 -13
- package/dist/flatgeobuf/3.27.2/logger.js +36 -56
- package/dist/flatgeobuf/3.27.2/packedrtree.js +176 -123
- package/dist/flatgeobuf/3.27.2/streams/utils.js +59 -58
- package/dist/flatgeobuf-loader.js +29 -23
- package/dist/flatgeobuf-worker.js +40 -35
- package/dist/index.cjs +191 -213
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/lib/binary-geometries.js +115 -117
- package/dist/lib/get-schema-from-fgb-header.js +110 -85
- package/dist/lib/parse-flatgeobuf.d.ts +1 -1
- package/dist/lib/parse-flatgeobuf.d.ts.map +1 -1
- package/dist/lib/parse-flatgeobuf.js +125 -109
- package/dist/workers/flatgeobuf-worker.js +3 -1
- package/package.json +11 -6
- package/dist/LICENSE +0 -9
- package/dist/flatgeobuf/3.27.2/LICENSE +0 -29
- package/dist/flatgeobuf/3.27.2/README.md +0 -45
- package/dist/flatgeobuf/3.27.2/column-meta.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/config.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/constants.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/crs-meta.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/dumptree.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/feature.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/column-type.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/column.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/crs.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry-type.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf/header.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/flat-geobuf.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/generic/feature.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/generic/featurecollection.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/generic/geometry.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/generic/header.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/generic/index.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/generic.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/geojson/feature.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/geojson/featurecollection.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/geojson/geometry.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/geojson/index.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/geojson.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/header-meta.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/header.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/http-reader.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/index.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/logger.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/packedrtree.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/streams/utils.js.map +0 -1
- package/dist/flatgeobuf/3.27.2/types/jsts.d.ts +0 -23
- package/dist/flatgeobuf/3.27.2/types/slice.d.ts +0 -16
- package/dist/flatgeobuf-loader.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/binary-geometries.js.map +0 -1
- package/dist/lib/get-schema-from-fgb-header.js.map +0 -1
- package/dist/lib/parse-flatgeobuf.js.map +0 -1
- package/dist/workers/flatgeobuf-worker.js.map +0 -1
|
@@ -1,166 +1,170 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
1
2
|
import * as flatbuffers from 'flatbuffers';
|
|
2
3
|
import { Column } from "../flat-geobuf/column.js";
|
|
3
4
|
import { Crs } from "../flat-geobuf/crs.js";
|
|
4
5
|
import { GeometryType } from "../flat-geobuf/geometry-type.js";
|
|
5
6
|
export class Header {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
builder
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
builder
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
builder
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
builder
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
builder
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
builder
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
builder
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
builder
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
builder
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
builder
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
builder
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
builder
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
builder
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
builder
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
builder
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
builder
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
builder
|
|
164
|
-
|
|
7
|
+
bb = null;
|
|
8
|
+
bb_pos = 0;
|
|
9
|
+
__init(i, bb) {
|
|
10
|
+
this.bb_pos = i;
|
|
11
|
+
this.bb = bb;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
static getRootAsHeader(bb, obj) {
|
|
15
|
+
return (obj || new Header()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
16
|
+
}
|
|
17
|
+
static getSizePrefixedRootAsHeader(bb, obj) {
|
|
18
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
19
|
+
return (obj || new Header()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
+
}
|
|
21
|
+
name(optionalEncoding) {
|
|
22
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
23
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
24
|
+
}
|
|
25
|
+
envelope(index) {
|
|
26
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
27
|
+
return offset ? this.bb.readFloat64(this.bb.__vector(this.bb_pos + offset) + index * 8) : 0;
|
|
28
|
+
}
|
|
29
|
+
envelopeLength() {
|
|
30
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
31
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
32
|
+
}
|
|
33
|
+
envelopeArray() {
|
|
34
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
35
|
+
return offset
|
|
36
|
+
? new Float64Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset))
|
|
37
|
+
: null;
|
|
38
|
+
}
|
|
39
|
+
geometryType() {
|
|
40
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
41
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : GeometryType.Unknown;
|
|
42
|
+
}
|
|
43
|
+
hasZ() {
|
|
44
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
45
|
+
return offset ? Boolean(this.bb.readInt8(this.bb_pos + offset)) : false;
|
|
46
|
+
}
|
|
47
|
+
hasM() {
|
|
48
|
+
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
49
|
+
return offset ? Boolean(this.bb.readInt8(this.bb_pos + offset)) : false;
|
|
50
|
+
}
|
|
51
|
+
hasT() {
|
|
52
|
+
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
53
|
+
return offset ? Boolean(this.bb.readInt8(this.bb_pos + offset)) : false;
|
|
54
|
+
}
|
|
55
|
+
hasTm() {
|
|
56
|
+
const offset = this.bb.__offset(this.bb_pos, 16);
|
|
57
|
+
return offset ? Boolean(this.bb.readInt8(this.bb_pos + offset)) : false;
|
|
58
|
+
}
|
|
59
|
+
columns(index, obj) {
|
|
60
|
+
const offset = this.bb.__offset(this.bb_pos, 18);
|
|
61
|
+
return offset
|
|
62
|
+
? (obj || new Column()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb)
|
|
63
|
+
: null;
|
|
64
|
+
}
|
|
65
|
+
columnsLength() {
|
|
66
|
+
const offset = this.bb.__offset(this.bb_pos, 18);
|
|
67
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
68
|
+
}
|
|
69
|
+
featuresCount() {
|
|
70
|
+
const offset = this.bb.__offset(this.bb_pos, 20);
|
|
71
|
+
return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
72
|
+
}
|
|
73
|
+
indexNodeSize() {
|
|
74
|
+
const offset = this.bb.__offset(this.bb_pos, 22);
|
|
75
|
+
return offset ? this.bb.readUint16(this.bb_pos + offset) : 16;
|
|
76
|
+
}
|
|
77
|
+
crs(obj) {
|
|
78
|
+
const offset = this.bb.__offset(this.bb_pos, 24);
|
|
79
|
+
return offset
|
|
80
|
+
? (obj || new Crs()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb)
|
|
81
|
+
: null;
|
|
82
|
+
}
|
|
83
|
+
title(optionalEncoding) {
|
|
84
|
+
const offset = this.bb.__offset(this.bb_pos, 26);
|
|
85
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
86
|
+
}
|
|
87
|
+
description(optionalEncoding) {
|
|
88
|
+
const offset = this.bb.__offset(this.bb_pos, 28);
|
|
89
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
90
|
+
}
|
|
91
|
+
metadata(optionalEncoding) {
|
|
92
|
+
const offset = this.bb.__offset(this.bb_pos, 30);
|
|
93
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
94
|
+
}
|
|
95
|
+
static startHeader(builder) {
|
|
96
|
+
builder.startObject(14);
|
|
97
|
+
}
|
|
98
|
+
static addName(builder, nameOffset) {
|
|
99
|
+
builder.addFieldOffset(0, nameOffset, 0);
|
|
100
|
+
}
|
|
101
|
+
static addEnvelope(builder, envelopeOffset) {
|
|
102
|
+
builder.addFieldOffset(1, envelopeOffset, 0);
|
|
103
|
+
}
|
|
104
|
+
static createEnvelopeVector(builder, data) {
|
|
105
|
+
builder.startVector(8, data.length, 8);
|
|
106
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
107
|
+
builder.addFloat64(data[i]);
|
|
108
|
+
}
|
|
109
|
+
return builder.endVector();
|
|
110
|
+
}
|
|
111
|
+
static startEnvelopeVector(builder, numElems) {
|
|
112
|
+
builder.startVector(8, numElems, 8);
|
|
113
|
+
}
|
|
114
|
+
static addGeometryType(builder, geometryType) {
|
|
115
|
+
builder.addFieldInt8(2, geometryType, GeometryType.Unknown);
|
|
116
|
+
}
|
|
117
|
+
static addHasZ(builder, hasZ) {
|
|
118
|
+
builder.addFieldInt8(3, Number(hasZ), Number(false));
|
|
119
|
+
}
|
|
120
|
+
static addHasM(builder, hasM) {
|
|
121
|
+
builder.addFieldInt8(4, Number(hasM), Number(false));
|
|
122
|
+
}
|
|
123
|
+
static addHasT(builder, hasT) {
|
|
124
|
+
builder.addFieldInt8(5, Number(hasT), Number(false));
|
|
125
|
+
}
|
|
126
|
+
static addHasTm(builder, hasTm) {
|
|
127
|
+
builder.addFieldInt8(6, Number(hasTm), Number(false));
|
|
128
|
+
}
|
|
129
|
+
static addColumns(builder, columnsOffset) {
|
|
130
|
+
builder.addFieldOffset(7, columnsOffset, 0);
|
|
131
|
+
}
|
|
132
|
+
static createColumnsVector(builder, data) {
|
|
133
|
+
builder.startVector(4, data.length, 4);
|
|
134
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
135
|
+
builder.addOffset(data[i]);
|
|
136
|
+
}
|
|
137
|
+
return builder.endVector();
|
|
138
|
+
}
|
|
139
|
+
static startColumnsVector(builder, numElems) {
|
|
140
|
+
builder.startVector(4, numElems, 4);
|
|
141
|
+
}
|
|
142
|
+
static addFeaturesCount(builder, featuresCount) {
|
|
143
|
+
builder.addFieldInt64(8, featuresCount, BigInt('0'));
|
|
144
|
+
}
|
|
145
|
+
static addIndexNodeSize(builder, indexNodeSize) {
|
|
146
|
+
builder.addFieldInt16(9, indexNodeSize, 16);
|
|
147
|
+
}
|
|
148
|
+
static addCrs(builder, crsOffset) {
|
|
149
|
+
builder.addFieldOffset(10, crsOffset, 0);
|
|
150
|
+
}
|
|
151
|
+
static addTitle(builder, titleOffset) {
|
|
152
|
+
builder.addFieldOffset(11, titleOffset, 0);
|
|
153
|
+
}
|
|
154
|
+
static addDescription(builder, descriptionOffset) {
|
|
155
|
+
builder.addFieldOffset(12, descriptionOffset, 0);
|
|
156
|
+
}
|
|
157
|
+
static addMetadata(builder, metadataOffset) {
|
|
158
|
+
builder.addFieldOffset(13, metadataOffset, 0);
|
|
159
|
+
}
|
|
160
|
+
static endHeader(builder) {
|
|
161
|
+
const offset = builder.endObject();
|
|
162
|
+
return offset;
|
|
163
|
+
}
|
|
164
|
+
static finishHeaderBuffer(builder, offset) {
|
|
165
|
+
builder.finish(offset);
|
|
166
|
+
}
|
|
167
|
+
static finishSizePrefixedHeaderBuffer(builder, offset) {
|
|
168
|
+
builder.finish(offset, undefined, true);
|
|
169
|
+
}
|
|
165
170
|
}
|
|
166
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Column } from
|
|
2
|
-
export { ColumnType } from
|
|
3
|
-
export { Crs } from
|
|
4
|
-
export { GeometryType } from
|
|
5
|
-
export { Header } from
|
|
1
|
+
export { Column } from "./flat-geobuf/column.js";
|
|
2
|
+
export { ColumnType } from "./flat-geobuf/column-type.js";
|
|
3
|
+
export { Crs } from "./flat-geobuf/crs.js";
|
|
4
|
+
export { GeometryType } from "./flat-geobuf/geometry-type.js";
|
|
5
|
+
export { Header } from "./flat-geobuf/header.js";
|
|
6
6
|
//# sourceMappingURL=flat-geobuf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flat-geobuf.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/flat-geobuf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,MAAM,EAAC,
|
|
1
|
+
{"version":3,"file":"flat-geobuf.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/flat-geobuf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,MAAM,EAAC,gCAA6B;AAC5C,OAAO,EAAC,UAAU,EAAC,qCAAkC;AACrD,OAAO,EAAC,GAAG,EAAC,6BAA0B;AACtC,OAAO,EAAC,YAAY,EAAC,uCAAoC;AACzD,OAAO,EAAC,MAAM,EAAC,gCAA6B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
1
2
|
export { Column } from "./flat-geobuf/column.js";
|
|
2
3
|
export { ColumnType } from "./flat-geobuf/column-type.js";
|
|
3
4
|
export { Crs } from "./flat-geobuf/crs.js";
|
|
4
5
|
export { GeometryType } from "./flat-geobuf/geometry-type.js";
|
|
5
6
|
export { Header } from "./flat-geobuf/header.js";
|
|
6
|
-
//# sourceMappingURL=flat-geobuf.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ColumnMeta from
|
|
2
|
-
import { Feature } from
|
|
3
|
-
import HeaderMeta from
|
|
4
|
-
import { ISimpleGeometry, ICreateGeometry, IParsedGeometry } from
|
|
1
|
+
import ColumnMeta from "../column-meta.js";
|
|
2
|
+
import { Feature } from "../flat-geobuf/feature.js";
|
|
3
|
+
import HeaderMeta from "../header-meta.js";
|
|
4
|
+
import { ISimpleGeometry, ICreateGeometry, IParsedGeometry } from "./geometry.js";
|
|
5
5
|
export interface IFeature {
|
|
6
6
|
getGeometry?(): ISimpleGeometry;
|
|
7
7
|
getProperties?(): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/generic/feature.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/generic/feature.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,0BAAuB;AAExC,OAAO,EAAC,OAAO,EAAC,kCAA+B;AAC/C,OAAO,UAAU,0BAAuB;AACxC,OAAO,EAAgB,eAAe,EAAE,eAAe,EAAE,eAAe,EAAC,sBAAmB;AAK5F,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,IAAI,eAAe,CAAC;IAChC,aAAa,CAAC,IAAI,GAAG,CAAC;IACtB,aAAa,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC;CAC1D;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC;CAC9E;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;CAChD;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,UAAU,EAClB,cAAc,EAAE,eAAe,EAC/B,aAAa,EAAE,cAAc,GAC5B,QAAQ,CAMV;AAED,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,eAAe,EACzB,UAAU,EAAE,WAAW,EACvB,MAAM,EAAE,UAAU,GACjB,UAAU,CAyGZ;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,GAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0FzB"}
|