From 2b0ea6a960792556427f1f980199bd0f216ef211 Mon Sep 17 00:00:00 2001 From: Bugra Date: Sun, 3 Dec 2023 00:31:34 +0300 Subject: [PATCH] v2.5.0 --- .news.json | 31 ++++++++++++++++++++++++++++++ README.md | 14 +++++++------- apps/app-gui/package.json | 2 +- apps/example-browser/index.html | 4 ++-- apps/example-browser/main.js | 2 +- apps/example-node/index.js | 12 ++++++------ apps/example-node/package.json | 2 +- apps/example-singlefile/index.html | 10 +++++----- package.json | 4 ++-- 9 files changed, 56 insertions(+), 25 deletions(-) diff --git a/.news.json b/.news.json index 821fe59..beafc7e 100644 --- a/.news.json +++ b/.news.json @@ -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", diff --git a/README.md b/README.md index 9938b27..52afa62 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ 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 @@ -29,10 +29,10 @@ 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 @@ -46,14 +46,14 @@ PDF, PGDUMP Note: It doesn't work with web worker. ```html ``` ```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) diff --git a/apps/app-gui/package.json b/apps/app-gui/package.json index 922ca71..0549599 100644 --- a/apps/app-gui/package.json +++ b/apps/app-gui/package.json @@ -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": { diff --git a/apps/example-browser/index.html b/apps/example-browser/index.html index f2d39fe..0c22b8b 100644 --- a/apps/example-browser/index.html +++ b/apps/example-browser/index.html @@ -4,8 +4,8 @@ diff --git a/apps/example-browser/main.js b/apps/example-browser/main.js index 5b196e0..16563aa 100644 --- a/apps/example-browser/main.js +++ b/apps/example-browser/main.js @@ -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); diff --git a/apps/example-node/index.js b/apps/example-node/index.js index de85d11..391aee8 100644 --- a/apps/example-node/index.js +++ b/apps/example-node/index.js @@ -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); } }); diff --git a/apps/example-node/package.json b/apps/example-node/package.json index a9f458e..86f8261 100644 --- a/apps/example-node/package.json +++ b/apps/example-node/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "gdal3.js": "2.4.0" + "gdal3.js": "2.5.0" } } diff --git a/apps/example-singlefile/index.html b/apps/example-singlefile/index.html index d81574f..e591f17 100644 --- a/apps/example-singlefile/index.html +++ b/apps/example-singlefile/index.html @@ -4,8 +4,8 @@ @@ -13,12 +13,12 @@ Loading...