Skip to content

Commit

Permalink
v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bugra9 committed Dec 2, 2023
1 parent c8cf8f2 commit 2b0ea6a
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 25 deletions.
31 changes: 31 additions & 0 deletions .news.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
[
{
"version": "v2.5.0",
"date": "02.12.2023",
"commits": [
{
"description": "Update npm and native dependencies",
"hash": "c8cf8f2249f55a7426096de751abbc17446907f8",
"user": "bugra9"
},
{
"description": "Support open prefixes",
"hash": "143b4be120ae58289a4c30d305e14d2687630f42",
"user": "j8seangel"
},
{
"description": "Add gdal location info",
"hash": "b395c5493f938e5a67e71a5b02c21aeb78207042",
"user": "danothemen"
},
{
"description": "README.md: fix dataset -> datasets typo",
"hash": "2de887c149d4cdceaea94856858d783a46bef0f7",
"user": "gregStickle"
},
{
"description": "README.md: fix exfat -> expat typo",
"hash": "072717a92ed68ff6e638ee283da03fbb0b4ca7da",
"user": "rouault"
}
]
},
{
"version": "v2.4.0",
"date": "30.10.2022",
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ It runs on the browser and files are converted on the client side.

### Raster
**Read & Write** \
AAIGrid, ADRG, ARG, BLX, BMP, BT, BYN, CALS, CTable2, DTED, EHdr, ELAS, ENVI, ERS, FIT, GIF, GPKG, GRIB, GS7BG, GSAG, GSBG, GTX, GTiff, HF2, HFA, ILWIS, ISCE, ISIS2, ISIS3, JPEG, KMLSUPEROVERLAY, KRO, LAN, LCP, Leveller, MBTiles, MEM, MFF, MFF2, MRF, NITF, NTv2, NWT_GRD, PAux, PCIDSK, PCRaster, PDS4, PNG, PNM, R, RMF, ROI_PAC, RRASTER, RST, Rasterlite, SAGA, SGI, SIGDEM, SRTMHGT, Terragen, USGSDEM, VICAR, VRT, WEBP, WMTS, XPM, XYZ, ZMap, Zarr
AAIGrid, ADRG, ARG, BLX, BMP, BT, BYN, CALS, CTable2, DTED, EHdr, ELAS, ENVI, ERS, FIT, GIF, GPKG, GRIB, GS7BG, GSAG, GSBG, GTX, GTiff, HF2, HFA, ILWIS, ISCE, ISIS2, ISIS3, JPEG, KMLSUPEROVERLAY, KRO, LAN, LCP, Leveller, MBTiles, MEM, MFF, MFF2, MRF, NITF, NTv2, NWT_GRD, OpenFileGDB, PAux, PCIDSK, PCRaster, PDS4, PNG, PNM, R, RMF, ROI_PAC, RRASTER, RST, Rasterlite, SAGA, SGI, SIGDEM, SRTMHGT, Terragen, USGSDEM, VICAR, VRT, WEBP, WMTS, XPM, XYZ, ZMap, Zarr

**Read Only** \
ACE2, AIG, AirSAR, BIGGIF, BSB, CAD, CEOS, COASP, COSAR, CPG, CTG, DERIVED, DIMAP, DIPEx, DOQ1, DOQ2, ECRGTOC, EIR, ESAT, ESRIC, FAST, GFF, GRASSASCIIGrid, GSC, GXF, GenBin, IRIS, ISG, JAXAPALSAR, JDEM, L1B, LOSLAS, MAP, MSGN, NDF, NGSGEOID, NWT_GRC, OGCAPI, OZI, PDS, PRF, RIK, RPFTOC, RS2, SAFE, SAR_CEOS, SDTS, SENTINEL2, SNODAS, SRP, STACIT, STACTA, TGA, TIL, TSX
ACE2, AIG, AirSAR, BIGGIF, BSB, CAD, CEOS, COASP, COSAR, CPG, CTG, DERIVED, DIMAP, DIPEx, DOQ1, DOQ2, ECRGTOC, EIR, ESAT, ESRIC, FAST, GFF, GRASSASCIIGrid, GSC, GXF, GenBin, IRIS, ISG, JAXAPALSAR, JDEM, L1B, LOSLAS, MAP, MSGN, NDF, NGSGEOID, NOAA_B, NSIDCbin, NWT_GRC, OZI, PDS, PRF, RIK, RPFTOC, RS2, SAFE, SAR_CEOS, SDTS, SENTINEL2, SNODAS, SRP, STACIT, STACTA, TGA, TIL, TSX

**Write Only** \
COG, PDF


### Vector
**Read & Write** \
CSV, DGN, DXF, ESRI Shapefile, FlatGeobuf, GML, GPKG, GPSBabel, GPX, GeoJSON, GeoJSONSeq, GeoRSS, Geoconcept, JML, KML, MBTiles, MVT, MapInfo File, MapML, Memory, ODS, OGR_GMT, PCIDSK, PDS4, S57, SQLite/Spatialite, VDV, VICAR, WAsP, XLSX
CSV, DGN, DXF, ESRI Shapefile, FlatGeobuf, GML, GPKG, GPSBabel, GPX, GeoJSON, GeoJSONSeq, GeoRSS, Geoconcept, JML, JSONFG, KML, MBTiles, MVT, MapInfo File, MapML, Memory, ODS, OGR_GMT, OpenFileGDB, PCIDSK, PDS4, PMTiles, S57, SQLite, Selafin, VDV, VICAR, WAsP, XLSX

**Read Only** \
AVCBin, AVCE00, CAD, EDIGEO, ESRIJSON, Idrisi, LVBAG, OGCAPI, OGR_PDS, OGR_SDTS, OGR_VRT, OSM, OpenFileGDB, SVG, SXF, TIGER, TopoJSON, UK .NTF, VFK
AVCBin, AVCE00, CAD, EDIGEO, ESRIJSON, GTFS, Idrisi, LVBAG, OGR_PDS, OGR_SDTS, OGR_VRT, OSM, SVG, SXF, TIGER, TopoJSON, UK .NTF, VFK

**Write Only** \
PDF, PGDUMP
Expand All @@ -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.4.0/dist/package/gdal3.js"
integrity="sha384-XlqVvSG4V8zz8Kdw95OpRdsWyJnWE5QUZy++BeAIEVb+f2n5RM7jdbZh5lm0pHWk"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.5.0/dist/package/gdal3.js"
integrity="sha384-OTsvd0xgXZGq/MiBPbMxPtlzsOMWY9rYkm0igAj9ew4Rpxzec63ERwqSXUWhLn3F"
crossorigin="anonymous"
></script>
```

```js
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.4.0/dist/package', useWorker: false }).then((Gdal) => {});
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.5.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
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.4.0",
"version": "2.5.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.4.0/dist/package/gdal3.js"
integrity="sha384-XlqVvSG4V8zz8Kdw95OpRdsWyJnWE5QUZy++BeAIEVb+f2n5RM7jdbZh5lm0pHWk"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.5.0/dist/package/gdal3.js"
integrity="sha384-OTsvd0xgXZGq/MiBPbMxPtlzsOMWY9rYkm0igAj9ew4Rpxzec63ERwqSXUWhLn3F"
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.4.0/dist/package', useWorker: false }).then((Gdal) => {
initGdalJs({ path: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.5.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
12 changes: 6 additions & 6 deletions apps/example-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ async function main() {

Object.values(Gdal.drivers.raster).forEach(driver => {
if (driver.isReadable && driver.isWritable) {
drivers.raster.readWrite.push(driver.shortName);
drivers.raster.readWrite.push(driver.shortName);
} else if(driver.isReadable) {
drivers.raster.readOnly.push(driver.shortName);
drivers.raster.readOnly.push(driver.shortName);
} else if(driver.isWritable) {
drivers.raster.writeOnly.push(driver.shortName);
drivers.raster.writeOnly.push(driver.shortName);
}
});

Object.values(Gdal.drivers.vector).forEach(driver => {
if (driver.isReadable && driver.isWritable) {
drivers.vector.readWrite.push(driver.shortName);
drivers.vector.readWrite.push(driver.shortName);
} else if(driver.isReadable) {
drivers.vector.readOnly.push(driver.shortName);
drivers.vector.readOnly.push(driver.shortName);
} else if(driver.isWritable) {
drivers.vector.writeOnly.push(driver.shortName);
drivers.vector.writeOnly.push(driver.shortName);
}
});

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.4.0"
"gdal3.js": "2.5.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.4.0/dist/package/gdal3.js"
integrity="sha384-XlqVvSG4V8zz8Kdw95OpRdsWyJnWE5QUZy++BeAIEVb+f2n5RM7jdbZh5lm0pHWk"
src="https://cdn.jsdelivr.net/npm/gdal3.js@2.5.0/dist/package/gdal3.js"
integrity="sha384-OTsvd0xgXZGq/MiBPbMxPtlzsOMWY9rYkm0igAj9ew4Rpxzec63ERwqSXUWhLn3F"
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.4.0/dist/package/gdal3.js');
const workerData = await fetch('https://cdn.jsdelivr.net/npm/gdal3.js@2.5.0/dist/package/gdal3.js');
const workerUrl = window.URL.createObjectURL(await workerData.blob());

const paths = {
wasm: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.4.0/dist/package/gdal3WebAssembly.wasm',
data: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.4.0/dist/package/gdal3WebAssembly.data',
wasm: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.5.0/dist/package/gdal3WebAssembly.wasm',
data: 'https://cdn.jsdelivr.net/npm/gdal3.js@2.5.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.4.0",
"version": "2.5.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.mjs",
"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 test/mocha.css build/test/mocha.css && cp -r test/data build/test/data",
"build-gui": "cd apps/app-gui && pnpm install && pnpm run build",
"build-docs": "jsdoc --configure .jsdoc.json --verbose && cp -r build/docs/gdal3.js/2.4.0/* build/docs",
"build-docs": "jsdoc --configure .jsdoc.json --verbose && cp -r build/docs/gdal3.js/2.5.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 2b0ea6a

Please sign in to comment.