From e046b11d5be8b1e46926a6bd365a6da523400958 Mon Sep 17 00:00:00 2001 From: khrushjing <2419157401@qq.com> Date: Tue, 1 Mar 2022 15:00:10 +0000 Subject: [PATCH] feat(config): add cpl config function --- src/allCFunctions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allCFunctions.js b/src/allCFunctions.js index 4268243..46f27b3 100644 --- a/src/allCFunctions.js +++ b/src/allCFunctions.js @@ -18,6 +18,8 @@ export function initCFunctions() { GDALFunctions.CPLGetLastErrorNo = Module.cwrap('CPLGetLastErrorNo', 'number', []); GDALFunctions.CPLGetLastErrorMsg = Module.cwrap('CPLGetLastErrorMsg', 'string', []); GDALFunctions.CPLGetLastErrorType = Module.cwrap('CPLGetLastErrorType', 'number', []); + GDALFunctions.CPLSetConfigOption = Module.cwrap('CPLSetConfigOption', null, ['string', 'string']); + GDALFunctions.CPLSetThreadLocalConfigOption = Module.cwrap('CPLSetThreadLocalConfigOption', null, ['string', 'string']); GDALFunctions.GDALGetRasterCount = Module.cwrap('GDALGetRasterCount', 'number', ['number']); GDALFunctions.GDALGetRasterXSize = Module.cwrap('GDALGetRasterXSize', 'number', ['number']); GDALFunctions.GDALGetRasterYSize = Module.cwrap('GDALGetRasterYSize', 'number', ['number']);