ol-load-geopackage 1.0.1 → 1.0.3

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/CONTRIBUTING.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  # Contributing
3
3
 
4
- At the moment, this is the first part of several different (but related) bits of code being released. Bug reports or suggested documentation updates are very welcome - please raise an issue (see below). However, please hold off from adding pull requests for the moment as the wider context for testing is not publicly visible.
4
+ Bug reports or suggested documentation updates are very welcome - please raise an issue (see below).
5
5
 
6
6
  Enhancement requests are also welcome, but please bear in mind that this package is intended to be as lightweight as possible - for more fully fledged handling of OGC GeoPackages you might want to consider the [NGA GeoPackage Libraries](https://github.com/ngageoint/GeoPackage#geopackage).
7
7
 
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # OpenLayers OGC GeoPackage Loader
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/ol-load-geopackage)](https://www.npmjs.com/package/ol-load-geopackage)
4
+
3
5
  A JavaScript module to load OGC GeoPackage vector data tables into OpenLayers Vector Sources, transforming the data (if necessary) to match the specified display projection. This was primarily designed to directly load data exported by the QGIS [Package Layers](https://docs.qgis.org/3.16/en/docs/user_manual/processing_algs/qgis/database.html#package-layers) Processing Toolbox operation. As such, it will also (if it exists) load the associated "layer_styles" table of SLD XML styling data exported by QGIS in the same GeoPackage.
4
6
 
5
7
  It is implemented as an NPM module and is a lightweight wrapper around the [sql.js](https://github.com/sql-js/sql.js) SQLite JavaScript library.
@@ -63,6 +65,8 @@ The (shared) support files used to bundle the examples using Webpack 5 ([package
63
65
 
64
66
  ```bash
65
67
  cd examples
68
+ npm install
69
+ npm run-script sql-install
66
70
  npm run-script build
67
71
  ```
68
72
 
@@ -107,8 +111,8 @@ Notes:
107
111
 
108
112
  ## Contributions
109
113
 
110
- For bug reports, enhancement requests or code contributions please see [CONTRIBUTING](CONTRIBUTING.MD).
114
+ For bug reports, enhancement requests or code contributions please see [CONTRIBUTING](CONTRIBUTING.md).
111
115
 
112
116
  ## Licence
113
117
 
114
- ISC - see [LICENCE](LICENCE.MD).
118
+ ISC - see [LICENCE](LICENCE.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-load-geopackage",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Loads OGC GeoPackage vector data tables into OpenLayers Vector Sources",
5
5
  "main": "dist/ol-load-geopackage.js",
6
6
  "scripts": {
@@ -10,7 +10,9 @@
10
10
  "OGC",
11
11
  "GeoPackage",
12
12
  "OpenLayers",
13
- "ol"
13
+ "ol",
14
+ "QGIS",
15
+ "SLD"
14
16
  ],
15
17
  "author": "Richard Thomas",
16
18
  "license": "ISC",