@loaders.gl/gis 4.3.0-alpha.8 → 4.3.0-beta.1
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/lib/binary-features/binary-to-geojson.d.ts +1 -2
- package/dist/lib/binary-features/binary-to-geojson.d.ts.map +1 -1
- package/dist/lib/binary-features/geojson-to-binary.d.ts +1 -2
- package/dist/lib/binary-features/geojson-to-binary.d.ts.map +1 -1
- package/dist/lib/tables/convert-table-to-geojson.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/lib/binary-features/binary-to-geojson.ts +5 -4
- package/src/lib/binary-features/geojson-to-binary.ts +1 -2
- package/src/lib/tables/convert-table-to-geojson.ts +8 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { BinaryGeometry, BinaryGeometryType, BinaryFeatureCollection } from '@loaders.gl/schema';
|
|
2
|
-
import type { Feature, Geometry } from '@loaders.gl/schema';
|
|
1
|
+
import type { BinaryGeometry, BinaryGeometryType, BinaryFeatureCollection, Feature, Geometry } from '@loaders.gl/schema';
|
|
3
2
|
type BinaryToGeoJsonOptions = {
|
|
4
3
|
type?: BinaryGeometryType;
|
|
5
4
|
globalFeatureId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary-to-geojson.d.ts","sourceRoot":"","sources":["../../../src/lib/binary-features/binary-to-geojson.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAIlB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"binary-to-geojson.d.ts","sourceRoot":"","sources":["../../../src/lib/binary-features/binary-to-geojson.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAIlB,uBAAuB,EAMvB,OAAO,EACP,QAAQ,EAST,MAAM,oBAAoB,CAAC;AAK5B,KAAK,sBAAsB,GAAG;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,EAAE,GAAG,OAAO,CAMrB;AAwCD,yEAAyE;AACzE,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,GAChB,QAAQ,CAYV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geojson-to-binary.d.ts","sourceRoot":"","sources":["../../../src/lib/binary-features/geojson-to-binary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"geojson-to-binary.d.ts","sourceRoot":"","sources":["../../../src/lib/binary-features/geojson-to-binary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAMzE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,CAAC;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,GAAE,sBAAkE,GAC1E,uBAAuB,CAUzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-table-to-geojson.d.ts","sourceRoot":"","sources":["../../../src/lib/tables/convert-table-to-geojson.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"convert-table-to-geojson.d.ts","sourceRoot":"","sources":["../../../src/lib/tables/convert-table-to-geojson.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,MAAM,EAGP,MAAM,oBAAoB,CAAC;AAK5B,qCAAqC;AACrC,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,aAAa,GAAG,cAAc,EACrC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,gBAAgB,EAAE,GAC1B,YAAY,CAoBd"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/gis",
|
|
3
3
|
"description": "Helpers for GIS category data",
|
|
4
|
-
"version": "4.3.0-
|
|
4
|
+
"version": "4.3.0-beta.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@loaders.gl/loader-utils": "4.3.0-
|
|
36
|
-
"@loaders.gl/schema": "4.3.0-
|
|
35
|
+
"@loaders.gl/loader-utils": "4.3.0-beta.1",
|
|
36
|
+
"@loaders.gl/schema": "4.3.0-beta.1",
|
|
37
37
|
"@mapbox/vector-tile": "^1.3.1",
|
|
38
38
|
"@math.gl/polygon": "^4.1.0",
|
|
39
39
|
"pbf": "^3.2.1"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@loaders.gl/core": "^4.0.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "992d24e7d4e3015a91fa1cbfe87ee7dc1b333322"
|
|
48
48
|
}
|
|
@@ -13,10 +13,11 @@ import type {
|
|
|
13
13
|
// BinaryPointFeature,
|
|
14
14
|
// BinaryLineFeature,
|
|
15
15
|
// BinaryPolygonFeature,
|
|
16
|
-
BinaryAttribute
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
BinaryAttribute,
|
|
17
|
+
Feature,
|
|
18
|
+
Geometry,
|
|
19
|
+
Position,
|
|
20
|
+
GeoJsonProperties,
|
|
20
21
|
Point,
|
|
21
22
|
MultiPoint,
|
|
22
23
|
LineString,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {Feature} from '@loaders.gl/schema';
|
|
2
|
-
import type {BinaryFeatureCollection} from '@loaders.gl/schema';
|
|
1
|
+
import type {Feature, BinaryFeatureCollection} from '@loaders.gl/schema';
|
|
3
2
|
|
|
4
3
|
import {extractGeometryInfo} from './extract-geometry-info';
|
|
5
4
|
import {geojsonToFlatGeojson} from './geojson-to-flat-geojson';
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import type {LoaderWithParser} from '@loaders.gl/loader-utils';
|
|
6
|
-
import type {
|
|
7
|
-
|
|
6
|
+
import type {
|
|
7
|
+
ArrayRowTable,
|
|
8
|
+
GeoJSONTable,
|
|
9
|
+
ObjectRowTable,
|
|
10
|
+
Schema,
|
|
11
|
+
Feature,
|
|
12
|
+
Geometry
|
|
13
|
+
} from '@loaders.gl/schema';
|
|
8
14
|
import {getTableLength, getTableRowAsObject} from '@loaders.gl/schema';
|
|
9
15
|
|
|
10
16
|
import {GeoColumnMetadata, getGeoMetadata} from '../geo/geoparquet-metadata';
|