Skip to content

Commit

Permalink
Update deps & build, fix typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
jvail committed Dec 9, 2023
1 parent 35f67b4 commit a7394ed
Show file tree
Hide file tree
Showing 13 changed files with 509 additions and 388 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ BUILD_DIR = $(PWD)/src/build
BC_DIR = $(BUILD_DIR)/bc
PREFIX = --prefix=$(BC_DIR)

SQLITE_VERSION = 3440100
GEOS_VERSION = 3.12.0
PROJ_VERSION = 9.2.1
SQLITE_VERSION = 3440200
GEOS_VERSION = 3.12.1
PROJ_VERSION = 9.3.1
RTTOPO_VERSION = 1.1.0

ZLIB_VERSION = 1.3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ console.assert(await spl.spatialite_version() === '5.1.0');

## Building and Testing

An activated, working emsdk environment (3.1.49) is required (https://emscripten.org/docs/tools_reference/emsdk.html). All dependencies except SpatiaLite & sqlean (git submodules) are fetched from the web. The git submodules needs to be initialized before running the build script.
An activated, working emsdk environment (3.1.50) is required (https://emscripten.org/docs/tools_reference/emsdk.html). All dependencies except SpatiaLite & sqlean (git submodules) are fetched from the web. The git submodules needs to be initialized before running the build script.

```bash
npm install && npm run build:all
Expand Down
9 changes: 8 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
/**
* @typedef {Object} ResultSync
* @property {any} first
* @property {any[]} flat
* @property {any[]} rows
* @property {string[]} cols
* @property {{}[]} objs
*
* @typedef {Object} Result
* @property {Promise<any>} first
* @property {Promise<any[]>} flat
* @property {Promise<any[]>} rows
* @property {Promise<string[]>} cols
* @property {Promise<{}[]>} objs
* @property {Promise<Result>} sync
* @property {Promise<ResultSync>} sync
* @property {Promise<void>} free
*
* @typedef {Object} MountOptions
Expand Down
Binary file modified dist/index.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/proj/ITRF2008
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<CARB> +proj=helmert +drx=0.000049 +dry=-0.001088 +drz=0.000664 +convention=position_vector

<EURA> +proj=helmert +drx=-0.000083 +dry=0.000534 +drz=0.000750 +convention=position_vector
<EURA> +proj=helmert +drx=-0.000083 +dry=-0.000534 +drz=0.000750 +convention=position_vector

<INDI> +proj=helmert +drx=0.001232 +dry=0.000303 +drz=0.001540 +convention=position_vector

Expand Down Expand Up @@ -75,7 +75,7 @@

<CARB_T> +proj=helmert +dx=0.00041 +dy=0.00022 +dz=0.00041 +drx=0.000049 +dry=-0.001088 +drz=0.000664 +convention=position_vector

<EURA_T> +proj=helmert +dx=0.00041 +dy=0.00022 +dz=0.00041 +drx=-0.000083 +dry=0.000534 +drz=0.000750 +convention=position_vector
<EURA_T> +proj=helmert +dx=0.00041 +dy=0.00022 +dz=0.00041 +drx=-0.000083 +dry=-0.000534 +drz=0.000750 +convention=position_vector

<INDI_T> +proj=helmert +dx=0.00041 +dy=0.00022 +dz=0.00041 +drx=0.001232 +dry=0.000303 +drz=0.001540 +convention=position_vector

Expand Down
Binary file modified dist/proj/proj.db
Binary file not shown.
16 changes: 14 additions & 2 deletions dist/proj/proj.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,26 @@

; Network capabilities disabled by default.
; Can be overridden with the PROJ_NETWORK=ON environment variable.
; network = on
; Cf https://proj.org/en/latest/usage/network.html
; Valid values = on, off
network = off

; Endpoint of the Content Delivery Network where remote resources might
; be accessed. Only used if network access is allowed (cf above "network"
; option)
; Can be overridden with the PROJ_NETWORK_ENDPOINT environment variable.
cdn_endpoint = https://cdn.proj.org

; Whether to enable a cache of remote resources that are accessed, on the
; local file system
; Valid values = on, off
cache_enabled = on

; Size of the cache in megabytes
cache_size_MB = 300

; Time-to-live delay in seconds before already accessed remote resources are
; acessed again to check if they have been updated.
cache_ttl_sec = 86400

; Can be set to on so that by default the lack of a known resource files needed
Expand All @@ -23,7 +34,8 @@ cache_ttl_sec = 86400
; passed to the proj_create_crs_to_crs() method, or with the --only-best
; option of the cs2cs program.
; (added in PROJ 9.2)
; only_best_default = on
; Valid values = on, off
only_best_default = off

; Filename of the Certificate Authority (CA) bundle.
; Can be overriden with the PROJ_CURL_CA_BUNDLE / CURL_CA_BUNDLE environment variable.
Expand Down
2 changes: 1 addition & 1 deletion dist/spl-node.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/spl-web.js

Large diffs are not rendered by default.

Loading

0 comments on commit a7394ed

Please sign in to comment.