Re: [gdal-dev] [External] : Re: Can GDAL driver be reused by GDAL python binding

2025-07-08 Thread Fengting Chen via gdal-dev
have to be careful about multi-threaded use cases if you want to implement that though. The PostGISRaster driver has some connection pooling. See PostGISRasterDriver::GetConnection() Even Le 07/07/2025 à 21:18, Fengting Chen via gdal-dev a écrit : Hi, A Python program can invoke GDAL driver

[gdal-dev] Can GDAL driver be reused by GDAL python binding

2025-07-07 Thread Fengting Chen via gdal-dev
Hi, A Python program can invoke GDAL driver through gdal.open() to read/write raster/vector data. Is it possible for the GDAL driver to be reused in order to avoid reinitializing the driver for each gdal.open() call? For example, if a GDAL driver to a database implements a connection pool, will

Re: [gdal-dev] [External] : Re: libgdal.so.36 refers to sqlite library with full path

2025-05-14 Thread Fengting Chen via gdal-dev
to modify dependencies. -- Andrew Bell andrew.bell...@gmail.com<mailto:andrew.bell...@gmail.com> On Wed, May 14, 2025, 6:10 PM Fengting Chen via gdal-dev mailto:gdal-dev@lists.osgeo.org>> wrote: Both GDAL and PROJ refer to my custom build sqlite3 library. The sqlite3 entry in PRO

Re: [gdal-dev] [External] : Re: libgdal.so.36 refers to sqlite library with full path

2025-05-14 Thread Fengting Chen via gdal-dev
14/05/2025 à 22:58, Fengting Chen via gdal-dev a écrit : Hi, I am trying to build GDAL 3.10.3 with sqlite 3.49.2. The build was successful on linux. But there are two entries of reference to sqlite3, and one of it has the absolution path. > ldd libgdal.so.36 | grep sqlite ldd: warning: you do

[gdal-dev] libgdal.so.36 refers to sqlite library with full path

2025-05-14 Thread Fengting Chen via gdal-dev
Hi, I am trying to build GDAL 3.10.3 with sqlite 3.49.2. The build was successful on linux. But there are two entries of reference to sqlite3, and one of it has the absolution path. > ldd libgdal.so.36 | grep sqlite ldd: warning: you do not have execution permission for `./libgdal.so.36'

[gdal-dev] GDAL 3.10.3 build question on Windows

2025-05-12 Thread Fengting Chen via gdal-dev
I am trying to build GDAL 3.10.3 on windows. There were no errors during the build, but somehow the python bindings were not installed to the specified directory (CMAKE_INSTALL_PREFIX). all other files are installed as expected. Here is the part of the makefile: build_gdal_binary:

Re: [gdal-dev] [External] : Re: GDAL 3.10.3 build questions regarding to CURL and ARROW

2025-05-08 Thread Fengting Chen via gdal-dev
regarding to CURL and ARROW Le 08/05/2025 à 19:15, Fengting Chen via gdal-dev a écrit : I have a couple questions regarding to building GDAL 3.10.3: 1. Error about CURL: Could NOT find CURL: Found unsuitable version "7.61.1", but required is at least "7.68" (found /

[gdal-dev] GDAL 3.10.3 build questions regarding to CURL and ARROW

2025-05-08 Thread Fengting Chen via gdal-dev
I have a couple questions regarding to building GDAL 3.10.3: 1. Error about CURL: Could NOT find CURL: Found unsuitable version "7.61.1", but required is at least "7.68" (found /usr/lib64/libcurl.so, ) Any reason that curl 7.68 and higher is required? 1. In the build of GDAL 3.10.

Re: [gdal-dev] [External] : Re: Build failed with "cannot deduce template arguments" error

2025-05-01 Thread Fengting Chen via gdal-dev
lists.osgeo.org> Subject: [External] : Re: [gdal-dev] Build failed with "cannot deduce template arguments" error Which compiler and compiler version do you use ? It is likely it is too old and doesn't fully support C++17 Le 29/04/2025 à 23:18, Fengting Chen via gdal-dev a écr

Re: [gdal-dev] [External] : Re: Build failed with "cannot deduce template arguments" error

2025-04-29 Thread Fengting Chen via gdal-dev
ments" error Which compiler and compiler version do you use ? It is likely it is too old and doesn't fully support C++17 Le 29/04/2025 à 23:18, Fengting Chen via gdal-dev a écrit : Hi, I am trying to build GDAL from the master branch, but got the following error: [ 46%] Building

[gdal-dev] Build failed with "cannot deduce template arguments" error

2025-04-29 Thread Fengting Chen via gdal-dev
Hi, I am trying to build GDAL from the master branch, but got the following error: [ 46%] Building CXX object alg/CMakeFiles/alg.dir/gdal_interpolateatpoint.cpp.o In file included from /scratch/gdal/gdal/alg/gdal_interpolateatpoint.cpp:20: /scratch/gdal/gdal/gcore/gdal_vectorx.h: In member functi

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Fengting Chen via gdal-dev
It turned out that I didn’t specify swig_executable and an old version of swig was used on linux build. After fixing this, the warning was gone. Back on windows build, with swig 4.2.1, python 3.12.2, setuptools 69.2, cmake still couldn’t install python binding. And I have to manually invoke set

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Fengting Chen via gdal-dev
After upgrading setuptools, the installation on windows worked. Just curious that why “GDAL-3.8.4-py3.6.egg-info” is created under the site-packages on windows, while I set up the PYTHON_ROOT to use python 3.12 and clean up the build directory to rebuild everything. On the other hand, on linux,

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Fengting Chen via gdal-dev
Thanks for the suggestion. I can upgrade the setuptools and try again. Another question: is it possible to only build a specific driver plugin without rebuilding the GDAL? From: Even Rouault Date: Tuesday, March 19, 2024 at 4:44 PM To: Fengting Chen , gdal-dev@lists.osgeo.org Subject: Re: [Ex

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-19 Thread Fengting Chen via gdal-dev
To: Fengting Chen , gdal-dev@lists.osgeo.org Subject: [External] : Re: [gdal-dev] Python binding installation on windows Hi, Le 19/03/2024 à 20:14, Fengting Chen via gdal-dev a écrit : Hi, I was able to build the GDAL with python binding on without error on windows. However, “cmake --build

[gdal-dev] Python binding installation on windows

2024-03-19 Thread Fengting Chen via gdal-dev
Hi, I was able to build the GDAL with python binding on without error on windows. However, “cmake --build . --target install --config Release” command doesn’t install the python site-packages etc to the specified “CMAKE_INSTALL_PREFIX” directory. The rest of the GDAL components were installed

Re: [gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking

2024-03-15 Thread Fengting Chen via gdal-dev
t: Re: [gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking Not the answer you'll probably want to hear, but: - Use an up-to-date compiler - Use package distributions like vcpkg or conda-forge that already brings all the dependencies "for free" - It seems yo

Re: [gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking

2024-03-14 Thread Fengting Chen via gdal-dev
Not the answer you'll probably want to hear, but: - Use an up-to-date compiler - Use package distributions like vcpkg or conda-forge that already brings all the dependencies "for free" - It seems you mix builds of different compilers (VS vs mingw). That's a bit asking for

Re: [gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking

2024-03-14 Thread Fengting Chen via gdal-dev
g for troubles ;-) Le 12/03/2024 à 17:48, Fengting Chen via gdal-dev a écrit : Resend with more information: I am trying to build GDAL 3.8.4 on windows under VS2015. The build failed at linking stage that a bunch of external symbols not found, specifically the symbols in libproj, libcurl. I checked th

[gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking

2024-03-12 Thread Fengting Chen via gdal-dev
found the symbols in the library a little different, for example the linker error shows “__imp__curl_slist_append” not found, the symbol output from the “dumpbin” is “__imp_curl_slist_append” . Any idea how to fix this? Thanks! From: gdal-dev on behalf of Fengting Chen via gdal-dev Date

[gdal-dev] GDAL 3.8.4 build on windows failed at linking

2024-03-11 Thread Fengting Chen via gdal-dev
GDAL 3.8.4 build on Windows from VS2015 x64 command prompt: “cmake –build .” throws the following error (there are more similar errors): cpl_vsil_az.obj : error LNK2001: unresolved external symbol __imp__curl_slist_append [E:\gdal-3.8.4\build\GDAL.vcxproj] cmake options has: set (GDAL_USE_CURL

Re: [gdal-dev] [External] : Re: GDAL build on windows failed for FILEGDB driver

2024-03-02 Thread Fengting Chen via gdal-dev
Thanks, that is clear now. One more question, anywhere to get proj_9_3.lib and sqlite3 .lib, most downloadable package only has .dll. From: Even Rouault Date: Saturday, March 2, 2024 at 1:50 PM To: Fengting Chen , gdal-dev@lists.osgeo.org Subject: Re: [External] : Re: [gdal-dev] GDAL build on

Re: [gdal-dev] [External] : Re: GDAL build on windows failed for FILEGDB driver

2024-03-02 Thread Fengting Chen via gdal-dev
That is what I guessed. But the documentation says: CURL_LIBRARY_RELEASE• Path to a shared or static library file, such as libcurl.dll, libcurl.so, libcurl.lib, or other name. If I use .lib here, will GDAL

Re: [gdal-dev] [External] : Re: GDAL build on windows failed for FILEGDB driver

2024-03-02 Thread Fengting Chen via gdal-dev
Rouault Date: Friday, March 1, 2024 at 5:54 PM To: Fengting Chen , gdal-dev@lists.osgeo.org Subject: [External] : Re: [gdal-dev] GDAL build on windows failed for FILEGDB driver Le 01/03/2024 à 20:31, Fengting Chen via gdal-dev a écrit : Hi, I am using VS2015 terminal and cmake to build GDAL on w

[gdal-dev] GDAL build on windows failed for FILEGDB driver

2024-03-01 Thread Fengting Chen via gdal-dev
Hi, I am using VS2015 terminal and cmake to build GDAL on windows. I got the following compilation error for filegdbindex_write.cpp. Any idea? E:\gdal-3.8.4\ogr\ogrsf_frmts\openfilegdb\filegdbindex_write.cpp(1388): note: while trying to match the argument list '(OpenFileGDB::FileGDBTable::Cr

Re: [gdal-dev] [External] : Re: GDAL driver Open() calls

2023-11-30 Thread Fengting Chen via gdal-dev
Hi Even, Here is what found out from debugging: There are two Open() calls. Your fix skipped one. Here is the stack trace of the second one: [cid:image001.png@01DA239D.5F51E090] Thanks! From: Even Rouault Date: Thursday, November 30, 2023 at 8:40 AM Le 30/11/2023 à 04:47, Fengting Chen a écr

Re: [gdal-dev] [External] : Re: GDAL driver Open() calls

2023-11-29 Thread Fengting Chen via gdal-dev
alys.com> Date: Tuesday, November 28, 2023 at 6:36 PM Hi, Please share the stack trace (on a debug build) of both instances where GDALOpen() is called Even Le 28/11/2023 à 23:40, Fengting Chen via gdal-dev a écrit : Hi, I noticed from the GeoRaster driver that in GDAL 3.6 and 3.7 (maybe 3.8

Re: [gdal-dev] [External] : Re: GDAL driver Open() calls

2023-11-28 Thread Fengting Chen via gdal-dev
: Tuesday, November 28, 2023 at 6:36 PM To: Fengting Chen , gdal-dev@lists.osgeo.org Subject: [External] : Re: [gdal-dev] GDAL driver Open() calls Hi, Please share the stack trace (on a debug build) of both instances where GDALOpen() is called Even Le 28/11/2023 à 23:40, Fengting Chen via gdal-dev a

[gdal-dev] GDAL driver Open() calls

2023-11-28 Thread Fengting Chen via gdal-dev
Hi, I noticed from the GeoRaster driver that in GDAL 3.6 and 3.7 (maybe 3.8 too), there are two GDALOpen() calls on the driver with GDALOpenInfo eAccess as GA_ReadOnly, even when the GeoRaster is the output format in gdal_translate command. There are no such calls in GDAL 3.4. I am wondering i