@loaders.gl/flatgeobuf 4.2.0-alpha.3 → 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 (136) hide show
  1. package/dist/dist.dev.js +286 -241
  2. package/dist/dist.min.js +30 -0
  3. package/dist/flatgeobuf/3.27.2/column-meta.d.ts +1 -1
  4. package/dist/flatgeobuf/3.27.2/column-meta.d.ts.map +1 -1
  5. package/dist/flatgeobuf/3.27.2/column-meta.js +1 -2
  6. package/dist/flatgeobuf/3.27.2/config.js +16 -13
  7. package/dist/flatgeobuf/3.27.2/constants.js +3 -2
  8. package/dist/flatgeobuf/3.27.2/crs-meta.js +1 -2
  9. package/dist/flatgeobuf/3.27.2/dumptree.js +28 -23
  10. package/dist/flatgeobuf/3.27.2/feature.d.ts +1 -1
  11. package/dist/flatgeobuf/3.27.2/feature.d.ts.map +1 -1
  12. package/dist/flatgeobuf/3.27.2/feature.js +2 -3
  13. package/dist/flatgeobuf/3.27.2/flat-geobuf/column-type.js +19 -19
  14. package/dist/flatgeobuf/3.27.2/flat-geobuf/column.d.ts +1 -1
  15. package/dist/flatgeobuf/3.27.2/flat-geobuf/column.d.ts.map +1 -1
  16. package/dist/flatgeobuf/3.27.2/flat-geobuf/column.js +117 -117
  17. package/dist/flatgeobuf/3.27.2/flat-geobuf/crs.js +76 -76
  18. package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.d.ts +2 -2
  19. package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.d.ts.map +1 -1
  20. package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.js +96 -90
  21. package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry-type.js +22 -22
  22. package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.d.ts +1 -1
  23. package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.d.ts.map +1 -1
  24. package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.js +224 -210
  25. package/dist/flatgeobuf/3.27.2/flat-geobuf/header.d.ts +3 -3
  26. package/dist/flatgeobuf/3.27.2/flat-geobuf/header.d.ts.map +1 -1
  27. package/dist/flatgeobuf/3.27.2/flat-geobuf/header.js +166 -160
  28. package/dist/flatgeobuf/3.27.2/flat-geobuf.d.ts +5 -5
  29. package/dist/flatgeobuf/3.27.2/flat-geobuf.d.ts.map +1 -1
  30. package/dist/flatgeobuf/3.27.2/flat-geobuf.js +1 -1
  31. package/dist/flatgeobuf/3.27.2/generic/feature.d.ts +4 -4
  32. package/dist/flatgeobuf/3.27.2/generic/feature.d.ts.map +1 -1
  33. package/dist/flatgeobuf/3.27.2/generic/feature.js +195 -205
  34. package/dist/flatgeobuf/3.27.2/generic/featurecollection.d.ts +6 -6
  35. package/dist/flatgeobuf/3.27.2/generic/featurecollection.d.ts.map +1 -1
  36. package/dist/flatgeobuf/3.27.2/generic/featurecollection.js +150 -128
  37. package/dist/flatgeobuf/3.27.2/generic/geometry.d.ts +2 -2
  38. package/dist/flatgeobuf/3.27.2/generic/geometry.d.ts.map +1 -1
  39. package/dist/flatgeobuf/3.27.2/generic/geometry.js +78 -66
  40. package/dist/flatgeobuf/3.27.2/generic/header.d.ts +3 -3
  41. package/dist/flatgeobuf/3.27.2/generic/header.d.ts.map +1 -1
  42. package/dist/flatgeobuf/3.27.2/generic/header.js +18 -18
  43. package/dist/flatgeobuf/3.27.2/generic/index.d.ts +4 -4
  44. package/dist/flatgeobuf/3.27.2/generic/index.d.ts.map +1 -1
  45. package/dist/flatgeobuf/3.27.2/generic/index.js +2 -1
  46. package/dist/flatgeobuf/3.27.2/generic.d.ts +7 -7
  47. package/dist/flatgeobuf/3.27.2/generic.d.ts.map +1 -1
  48. package/dist/flatgeobuf/3.27.2/generic.js +11 -3
  49. package/dist/flatgeobuf/3.27.2/geojson/feature.d.ts +3 -3
  50. package/dist/flatgeobuf/3.27.2/geojson/feature.d.ts.map +1 -1
  51. package/dist/flatgeobuf/3.27.2/geojson/feature.js +8 -9
  52. package/dist/flatgeobuf/3.27.2/geojson/featurecollection.d.ts +2 -2
  53. package/dist/flatgeobuf/3.27.2/geojson/featurecollection.d.ts.map +1 -1
  54. package/dist/flatgeobuf/3.27.2/geojson/featurecollection.js +40 -38
  55. package/dist/flatgeobuf/3.27.2/geojson/geometry.d.ts +3 -3
  56. package/dist/flatgeobuf/3.27.2/geojson/geometry.d.ts.map +1 -1
  57. package/dist/flatgeobuf/3.27.2/geojson/geometry.js +107 -103
  58. package/dist/flatgeobuf/3.27.2/geojson/index.d.ts +3 -3
  59. package/dist/flatgeobuf/3.27.2/geojson/index.d.ts.map +1 -1
  60. package/dist/flatgeobuf/3.27.2/geojson/index.js +2 -1
  61. package/dist/flatgeobuf/3.27.2/geojson.d.ts +3 -3
  62. package/dist/flatgeobuf/3.27.2/geojson.d.ts.map +1 -1
  63. package/dist/flatgeobuf/3.27.2/geojson.js +17 -5
  64. package/dist/flatgeobuf/3.27.2/header-meta.d.ts +3 -3
  65. package/dist/flatgeobuf/3.27.2/header-meta.d.ts.map +1 -1
  66. package/dist/flatgeobuf/3.27.2/header-meta.js +46 -43
  67. package/dist/flatgeobuf/3.27.2/header.d.ts +1 -1
  68. package/dist/flatgeobuf/3.27.2/header.d.ts.map +1 -1
  69. package/dist/flatgeobuf/3.27.2/header.js +2 -3
  70. package/dist/flatgeobuf/3.27.2/http-reader.d.ts +3 -3
  71. package/dist/flatgeobuf/3.27.2/http-reader.d.ts.map +1 -1
  72. package/dist/flatgeobuf/3.27.2/http-reader.js +235 -171
  73. package/dist/flatgeobuf/3.27.2/index.d.ts +13 -13
  74. package/dist/flatgeobuf/3.27.2/index.d.ts.map +1 -1
  75. package/dist/flatgeobuf/3.27.2/index.js +5 -13
  76. package/dist/flatgeobuf/3.27.2/logger.js +37 -56
  77. package/dist/flatgeobuf/3.27.2/packedrtree.js +174 -123
  78. package/dist/flatgeobuf/3.27.2/streams/utils.js +59 -58
  79. package/dist/flatgeobuf-loader.js +29 -23
  80. package/dist/flatgeobuf-worker.js +1 -1
  81. package/dist/index.cjs +175 -199
  82. package/dist/index.cjs.map +7 -0
  83. package/dist/index.d.ts +2 -2
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +3 -1
  86. package/dist/lib/binary-geometries.js +115 -117
  87. package/dist/lib/get-schema-from-fgb-header.js +110 -85
  88. package/dist/lib/parse-flatgeobuf.d.ts +1 -1
  89. package/dist/lib/parse-flatgeobuf.d.ts.map +1 -1
  90. package/dist/lib/parse-flatgeobuf.js +125 -109
  91. package/dist/workers/flatgeobuf-worker.js +3 -1
  92. package/package.json +10 -6
  93. package/src/flatgeobuf/3.27.2/.DS_Store +0 -0
  94. package/dist/LICENSE +0 -9
  95. package/dist/flatgeobuf/3.27.2/LICENSE +0 -29
  96. package/dist/flatgeobuf/3.27.2/README.md +0 -45
  97. package/dist/flatgeobuf/3.27.2/column-meta.js.map +0 -1
  98. package/dist/flatgeobuf/3.27.2/config.js.map +0 -1
  99. package/dist/flatgeobuf/3.27.2/constants.js.map +0 -1
  100. package/dist/flatgeobuf/3.27.2/crs-meta.js.map +0 -1
  101. package/dist/flatgeobuf/3.27.2/dumptree.js.map +0 -1
  102. package/dist/flatgeobuf/3.27.2/feature.js.map +0 -1
  103. package/dist/flatgeobuf/3.27.2/flat-geobuf/column-type.js.map +0 -1
  104. package/dist/flatgeobuf/3.27.2/flat-geobuf/column.js.map +0 -1
  105. package/dist/flatgeobuf/3.27.2/flat-geobuf/crs.js.map +0 -1
  106. package/dist/flatgeobuf/3.27.2/flat-geobuf/feature.js.map +0 -1
  107. package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry-type.js.map +0 -1
  108. package/dist/flatgeobuf/3.27.2/flat-geobuf/geometry.js.map +0 -1
  109. package/dist/flatgeobuf/3.27.2/flat-geobuf/header.js.map +0 -1
  110. package/dist/flatgeobuf/3.27.2/flat-geobuf.js.map +0 -1
  111. package/dist/flatgeobuf/3.27.2/generic/feature.js.map +0 -1
  112. package/dist/flatgeobuf/3.27.2/generic/featurecollection.js.map +0 -1
  113. package/dist/flatgeobuf/3.27.2/generic/geometry.js.map +0 -1
  114. package/dist/flatgeobuf/3.27.2/generic/header.js.map +0 -1
  115. package/dist/flatgeobuf/3.27.2/generic/index.js.map +0 -1
  116. package/dist/flatgeobuf/3.27.2/generic.js.map +0 -1
  117. package/dist/flatgeobuf/3.27.2/geojson/feature.js.map +0 -1
  118. package/dist/flatgeobuf/3.27.2/geojson/featurecollection.js.map +0 -1
  119. package/dist/flatgeobuf/3.27.2/geojson/geometry.js.map +0 -1
  120. package/dist/flatgeobuf/3.27.2/geojson/index.js.map +0 -1
  121. package/dist/flatgeobuf/3.27.2/geojson.js.map +0 -1
  122. package/dist/flatgeobuf/3.27.2/header-meta.js.map +0 -1
  123. package/dist/flatgeobuf/3.27.2/header.js.map +0 -1
  124. package/dist/flatgeobuf/3.27.2/http-reader.js.map +0 -1
  125. package/dist/flatgeobuf/3.27.2/index.js.map +0 -1
  126. package/dist/flatgeobuf/3.27.2/logger.js.map +0 -1
  127. package/dist/flatgeobuf/3.27.2/packedrtree.js.map +0 -1
  128. package/dist/flatgeobuf/3.27.2/streams/utils.js.map +0 -1
  129. package/dist/flatgeobuf/3.27.2/types/jsts.d.ts +0 -23
  130. package/dist/flatgeobuf/3.27.2/types/slice.d.ts +0 -16
  131. package/dist/flatgeobuf-loader.js.map +0 -1
  132. package/dist/index.js.map +0 -1
  133. package/dist/lib/binary-geometries.js.map +0 -1
  134. package/dist/lib/get-schema-from-fgb-header.js.map +0 -1
  135. package/dist/lib/parse-flatgeobuf.js.map +0 -1
  136. package/dist/workers/flatgeobuf-worker.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AAE/C,OAAO,UAAU,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAkB,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,QAAQ,EAAE,cAAc;CAAG;AAEpE,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,GAAG,eAAe,CASjF"}
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,kCAA+B;AAE/C,OAAO,UAAU,0BAAuB;AAExC,OAAO,EAAC,QAAQ,EAAkB,8BAA2B;AAE7D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,QAAQ,EAAE,cAAc;CAAG;AAEpE,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,GAAG,eAAe,CASjF"}
@@ -1,13 +1,12 @@
1
1
  import { fromGeometry } from "./geometry.js";
2
2
  import { parseProperties } from "../generic/feature.js";
3
3
  export function fromFeature(feature, header) {
4
- const columns = header.columns;
5
- const geometry = fromGeometry(feature.geometry(), header.geometryType);
6
- const geoJsonfeature = {
7
- type: 'Feature',
8
- geometry,
9
- properties: parseProperties(feature, columns)
10
- };
11
- return geoJsonfeature;
4
+ const columns = header.columns;
5
+ const geometry = fromGeometry(feature.geometry(), header.geometryType);
6
+ const geoJsonfeature = {
7
+ type: 'Feature',
8
+ geometry,
9
+ properties: parseProperties(feature, columns)
10
+ };
11
+ return geoJsonfeature;
12
12
  }
13
- //# sourceMappingURL=feature.js.map
@@ -1,5 +1,5 @@
1
- import { Rect } from '../packedrtree';
2
- import { HeaderMetaFn } from '../generic';
1
+ import { Rect } from "../packedrtree.js";
2
+ import { HeaderMetaFn } from "../generic.js";
3
3
  import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson';
4
4
  export declare function serialize(featurecollection: GeoJsonFeatureCollection): Uint8Array;
5
5
  export declare function deserialize(bytes: Uint8Array, headerMetaFn?: HeaderMetaFn): GeoJsonFeatureCollection;
@@ -1 +1 @@
1
- {"version":3,"file":"featurecollection.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/featurecollection.ts"],"names":[],"mappings":"AAYA,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AAIxC,OAAO,EACL,iBAAiB,IAAI,wBAAwB,EAQ9C,MAAM,SAAS,CAAC;AAEjB,wBAAgB,SAAS,CAAC,iBAAiB,EAAE,wBAAwB,GAAG,UAAU,CAsBjF;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,EACjB,YAAY,CAAC,EAAE,YAAY,GAC1B,wBAAwB,CAM1B;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,YAAY,CAAC,EAAE,YAAY,GAC1B,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAEpC;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,YAAY,CAAC,EAAE,YAAY,GAC1B,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAEpC"}
1
+ {"version":3,"file":"featurecollection.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/featurecollection.ts"],"names":[],"mappings":"AAYA,OAAO,EAAC,IAAI,EAAC,0BAAuB;AAEpC,OAAO,EAAC,YAAY,EAAC,sBAAmB;AAIxC,OAAO,EACL,iBAAiB,IAAI,wBAAwB,EAQ9C,MAAM,SAAS,CAAC;AAEjB,wBAAgB,SAAS,CAAC,iBAAiB,EAAE,wBAAwB,GAAG,UAAU,CAsBjF;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,EACjB,YAAY,CAAC,EAAE,YAAY,GAC1B,wBAAwB,CAM1B;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,YAAY,CAAC,EAAE,YAAY,GAC1B,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAEpC;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,YAAY,CAAC,EAAE,YAAY,GAC1B,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAEpC"}
@@ -5,50 +5,52 @@ import { buildFeature } from "../generic/feature.js";
5
5
  import { magicbytes } from "../constants.js";
6
6
  import { inferGeometryType } from "../generic/header.js";
7
7
  export function serialize(featurecollection) {
8
- const headerMeta = introspectHeaderMeta(featurecollection);
9
- const header = buildHeader(headerMeta);
10
- const features = featurecollection.features.map(f => buildFeature(f.geometry.type === 'GeometryCollection' ? parseGC(f.geometry) : parseGeometry(f.geometry), f.properties, headerMeta));
11
- const featuresLength = features.map(f => f.length).reduce((a, b) => a + b);
12
- const uint8 = new Uint8Array(magicbytes.length + header.length + featuresLength);
13
- uint8.set(header, magicbytes.length);
14
- let offset = magicbytes.length + header.length;
15
- for (const feature of features) {
16
- uint8.set(feature, offset);
17
- offset += feature.length;
18
- }
19
- uint8.set(magicbytes);
20
- return uint8;
8
+ const headerMeta = introspectHeaderMeta(featurecollection);
9
+ const header = buildHeader(headerMeta);
10
+ const features = featurecollection.features.map((f) => buildFeature(f.geometry.type === 'GeometryCollection'
11
+ ? parseGC(f.geometry)
12
+ : parseGeometry(f.geometry), f.properties, headerMeta));
13
+ const featuresLength = features.map((f) => f.length).reduce((a, b) => a + b);
14
+ const uint8 = new Uint8Array(magicbytes.length + header.length + featuresLength);
15
+ uint8.set(header, magicbytes.length);
16
+ let offset = magicbytes.length + header.length;
17
+ for (const feature of features) {
18
+ uint8.set(feature, offset);
19
+ offset += feature.length;
20
+ }
21
+ uint8.set(magicbytes);
22
+ return uint8;
21
23
  }
22
24
  export function deserialize(bytes, headerMetaFn) {
23
- const features = genericDeserialize(bytes, fromFeature, headerMetaFn);
24
- return {
25
- type: 'FeatureCollection',
26
- features
27
- };
25
+ const features = genericDeserialize(bytes, fromFeature, headerMetaFn);
26
+ return {
27
+ type: 'FeatureCollection',
28
+ features
29
+ };
28
30
  }
29
31
  export function deserializeStream(stream, headerMetaFn) {
30
- return genericDeserializeStream(stream, fromFeature, headerMetaFn);
32
+ return genericDeserializeStream(stream, fromFeature, headerMetaFn);
31
33
  }
32
34
  export function deserializeFiltered(url, rect, headerMetaFn) {
33
- return genericDeserializeFiltered(url, rect, fromFeature, headerMetaFn);
35
+ return genericDeserializeFiltered(url, rect, fromFeature, headerMetaFn);
34
36
  }
35
37
  function introspectHeaderMeta(featurecollection) {
36
- const feature = featurecollection.features[0];
37
- const properties = feature.properties;
38
- let columns = null;
39
- if (properties) columns = Object.keys(properties).map(k => mapColumn(properties, k));
40
- const geometryType = inferGeometryType(featurecollection.features);
41
- const headerMeta = {
42
- geometryType,
43
- columns,
44
- envelope: null,
45
- featuresCount: featurecollection.features.length,
46
- indexNodeSize: 0,
47
- crs: null,
48
- title: null,
49
- description: null,
50
- metadata: null
51
- };
52
- return headerMeta;
38
+ const feature = featurecollection.features[0];
39
+ const properties = feature.properties;
40
+ let columns = null;
41
+ if (properties)
42
+ columns = Object.keys(properties).map((k) => mapColumn(properties, k));
43
+ const geometryType = inferGeometryType(featurecollection.features);
44
+ const headerMeta = {
45
+ geometryType,
46
+ columns,
47
+ envelope: null,
48
+ featuresCount: featurecollection.features.length,
49
+ indexNodeSize: 0,
50
+ crs: null,
51
+ title: null,
52
+ description: null,
53
+ metadata: null
54
+ };
55
+ return headerMeta;
53
56
  }
54
- //# sourceMappingURL=featurecollection.js.map
@@ -1,7 +1,7 @@
1
- import { GeometryType } from '../flat-geobuf/geometry-type';
2
- import { Geometry } from '../flat-geobuf/geometry';
1
+ import { GeometryType } from "../flat-geobuf/geometry-type.js";
2
+ import { Geometry } from "../flat-geobuf/geometry.js";
3
3
  import { Geometry as GeoJsonGeometry, Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from 'geojson';
4
- import { IParsedGeometry } from '../generic/geometry';
4
+ import { IParsedGeometry } from "../generic/geometry.js";
5
5
  export interface IGeoJsonGeometry {
6
6
  type: string;
7
7
  coordinates: number[] | number[][] | number[][][] | number[][][][];
@@ -1 +1 @@
1
- {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EACL,QAAQ,IAAI,eAAe,EAC3B,KAAK,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,OAAO,EACP,YAAY,EACZ,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAC,eAAe,EAA4C,MAAM,qBAAqB,CAAC;AAE/F,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;IACnE,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACjC;AAED,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,GAAG,YAAY,GACnF,eAAe,CAwCjB;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,eAAe,CAYrE;AAiCD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,GAAG,eAAe,CA8B1F"}
1
+ {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,wCAAqC;AAC1D,OAAO,EAAC,QAAQ,EAAC,mCAAgC;AAEjD,OAAO,EACL,QAAQ,IAAI,eAAe,EAC3B,KAAK,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,OAAO,EACP,YAAY,EACZ,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAC,eAAe,EAA4C,+BAA4B;AAE/F,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;IACnE,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACjC;AAED,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,GAAG,YAAY,GACnF,eAAe,CAwCjB;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,eAAe,CAYrE;AAiCD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,GAAG,eAAe,CA8B1F"}
@@ -1,118 +1,122 @@
1
1
  import { GeometryType } from "../flat-geobuf/geometry-type.js";
2
2
  import { flat, pairFlatCoordinates, toGeometryType } from "../generic/geometry.js";
3
3
  export function parseGeometry(geometry) {
4
- const cs = geometry.coordinates;
5
- const xy = [];
6
- const z = [];
7
- let ends;
8
- let parts;
9
- const type = toGeometryType(geometry.type);
10
- let end = 0;
11
- switch (geometry.type) {
12
- case 'Point':
13
- flat(cs, xy, z);
14
- break;
15
- case 'MultiPoint':
16
- case 'LineString':
17
- flat(cs, xy, z);
18
- break;
19
- case 'MultiLineString':
20
- case 'Polygon':
21
- {
22
- const css = cs;
23
- flat(css, xy, z);
24
- if (css.length > 1) ends = css.map(c => end += c.length);
25
- break;
26
- }
27
- case 'MultiPolygon':
28
- {
29
- const csss = cs;
30
- const geometries = csss.map(coordinates => ({
31
- type: 'Polygon',
32
- coordinates
33
- }));
34
- parts = geometries.map(parseGeometry);
35
- break;
36
- }
37
- }
38
- return {
39
- xy,
40
- z: z.length > 0 ? z : undefined,
41
- ends,
42
- type,
43
- parts
44
- };
4
+ const cs = geometry.coordinates;
5
+ const xy = [];
6
+ const z = [];
7
+ let ends;
8
+ let parts;
9
+ const type = toGeometryType(geometry.type);
10
+ let end = 0;
11
+ switch (geometry.type) {
12
+ case 'Point':
13
+ flat(cs, xy, z);
14
+ break;
15
+ case 'MultiPoint':
16
+ case 'LineString':
17
+ flat(cs, xy, z);
18
+ break;
19
+ case 'MultiLineString':
20
+ case 'Polygon': {
21
+ const css = cs;
22
+ flat(css, xy, z);
23
+ if (css.length > 1)
24
+ ends = css.map((c) => (end += c.length));
25
+ break;
26
+ }
27
+ case 'MultiPolygon': {
28
+ const csss = cs;
29
+ const geometries = csss.map((coordinates) => ({
30
+ type: 'Polygon',
31
+ coordinates
32
+ }));
33
+ parts = geometries.map(parseGeometry);
34
+ break;
35
+ }
36
+ }
37
+ return {
38
+ xy,
39
+ z: z.length > 0 ? z : undefined,
40
+ ends,
41
+ type,
42
+ parts
43
+ };
45
44
  }
46
45
  export function parseGC(geometry) {
47
- const type = toGeometryType(geometry.type);
48
- const parts = [];
49
- for (let i = 0; i < geometry.geometries.length; i++) {
50
- const g = geometry.geometries[i];
51
- if (g.type === 'GeometryCollection') parts.push(parseGC(g));else parts.push(parseGeometry(g));
52
- }
53
- return {
54
- type,
55
- parts
56
- };
46
+ const type = toGeometryType(geometry.type);
47
+ const parts = [];
48
+ for (let i = 0; i < geometry.geometries.length; i++) {
49
+ const g = geometry.geometries[i];
50
+ if (g.type === 'GeometryCollection')
51
+ parts.push(parseGC(g));
52
+ else
53
+ parts.push(parseGeometry(g));
54
+ }
55
+ return {
56
+ type,
57
+ parts
58
+ };
57
59
  }
58
60
  function extractParts(xy, z, ends) {
59
- if (!ends || ends.length === 0) return [pairFlatCoordinates(xy, z)];
60
- let s = 0;
61
- const xySlices = Array.from(ends).map(e => xy.slice(s, s = e << 1));
62
- let zSlices;
63
- if (z) {
64
- s = 0;
65
- zSlices = Array.from(ends).map(e => z.slice(s, s = e));
66
- }
67
- return xySlices.map((xy, i) => pairFlatCoordinates(xy, zSlices ? zSlices[i] : undefined));
61
+ if (!ends || ends.length === 0)
62
+ return [pairFlatCoordinates(xy, z)];
63
+ let s = 0;
64
+ const xySlices = Array.from(ends).map((e) => xy.slice(s, (s = e << 1)));
65
+ let zSlices;
66
+ if (z) {
67
+ s = 0;
68
+ zSlices = Array.from(ends).map((e) => z.slice(s, (s = e)));
69
+ }
70
+ return xySlices.map((xy, i) => pairFlatCoordinates(xy, zSlices ? zSlices[i] : undefined));
68
71
  }
69
72
  function toGeoJsonCoordinates(geometry, type) {
70
- const xy = geometry.xyArray();
71
- const z = geometry.zArray();
72
- switch (type) {
73
- case GeometryType.Point:
74
- {
75
- const a = Array.from(xy);
76
- if (z) a.push(z[0]);
77
- return a;
78
- }
79
- case GeometryType.MultiPoint:
80
- case GeometryType.LineString:
81
- return pairFlatCoordinates(xy, z);
82
- case GeometryType.MultiLineString:
83
- return extractParts(xy, z, geometry.endsArray());
84
- case GeometryType.Polygon:
85
- return extractParts(xy, z, geometry.endsArray());
86
- }
73
+ const xy = geometry.xyArray();
74
+ const z = geometry.zArray();
75
+ switch (type) {
76
+ case GeometryType.Point: {
77
+ const a = Array.from(xy);
78
+ if (z)
79
+ a.push(z[0]);
80
+ return a;
81
+ }
82
+ case GeometryType.MultiPoint:
83
+ case GeometryType.LineString:
84
+ return pairFlatCoordinates(xy, z);
85
+ case GeometryType.MultiLineString:
86
+ return extractParts(xy, z, geometry.endsArray());
87
+ case GeometryType.Polygon:
88
+ return extractParts(xy, z, geometry.endsArray());
89
+ }
87
90
  }
88
91
  export function fromGeometry(geometry, headerType) {
89
- let type = headerType;
90
- if (type === GeometryType.Unknown) {
91
- type = geometry.type();
92
- }
93
- if (type === GeometryType.GeometryCollection) {
94
- const geometries = [];
95
- for (let i = 0; i < geometry.partsLength(); i++) {
96
- const part = geometry.parts(i);
97
- const partType = part.type();
98
- geometries.push(fromGeometry(part, partType));
92
+ let type = headerType;
93
+ if (type === GeometryType.Unknown) {
94
+ type = geometry.type();
99
95
  }
96
+ if (type === GeometryType.GeometryCollection) {
97
+ const geometries = [];
98
+ for (let i = 0; i < geometry.partsLength(); i++) {
99
+ const part = geometry.parts(i);
100
+ const partType = part.type();
101
+ geometries.push(fromGeometry(part, partType));
102
+ }
103
+ return {
104
+ type: GeometryType[type],
105
+ geometries
106
+ };
107
+ }
108
+ else if (type === GeometryType.MultiPolygon) {
109
+ const geometries = [];
110
+ for (let i = 0; i < geometry.partsLength(); i++)
111
+ geometries.push(fromGeometry(geometry.parts(i), GeometryType.Polygon));
112
+ return {
113
+ type: GeometryType[type],
114
+ coordinates: geometries.map((g) => g.coordinates)
115
+ };
116
+ }
117
+ const coordinates = toGeoJsonCoordinates(geometry, type);
100
118
  return {
101
- type: GeometryType[type],
102
- geometries
103
- };
104
- } else if (type === GeometryType.MultiPolygon) {
105
- const geometries = [];
106
- for (let i = 0; i < geometry.partsLength(); i++) geometries.push(fromGeometry(geometry.parts(i), GeometryType.Polygon));
107
- return {
108
- type: GeometryType[type],
109
- coordinates: geometries.map(g => g.coordinates)
119
+ type: GeometryType[type],
120
+ coordinates
110
121
  };
111
- }
112
- const coordinates = toGeoJsonCoordinates(geometry, type);
113
- return {
114
- type: GeometryType[type],
115
- coordinates
116
- };
117
122
  }
118
- //# sourceMappingURL=geometry.js.map
@@ -1,4 +1,4 @@
1
- export * from './feature';
2
- export * from './featurecollection';
3
- export * from './geometry';
1
+ export * from "./feature.js";
2
+ export * from "./featurecollection.js";
3
+ export * from "./geometry.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/index.ts"],"names":[],"mappings":"AAGA,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/geojson/index.ts"],"names":[],"mappings":"AAGA,6BAA0B;AAC1B,uCAAoC;AACpC,8BAA2B"}
@@ -1,4 +1,5 @@
1
+ // SPDX-License-Identifier: BSD-2-Clause AND ISC
2
+ // Copyright (c) 2018, Björn Harrtell
1
3
  export * from "./feature.js";
2
4
  export * from "./featurecollection.js";
3
5
  export * from "./geometry.js";
4
- //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson';
2
- import { Rect } from './packedrtree';
3
- import { IGeoJsonFeature } from './geojson/feature';
4
- import { HeaderMetaFn } from './generic';
2
+ import { Rect } from "./packedrtree.js";
3
+ import { IGeoJsonFeature } from "./geojson/feature.js";
4
+ import { HeaderMetaFn } from "./generic.js";
5
5
  /**
6
6
  * Serialize GeoJSON to FlatGeobuf
7
7
  * @param geojson GeoJSON object to serialize
@@ -1 +1 @@
1
- {"version":3,"file":"geojson.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/geojson.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,iBAAiB,IAAI,wBAAwB,EAAC,MAAM,SAAS,CAAC;AAEtE,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,wBAAwB,GAAG,UAAU,CAGvE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,GAAG,cAAc,GAAG,MAAM,EAC3C,IAAI,CAAC,EAAE,IAAI,EACX,YAAY,CAAC,EAAE,YAAY,GAC1B,wBAAwB,GAAG,cAAc,CAAC,eAAe,CAAC,CAI5D"}
1
+ {"version":3,"file":"geojson.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/geojson.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,iBAAiB,IAAI,wBAAwB,EAAC,MAAM,SAAS,CAAC;AAEtE,OAAO,EAAC,IAAI,EAAC,yBAAsB;AACnC,OAAO,EAAC,eAAe,EAAC,6BAA0B;AAClD,OAAO,EAAC,YAAY,EAAC,qBAAkB;AAEvC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,wBAAwB,GAAG,UAAU,CAGvE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,GAAG,cAAc,GAAG,MAAM,EAC3C,IAAI,CAAC,EAAE,IAAI,EACX,YAAY,CAAC,EAAE,YAAY,GAC1B,wBAAwB,GAAG,cAAc,CAAC,eAAe,CAAC,CAI5D"}
@@ -1,10 +1,22 @@
1
1
  import { deserialize as fcDeserialize, deserializeStream as fcDeserializeStream, deserializeFiltered as fcDeserializeFiltered, serialize as fcSerialize } from "./geojson/featurecollection.js";
2
+ /**
3
+ * Serialize GeoJSON to FlatGeobuf
4
+ * @param geojson GeoJSON object to serialize
5
+ */
2
6
  export function serialize(geojson) {
3
- const bytes = fcSerialize(geojson);
4
- return bytes;
7
+ const bytes = fcSerialize(geojson);
8
+ return bytes;
5
9
  }
10
+ /**
11
+ * Deserialize FlatGeobuf into GeoJSON
12
+ * @param input Input byte array, stream or string
13
+ * @param rect Filter rectangle
14
+ * @param headerMetaFn Callback that will recieve header metadata when available
15
+ */
6
16
  export function deserialize(input, rect, headerMetaFn) {
7
- if (input instanceof Uint8Array) return fcDeserialize(input, headerMetaFn);else if (input instanceof ReadableStream) return fcDeserializeStream(input, headerMetaFn);
8
- return fcDeserializeFiltered(input, rect, headerMetaFn);
17
+ if (input instanceof Uint8Array)
18
+ return fcDeserialize(input, headerMetaFn);
19
+ else if (input instanceof ReadableStream)
20
+ return fcDeserializeStream(input, headerMetaFn);
21
+ return fcDeserializeFiltered(input, rect, headerMetaFn);
9
22
  }
10
- //# sourceMappingURL=geojson.js.map
@@ -1,7 +1,7 @@
1
1
  import * as flatbuffers from 'flatbuffers';
2
- import ColumnMeta from './column-meta';
3
- import CrsMeta from './crs-meta';
4
- import { GeometryType } from './flat-geobuf/geometry-type';
2
+ import ColumnMeta from "./column-meta.js";
3
+ import CrsMeta from "./crs-meta.js";
4
+ import { GeometryType } from "./flat-geobuf/geometry-type.js";
5
5
  export default interface HeaderMeta {
6
6
  geometryType: GeometryType;
7
7
  columns: ColumnMeta[] | null;
@@ -1 +1 @@
1
- {"version":3,"file":"header-meta.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/header-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD,MAAM,CAAC,OAAO,WAAW,UAAU;IACjC,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,WAAW,CAAC,UAAU,GAAG,UAAU,CA8CrE"}
1
+ {"version":3,"file":"header-meta.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/header-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,UAAU,yBAAsB;AACvC,OAAO,OAAO,sBAAmB;AACjC,OAAO,EAAC,YAAY,EAAC,uCAAoC;AAGzD,MAAM,CAAC,OAAO,WAAW,UAAU;IACjC,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,WAAW,CAAC,UAAU,GAAG,UAAU,CA8CrE"}
@@ -1,46 +1,49 @@
1
1
  import { Header } from "./flat-geobuf/header.js";
2
2
  export function fromByteBuffer(bb) {
3
- const header = Header.getRootAsHeader(bb);
4
- const featuresCount = header.featuresCount();
5
- const indexNodeSize = header.indexNodeSize();
6
- const columns = [];
7
- for (let j = 0; j < header.columnsLength(); j++) {
8
- const column = header.columns(j);
9
- if (!column) throw new Error('Column unexpectedly missing');
10
- if (!column.name()) throw new Error('Column name unexpectedly missing');
11
- columns.push({
12
- name: column.name(),
13
- type: column.type(),
14
- title: column.title(),
15
- description: column.description(),
16
- width: column.width(),
17
- precision: column.precision(),
18
- scale: column.scale(),
19
- nullable: column.nullable(),
20
- unique: column.unique(),
21
- primary_key: column.primaryKey()
22
- });
23
- }
24
- const crs = header.crs();
25
- const crsMeta = crs ? {
26
- org: crs.org(),
27
- code: crs.code(),
28
- name: crs.name(),
29
- description: crs.description(),
30
- wkt: crs.wkt(),
31
- code_string: crs.codeString()
32
- } : null;
33
- const headerMeta = {
34
- geometryType: header.geometryType(),
35
- columns,
36
- envelope: null,
37
- featuresCount: Number(featuresCount),
38
- indexNodeSize,
39
- crs: crsMeta,
40
- title: header.title(),
41
- description: header.description(),
42
- metadata: header.metadata()
43
- };
44
- return headerMeta;
3
+ const header = Header.getRootAsHeader(bb);
4
+ const featuresCount = header.featuresCount();
5
+ const indexNodeSize = header.indexNodeSize();
6
+ const columns = [];
7
+ for (let j = 0; j < header.columnsLength(); j++) {
8
+ const column = header.columns(j);
9
+ if (!column)
10
+ throw new Error('Column unexpectedly missing');
11
+ if (!column.name())
12
+ throw new Error('Column name unexpectedly missing');
13
+ columns.push({
14
+ name: column.name(),
15
+ type: column.type(),
16
+ title: column.title(),
17
+ description: column.description(),
18
+ width: column.width(),
19
+ precision: column.precision(),
20
+ scale: column.scale(),
21
+ nullable: column.nullable(),
22
+ unique: column.unique(),
23
+ primary_key: column.primaryKey()
24
+ });
25
+ }
26
+ const crs = header.crs();
27
+ const crsMeta = crs
28
+ ? {
29
+ org: crs.org(),
30
+ code: crs.code(),
31
+ name: crs.name(),
32
+ description: crs.description(),
33
+ wkt: crs.wkt(),
34
+ code_string: crs.codeString()
35
+ }
36
+ : null;
37
+ const headerMeta = {
38
+ geometryType: header.geometryType(),
39
+ columns,
40
+ envelope: null,
41
+ featuresCount: Number(featuresCount),
42
+ indexNodeSize,
43
+ crs: crsMeta,
44
+ title: header.title(),
45
+ description: header.description(),
46
+ metadata: header.metadata()
47
+ };
48
+ return headerMeta;
45
49
  }
46
- //# sourceMappingURL=header-meta.js.map
@@ -1,2 +1,2 @@
1
- export * as FlatGeobuf from './flat-geobuf';
1
+ export * as FlatGeobuf from "./flat-geobuf.js";
2
2
  //# sourceMappingURL=header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/header.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/header.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,UAAU,yBAAsB"}
@@ -1,3 +1,2 @@
1
- import * as _FlatGeobuf from "./flat-geobuf/index.js";
2
- export { _FlatGeobuf as FlatGeobuf };
3
- //# sourceMappingURL=header.js.map
1
+ // automatically generated by the FlatBuffers compiler, do not modify
2
+ export * as FlatGeobuf from "./flat-geobuf.js";
@@ -1,6 +1,6 @@
1
- import { Rect } from './packedrtree';
2
- import HeaderMeta from './header-meta';
3
- import { Feature } from './flat-geobuf/feature';
1
+ import { Rect } from "./packedrtree.js";
2
+ import HeaderMeta from "./header-meta.js";
3
+ import { Feature } from "./flat-geobuf/feature.js";
4
4
  export declare class HttpReader {
5
5
  private headerClient;
6
6
  header: HeaderMeta;
@@ -1 +1 @@
1
- {"version":3,"file":"http-reader.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/http-reader.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,IAAI,EAKL,MAAM,eAAe,CAAC;AAIvB,OAAO,UAA4B,MAAM,eAAe,CAAC;AACzD,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAE9C,qBAAa,UAAU;IACrB,OAAO,CAAC,YAAY,CAA0B;IACvC,MAAM,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAS;gBAG1B,YAAY,EAAE,uBAAuB,EACrC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM;WAWR,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAkE5C,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;IAoErE,gBAAgB,IAAI,MAAM;IAK1B,oBAAoB,IAAI,MAAM;IAI9B,kBAAkB,IAAI,uBAAuB;IAI7C;;;;OAIG;IACI,gBAAgB,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;IAyBpF,WAAW,CACf,aAAa,EAAE,uBAAuB,EACtC,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,OAAO,CAAC;CAsBpB;AAED,cAAM,uBAAuB;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,SAAK;IAClB,gBAAgB,SAAK;IAErB,OAAO,CAAC,MAAM,CAAmC;IAIjD,OAAO,CAAC,IAAI,CAAK;gBAEL,MAAM,EAAE,MAAM,GAAG,eAAe;IAUtC,QAAQ,CACZ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC;IAmBvB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAQhC;AAED,cAAM,eAAe;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,SAAK;IACrB,kBAAkB,SAAK;gBAEX,GAAG,EAAE,MAAM;IAIjB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CA4CrF"}
1
+ {"version":3,"file":"http-reader.d.ts","sourceRoot":"","sources":["../../../src/flatgeobuf/3.27.2/http-reader.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,IAAI,EAKL,yBAAsB;AAIvB,OAAO,UAA4B,yBAAsB;AACzD,OAAO,EAAC,OAAO,EAAC,iCAA8B;AAE9C,qBAAa,UAAU;IACrB,OAAO,CAAC,YAAY,CAA0B;IACvC,MAAM,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAS;gBAG1B,YAAY,EAAE,uBAAuB,EACrC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM;WAWR,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAkE5C,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;IAoErE,gBAAgB,IAAI,MAAM;IAK1B,oBAAoB,IAAI,MAAM;IAI9B,kBAAkB,IAAI,uBAAuB;IAI7C;;;;OAIG;IACI,gBAAgB,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;IAyBpF,WAAW,CACf,aAAa,EAAE,uBAAuB,EACtC,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,OAAO,CAAC;CAsBpB;AAED,cAAM,uBAAuB;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,SAAK;IAClB,gBAAgB,SAAK;IAErB,OAAO,CAAC,MAAM,CAAmC;IAIjD,OAAO,CAAC,IAAI,CAAK;gBAEL,MAAM,EAAE,MAAM,GAAG,eAAe;IAUtC,QAAQ,CACZ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC;IAmBvB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAQhC;AAED,cAAM,eAAe;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,SAAK;IACrB,kBAAkB,SAAK;gBAEX,GAAG,EAAE,MAAM;IAIjB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CA4CrF"}