@loaders.gl/geopackage 3.1.0-alpha.5 → 3.1.0-beta.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.
package/dist/bundle.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  declare const moduleExports: any;
2
+ //# sourceMappingURL=bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa,KAAqB,CAAC"}
package/dist/bundle.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ const moduleExports = require('./index');
4
+ globalThis.loaders = globalThis.loaders || {};
5
+ module.exports = Object.assign(globalThis.loaders, moduleExports);
@@ -10,3 +10,4 @@ export declare type GeoPackageLoaderOptions = LoaderOptions & {
10
10
  };
11
11
  /** Geopackage loader */
12
12
  export declare const GeoPackageLoader: LoaderWithParser;
13
+ //# sourceMappingURL=geopackage-loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geopackage-loader.d.ts","sourceRoot":"","sources":["../src/geopackage-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAQ9E,oBAAY,uBAAuB,GAAG,aAAa,GAAG;IACpD,UAAU,CAAC,EAAE;QAEX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,EAAE,gBAc9B,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GeoPackageLoader = void 0;
7
+ const parse_geopackage_1 = __importDefault(require("./lib/parse-geopackage"));
8
+ // __VERSION__ is injected by babel-plugin-version-inline
9
+ // @ts-ignore TS2304: Cannot find name '__VERSION__'.
10
+ // const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
11
+ const VERSION = 'latest';
12
+ /** Geopackage loader */
13
+ exports.GeoPackageLoader = {
14
+ id: 'geopackage',
15
+ name: 'GeoPackage',
16
+ module: 'geopackage',
17
+ version: VERSION,
18
+ extensions: ['gpkg'],
19
+ mimeTypes: ['application/geopackage+sqlite3'],
20
+ category: 'geometry',
21
+ parse: parse_geopackage_1.default,
22
+ options: {
23
+ geopackage: {
24
+ sqlJsCDN: 'https://sql.js.org/dist/'
25
+ }
26
+ }
27
+ };
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { GeoPackageLoader } from './geopackage-loader';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GeoPackageLoader = void 0;
4
+ var geopackage_loader_1 = require("./geopackage-loader");
5
+ Object.defineProperty(exports, "GeoPackageLoader", { enumerable: true, get: function () { return geopackage_loader_1.GeoPackageLoader; } });
@@ -1,2 +1,3 @@
1
1
  import type { GeoPackageLoaderOptions } from '../geopackage-loader';
2
2
  export default function parseGeoPackage(arrayBuffer: ArrayBuffer, options?: GeoPackageLoaderOptions): Promise<{}>;
3
+ //# sourceMappingURL=parse-geopackage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-geopackage.d.ts","sourceRoot":"","sources":["../../src/lib/parse-geopackage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AA8DlE,wBAA8B,eAAe,CAC3C,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,uBAAuB,eAoBlC"}
@@ -0,0 +1,361 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const sql_js_1 = __importDefault(require("sql.js"));
7
+ const wkt_1 = require("@loaders.gl/wkt");
8
+ const schema_1 = require("@loaders.gl/schema");
9
+ const gis_1 = require("@loaders.gl/gis");
10
+ const proj4_1 = require("@math.gl/proj4");
11
+ // https://www.geopackage.org/spec121/#flags_layout
12
+ const ENVELOPE_BYTE_LENGTHS = {
13
+ 0: 0,
14
+ 1: 32,
15
+ 2: 48,
16
+ 3: 48,
17
+ 4: 64,
18
+ // values 5-7 are invalid and _should_ never show up
19
+ 5: 0,
20
+ 6: 0,
21
+ 7: 0
22
+ };
23
+ // Documentation: https://www.geopackage.org/spec130/index.html#table_column_data_types
24
+ const SQL_TYPE_MAPPING = {
25
+ BOOLEAN: schema_1.Bool,
26
+ TINYINT: schema_1.Int8,
27
+ SMALLINT: schema_1.Int16,
28
+ MEDIUMINT: schema_1.Int32,
29
+ INT: schema_1.Int32,
30
+ INTEGER: schema_1.Int32,
31
+ FLOAT: schema_1.Float32,
32
+ DOUBLE: schema_1.Float64,
33
+ REAL: schema_1.Float64,
34
+ TEXT: schema_1.Utf8,
35
+ BLOB: schema_1.Binary,
36
+ DATE: schema_1.Utf8,
37
+ DATETIME: schema_1.Utf8,
38
+ GEOMETRY: schema_1.Binary
39
+ };
40
+ async function parseGeoPackage(arrayBuffer, options) {
41
+ const { sqlJsCDN = 'https://sql.js.org/dist/' } = options?.geopackage || {};
42
+ const { reproject = false, _targetCrs = 'WGS84' } = options?.gis || {};
43
+ const db = await loadDatabase(arrayBuffer, sqlJsCDN);
44
+ const tables = listVectorTables(db);
45
+ const projections = getProjections(db);
46
+ // Mapping from tableName to geojson feature collection
47
+ const result = {};
48
+ for (const table of tables) {
49
+ const { table_name: tableName } = table;
50
+ result[tableName] = getVectorTable(db, tableName, projections, {
51
+ reproject,
52
+ _targetCrs
53
+ });
54
+ }
55
+ return result;
56
+ }
57
+ exports.default = parseGeoPackage;
58
+ /**
59
+ * Initialize SQL.js and create database
60
+ *
61
+ * @param arrayBuffer input bytes
62
+ * @return SQL.js database object
63
+ */
64
+ async function loadDatabase(arrayBuffer, sqlJsCDN) {
65
+ // In Node, `locateFile` must not be passed
66
+ let SQL;
67
+ if (sqlJsCDN) {
68
+ SQL = await (0, sql_js_1.default)({
69
+ locateFile: (file) => `${sqlJsCDN}${file}`
70
+ });
71
+ }
72
+ else {
73
+ SQL = await (0, sql_js_1.default)();
74
+ }
75
+ return new SQL.Database(new Uint8Array(arrayBuffer));
76
+ }
77
+ /**
78
+ * Find all vector tables in GeoPackage
79
+ * This queries the `gpkg_contents` table to find a list of vector tables
80
+ *
81
+ * @param db GeoPackage to query
82
+ * @return list of table references
83
+ */
84
+ function listVectorTables(db) {
85
+ // The gpkg_contents table can have at least three categorical values for
86
+ // data_type.
87
+ // - 'features' refers to a vector geometry table
88
+ // (https://www.geopackage.org/spec121/#_contents_2)
89
+ // - 'tiles' refers to a raster table
90
+ // (https://www.geopackage.org/spec121/#_contents_3)
91
+ // - 'attributes' refers to a data table with no geometry
92
+ // (https://www.geopackage.org/spec121/#_contents_4).
93
+ // We hard code 'features' because for now we don't support raster data or pure attribute data
94
+ // eslint-disable-next-line quotes
95
+ const stmt = db.prepare("SELECT * FROM gpkg_contents WHERE data_type='features';");
96
+ const vectorTablesInfo = [];
97
+ while (stmt.step()) {
98
+ const vectorTableInfo = stmt.getAsObject();
99
+ vectorTablesInfo.push(vectorTableInfo);
100
+ }
101
+ return vectorTablesInfo;
102
+ }
103
+ /**
104
+ * Load geometries from vector table
105
+ *
106
+ * @param db GeoPackage object
107
+ * @param tableName name of vector table to query
108
+ * @param projections keys are srs_id values, values are WKT strings
109
+ * @returns Array of GeoJSON Feature objects
110
+ */
111
+ function getVectorTable(db, tableName, projections, { reproject, _targetCrs }) {
112
+ const dataColumns = getDataColumns(db, tableName);
113
+ const geomColumn = getGeometryColumn(db, tableName);
114
+ const featureIdColumn = getFeatureIdName(db, tableName);
115
+ // Get vector features from table
116
+ // Don't think it's possible to parameterize the table name in SQLite?
117
+ const { columns, values } = db.exec(`SELECT * FROM \`${tableName}\`;`)[0];
118
+ let projection;
119
+ if (reproject) {
120
+ const geomColumnProjStr = projections[geomColumn.srs_id];
121
+ projection = new proj4_1.Proj4Projection({
122
+ from: geomColumnProjStr,
123
+ to: _targetCrs
124
+ });
125
+ }
126
+ const geojsonFeatures = [];
127
+ for (const row of values) {
128
+ const geojsonFeature = constructGeoJsonFeature(columns, row, geomColumn,
129
+ // @ts-ignore
130
+ dataColumns, featureIdColumn);
131
+ geojsonFeatures.push(geojsonFeature);
132
+ }
133
+ const schema = getArrowSchema(db, tableName);
134
+ if (projection) {
135
+ return { geojsonFeatures: (0, gis_1.transformGeoJsonCoords)(geojsonFeatures, projection.project), schema };
136
+ }
137
+ return { geojsonFeatures, schema };
138
+ }
139
+ /**
140
+ * Find all projections defined in GeoPackage
141
+ * This queries the gpkg_spatial_ref_sys table
142
+ * @param db GeoPackage object
143
+ * @returns mapping from srid to WKT projection string
144
+ */
145
+ function getProjections(db) {
146
+ // Query gpkg_spatial_ref_sys to get srid: srtext mappings
147
+ const stmt = db.prepare('SELECT * FROM gpkg_spatial_ref_sys;');
148
+ const projectionMapping = {};
149
+ while (stmt.step()) {
150
+ const srsInfo = stmt.getAsObject();
151
+ const { srs_id, definition } = srsInfo;
152
+ projectionMapping[srs_id] = definition;
153
+ }
154
+ return projectionMapping;
155
+ }
156
+ /**
157
+ * Construct single GeoJSON feature given row's data
158
+ * @param columns array of ordered column identifiers
159
+ * @param row array of ordered values representing row's data
160
+ * @param geomColumn geometry column metadata
161
+ * @param dataColumns mapping from table column names to property name
162
+ * @returns GeoJSON Feature object
163
+ */
164
+ function constructGeoJsonFeature(columns, row, geomColumn, dataColumns, featureIdColumn) {
165
+ // Find feature id
166
+ const idIdx = columns.indexOf(featureIdColumn);
167
+ const id = row[idIdx];
168
+ // Parse geometry columns to geojson
169
+ const geomColumnIdx = columns.indexOf(geomColumn.column_name);
170
+ const geometry = parseGeometry(row[geomColumnIdx].buffer);
171
+ const properties = {};
172
+ if (dataColumns) {
173
+ for (const [key, value] of Object.entries(dataColumns)) {
174
+ const idx = columns.indexOf(key);
175
+ // @ts-ignore TODO - Check what happens if null?
176
+ properties[value] = row[idx];
177
+ }
178
+ }
179
+ else {
180
+ // Put all columns except for the feature id and geometry in properties
181
+ for (let i = 0; i < columns.length; i++) {
182
+ if (i === idIdx || i === geomColumnIdx) {
183
+ // eslint-disable-next-line no-continue
184
+ continue;
185
+ }
186
+ const columnName = columns[i];
187
+ properties[columnName] = row[i];
188
+ }
189
+ }
190
+ return {
191
+ id,
192
+ type: 'Feature',
193
+ geometry,
194
+ properties
195
+ };
196
+ }
197
+ /**
198
+ * Get GeoPackage version from database
199
+ * @param db database
200
+ * @returns version string. One of '1.0', '1.1', '1.2'
201
+ */
202
+ // @ts-ignore
203
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
204
+ function getGeopackageVersion(db) {
205
+ const textDecoder = new TextDecoder();
206
+ // Read application id from SQLite metadata
207
+ const applicationIdQuery = db.exec('PRAGMA application_id;')[0];
208
+ const applicationId = applicationIdQuery.values[0][0];
209
+ // Convert 4-byte signed int32 application id to text
210
+ const buffer = new ArrayBuffer(4);
211
+ const view = new DataView(buffer);
212
+ view.setInt32(0, Number(applicationId));
213
+ const versionString = textDecoder.decode(buffer);
214
+ if (versionString === 'GP10') {
215
+ return '1.0';
216
+ }
217
+ if (versionString === 'GP11') {
218
+ return '1.1';
219
+ }
220
+ // If versionString is GPKG, then read user_version
221
+ const userVersionQuery = db.exec('PRAGMA user_version;')[0];
222
+ const userVersionInt = userVersionQuery.values[0][0];
223
+ if (userVersionInt && userVersionInt < 10300) {
224
+ return '1.2';
225
+ }
226
+ return null;
227
+ }
228
+ /**
229
+ * Find name of feature id column in table
230
+ * The feature ID is the primary key of the table.
231
+ * http://www.geopackage.org/spec121/#feature_user_tables
232
+ *
233
+ * @param db database
234
+ * @param tableName name of table
235
+ * @return name of feature id column
236
+ */
237
+ function getFeatureIdName(db, tableName) {
238
+ // Again, not possible to parameterize table name?
239
+ const stmt = db.prepare(`PRAGMA table_info(\`${tableName}\`)`);
240
+ while (stmt.step()) {
241
+ const pragmaTableInfo = stmt.getAsObject();
242
+ const { name, pk } = pragmaTableInfo;
243
+ if (pk) {
244
+ return name;
245
+ }
246
+ }
247
+ // Is it guaranteed for there always to be at least one primary key column in the table?
248
+ return null;
249
+ }
250
+ /**
251
+ * Parse geometry buffer
252
+ * GeoPackage vector geometries are slightly extended past the WKB standard
253
+ * See: https://www.geopackage.org/spec121/#gpb_format
254
+ *
255
+ * @param arrayBuffer geometry buffer
256
+ * @return {object} GeoJSON geometry (in original CRS)
257
+ */
258
+ function parseGeometry(arrayBuffer) {
259
+ const view = new DataView(arrayBuffer);
260
+ const { envelopeLength, emptyGeometry } = parseGeometryBitFlags(view.getUint8(3));
261
+ // A Feature object has a member with the name "geometry". The value of the
262
+ // geometry member SHALL be either a Geometry object as defined above or, in
263
+ // the case that the Feature is unlocated, a JSON null value.
264
+ /** @see https://tools.ietf.org/html/rfc7946#section-3.2 */
265
+ if (emptyGeometry) {
266
+ return null;
267
+ }
268
+ // Do I need to find the srid here? Is it necessarily the same for every
269
+ // geometry in a table?
270
+ // const srid = view.getInt32(4, littleEndian);
271
+ // 2 byte magic, 1 byte version, 1 byte flags, 4 byte int32 srid
272
+ const wkbOffset = 8 + envelopeLength;
273
+ // Loaders should not depend on `core` and the context passed to the main loader doesn't include a
274
+ // `parseSync` option, so instead we call parseSync directly on WKBLoader
275
+ const binaryGeometry = wkt_1.WKBLoader.parseSync(arrayBuffer.slice(wkbOffset));
276
+ return (0, gis_1.binaryToGeometry)(binaryGeometry);
277
+ }
278
+ /**
279
+ * Parse geometry header flags
280
+ * https://www.geopackage.org/spec121/#flags_layout
281
+ *
282
+ * @param byte uint8 number representing flags
283
+ * @return object representing information from bit flags
284
+ */
285
+ function parseGeometryBitFlags(byte) {
286
+ // Are header values little endian?
287
+ const envelopeValue = (byte & 0b00001110) / 2;
288
+ // TODO: Not sure the best way to handle this. Throw an error if envelopeValue outside 0-7?
289
+ const envelopeLength = ENVELOPE_BYTE_LENGTHS[envelopeValue];
290
+ return {
291
+ littleEndian: Boolean(byte & 0b00000001),
292
+ envelopeLength,
293
+ emptyGeometry: Boolean(byte & 0b00010000),
294
+ extendedGeometryType: Boolean(byte & 0b00100000)
295
+ };
296
+ }
297
+ /**
298
+ * Find geometry column in given vector table
299
+ *
300
+ * @param db GeoPackage object
301
+ * @param tableName Name of vector table
302
+ * @returns Array of geometry column definitions
303
+ */
304
+ function getGeometryColumn(db, tableName) {
305
+ const stmt = db.prepare('SELECT * FROM gpkg_geometry_columns WHERE table_name=:tableName;');
306
+ stmt.bind({ ':tableName': tableName });
307
+ // > Requirement 30
308
+ // > A feature table SHALL have only one geometry column.
309
+ // https://www.geopackage.org/spec121/#feature_user_tables
310
+ // So we should need one and only one step, given that we use the WHERE clause in the SQL query
311
+ // above
312
+ stmt.step();
313
+ const geometryColumn = stmt.getAsObject();
314
+ return geometryColumn;
315
+ }
316
+ /**
317
+ * Find property columns in given vector table
318
+ * @param db GeoPackage object
319
+ * @param tableName Name of vector table
320
+ * @returns Mapping from table column names to property name
321
+ */
322
+ function getDataColumns(db, tableName) {
323
+ // gpkg_data_columns is not required to exist
324
+ // https://www.geopackage.org/spec121/#extension_schema
325
+ let stmt;
326
+ try {
327
+ stmt = db.prepare('SELECT * FROM gpkg_data_columns WHERE table_name=:tableName;');
328
+ }
329
+ catch (error) {
330
+ if (error.message.includes('no such table')) {
331
+ return null;
332
+ }
333
+ throw error;
334
+ }
335
+ stmt.bind({ ':tableName': tableName });
336
+ // Convert DataColumnsRow object this to a key-value {column_name: name}
337
+ const result = {};
338
+ while (stmt.step()) {
339
+ const column = stmt.getAsObject();
340
+ const { column_name, name } = column;
341
+ result[column_name] = name || null;
342
+ }
343
+ return result;
344
+ }
345
+ /**
346
+ * Get arrow schema
347
+ * @param db GeoPackage object
348
+ * @param tableName table name
349
+ * @returns Arrow-like Schema
350
+ */
351
+ function getArrowSchema(db, tableName) {
352
+ const stmt = db.prepare(`PRAGMA table_info(\`${tableName}\`)`);
353
+ const fields = [];
354
+ while (stmt.step()) {
355
+ const pragmaTableInfo = stmt.getAsObject();
356
+ const { name, type, notnull } = pragmaTableInfo;
357
+ const field = new schema_1.Field(name, new SQL_TYPE_MAPPING[type](), !notnull);
358
+ fields.push(field);
359
+ }
360
+ return new schema_1.Schema(fields);
361
+ }
@@ -185,3 +185,4 @@ export interface PragmaTableInfoRow {
185
185
  pk: 0 | 1;
186
186
  }
187
187
  export {};
188
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,oBAAY,iBAAiB,GAAG;IAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,CAAC;AAC1D,oBAAY,kBAAkB,GAAG;IAAC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CAAC,CAAC;AACvE,oBAAY,WAAW,GACnB,SAAS,GACT,SAAS,GACT,UAAU,GACV,WAAW,GACX,KAAK,GACL,SAAS,GACT,OAAO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
1
  {
2
2
  "name": "@loaders.gl/geopackage",
3
3
  "description": "GeoPackage data loaders",
4
- "version": "3.1.0-alpha.5",
4
+ "version": "3.1.0-beta.5",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -23,17 +23,14 @@
23
23
  "dist",
24
24
  "README.md"
25
25
  ],
26
- "scripts": {
27
- "post-build": "tsc"
28
- },
29
26
  "dependencies": {
30
27
  "@babel/runtime": "^7.3.1",
31
- "@loaders.gl/gis": "3.1.0-alpha.5",
32
- "@loaders.gl/schema": "3.1.0-alpha.5",
33
- "@loaders.gl/wkt": "3.1.0-alpha.5",
28
+ "@loaders.gl/gis": "3.1.0-beta.5",
29
+ "@loaders.gl/schema": "3.1.0-beta.5",
30
+ "@loaders.gl/wkt": "3.1.0-beta.5",
34
31
  "@math.gl/proj4": "^3.5.1",
35
32
  "@types/sql.js": "^1.4.2",
36
33
  "sql.js": "^1.5.0"
37
34
  },
38
- "gitHead": "352241dd910a8c6307a235dadbe154ca915b885b"
35
+ "gitHead": "5d66468457cc878d2dbff3d7807d737ceb181c9a"
39
36
  }