Skip to content

Commit

Permalink
v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bugra9 committed Jul 31, 2022
1 parent 8c14ea9 commit 5a956e0
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .info.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
"name": "Zlib 1.2.12",
"url": "https://www.zlib.net/",
"licenseUrl": "https://www.zlib.net/zlib_license.html"
},
{
"name": "Iconv 1.17",
"url": "https://www.gnu.org/software/libiconv/",
"licenseUrl": "https://www.gnu.org/software/libiconv/"
}
],
"inspiredBy": [
Expand Down
16 changes: 16 additions & 0 deletions .news.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
[
{
"version": "v2.3.0",
"date": "31.07.2022",
"commits": [
{
"description": "Update Gdal, Proj, SQLite, Tiff, Geotiff, Expat",
"hash": "8c14ea922b8e606ad46a66ac48ea822e4edb2dd3",
"user": "bugra9"
},
{
"description": "Add and use external libiconv instead of Emscripten/Musl libiconv.",
"hash": "8c14ea922b8e606ad46a66ac48ea822e4edb2dd3",
"user": "bugra9"
}
]
},
{
"version": "v2.2.0",
"date": "24.07.2022",
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ PDF, PGDUMP
Note: It doesn't work with web worker.
```html
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package/gdal3.js"
integrity="sha384-2rG8vVNx/obzgpBjrhkrijaDKe3aM32+JNs202K5DskLCBlGk+gOjUZ1RwoFYRZn"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package/gdal3.js"
integrity="sha384-MqXlgRokqK6AH/sqdbP2YToc3B4iHkdNDrs9XFx62LOA6aO0Q4DKd9C39I7q97ay"
crossorigin="anonymous"
></script>
```

```js
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package', useWorker: false }).then((Gdal) => {});
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package', useWorker: false }).then((Gdal) => {});
```
> Example: [https://github.com/bugra9/gdal3.js/tree/master/apps/example-browser](https://github.com/bugra9/gdal3.js/tree/master/apps/example-browser)
Expand Down Expand Up @@ -255,6 +255,7 @@ See [LICENSE](https://github.com/bugra9/gdal3.js/blob/master/LICENSE) to see the
- [JPEG JFIF 9d](https://www.ijg.org/) [(License)](https://spdx.org/licenses/IJG.html)
- [Expat 2.4.2](https://github.com/libexpat/libexpat) [(License)](https://github.com/libexpat/libexpat/blob/master/expat/COPYING)
- [Zlib 1.2.12](https://www.zlib.net/) [(License)](https://www.zlib.net/zlib_license.html)
- [Iconv 1.17](https://www.gnu.org/software/libiconv/) [(License)](https://www.gnu.org/software/libiconv/)

**Inspired by**
- [ddohler/gdal-js](https://github.com/ddohler/gdal-js)
Expand Down
2 changes: 1 addition & 1 deletion apps/app-gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gdal3.js-gui",
"version": "2.2.0",
"version": "2.3.0",
"description": "gdal3.js GUI is a open source project offering a user interface for Gdal.",
"license": "GPL-3.0-or-later",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions apps/example-browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package/gdal3.js"
integrity="sha384-2rG8vVNx/obzgpBjrhkrijaDKe3aM32+JNs202K5DskLCBlGk+gOjUZ1RwoFYRZn"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package/gdal3.js"
integrity="sha384-MqXlgRokqK6AH/sqdbP2YToc3B4iHkdNDrs9XFx62LOA6aO0Q4DKd9C39I7q97ay"
crossorigin="anonymous"
></script>
<script type="text/javascript" src="main.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion apps/example-browser/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
document.write("Loading...");
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package', useWorker: false }).then((Gdal) => {
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package', useWorker: false }).then((Gdal) => {
const count = Object.keys(Gdal.drivers.raster).length + Object.keys(Gdal.drivers.vector).length;
document.write("Number of drivers: " + count);
console.log(Gdal.drivers);
Expand Down
2 changes: 1 addition & 1 deletion apps/example-node/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"gdal3.js": "2.2.0"
"gdal3.js": "2.3.0"
}
}
10 changes: 5 additions & 5 deletions apps/example-singlefile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package/gdal3.js"
integrity="sha384-2rG8vVNx/obzgpBjrhkrijaDKe3aM32+JNs202K5DskLCBlGk+gOjUZ1RwoFYRZn"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package/gdal3.js"
integrity="sha384-MqXlgRokqK6AH/sqdbP2YToc3B4iHkdNDrs9XFx62LOA6aO0Q4DKd9C39I7q97ay"
crossorigin="anonymous"
></script>
</head>
<body>
Loading...
<script type="text/javascript">
async function start() {
const workerData = await fetch('https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package/gdal3.js');
const workerData = await fetch('https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package/gdal3.js');
const workerUrl = window.URL.createObjectURL(await workerData.blob());

const paths = {
wasm: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package/gdal3WebAssembly.wasm',
data: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.2.0/dist/package/gdal3WebAssembly.data',
wasm: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package/gdal3WebAssembly.wasm',
data: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.3.0/dist/package/gdal3WebAssembly.data',
js: workerUrl,
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gdal3.js",
"version": "2.2.0",
"version": "2.3.0",
"description": "gdal3.js is a port of Gdal applications (**gdal_translate**, **ogr2ogr**, **gdal_rasterize**, **gdalwarp**, **gdaltransform**) to Webassembly. It allows you to convert raster and vector geospatial data to various formats and coordinate systems.",
"license": "LGPL-2.1-or-later",
"homepage": "https://gdal3.js.org",
Expand Down Expand Up @@ -41,7 +41,7 @@
"build-src": "rollup --config rollup.config.js",
"build-spec": "mkdir -p build/test/specs/ && cp src/**/**/*.spec.js build/test/specs/ && cp test/*.spec.js build/test/specs/ && cp test/browser.html build/test/index.html && cp -r test/data build/test/data",
"build-gui": "cd apps/app-gui && yarn install && yarn run build",
"build-docs": "jsdoc --configure .jsdoc.json --verbose && cp -r build/docs/gdal3.js/2.2.0/* build/docs",
"build-docs": "jsdoc --configure .jsdoc.json --verbose && cp -r build/docs/gdal3.js/2.3.0/* build/docs",
"test-node": "nyc --reporter=json --reporter=html --report-dir=./build/coverage/node mocha",
"test-browser": "karma start .karma.conf.js",
"test-coverage": "istanbul-merge --out build/coverage/coverage-final.json build/coverage/browser/coverage-final.json build/coverage/node/coverage-final.json && nyc report --reporter html -t build/coverage --report-dir build/coverage"
Expand Down

0 comments on commit 5a956e0

Please sign in to comment.