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

2024-03-14 Thread Even Rouault via gdal-dev
Le 14/03/2024 à 19:27, Fengting Chen a écrit : I included this fix but it doesn’t help. I was building the georaster driver as a plugin but the linker failed at building gdal library. So the fix doesn’t seem to be related to the problem. You can't build the driver as a plugin with internal

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

2024-03-14 Thread Fengting Chen via gdal-dev
I included this fix but it doesn’t help. I was building the georaster driver as a plugin but the linker failed at building gdal library. So the fix doesn’t seem to be related to the problem. Building Custom Rule C:/fechen/gdal-3.8.4/CMakeLists.txt vsidataio.obj : error LNK2005: "void __cdecl

Re: [gdal-dev] Hanging (or very slow) when ogr2ogr appending to PostGIS table

2024-03-14 Thread Even Rouault via gdal-dev
(re-adding list) Le 14/03/2024 à 18:58, Robin Wilson a écrit : Hi Even, Perfect - adding —config PG_USE_COPY YES solved it. I’ll write a blog post about this that hopefully will be found by someone with the same issue in future. You may also suggest documentation enhancement to

Re: [gdal-dev] Hanging (or very slow) when ogr2ogr appending to PostGIS table

2024-03-14 Thread Even Rouault via gdal-dev
Robin, - output of "gdalinfo --version" ? - try adding ``--config PG_USE_COPY YES`` to  the command line where you append to the existing table. Cf https://gdal.org/drivers/vector/pg.html#configuration-options (copy mode is enabled by default at table creation, but not in append scenarios)

[gdal-dev] Hanging (or very slow) when ogr2ogr appending to PostGIS table

2024-03-14 Thread Robin Wilson via gdal-dev
Hi, I’ve been using ogr2ogr to import vector datasets into PostGIS tables. I originally tried this using a local Postgres server, and ran the following commands to import one file into a PostGIS table, and then append the contents of another file to the same table: ogr2ogr --debug ON -f

Re: [gdal-dev] There's something strange about two tests that are very similar

2024-03-14 Thread Abel Pau via gdal-dev
Thanks Even, your feedback helped a lot. De: Even Rouault Enviado el: dijous, 14 de març de 2024 10:13 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] There's something strange about two tests that are very similar gdb is not going to help for test_ogr_basic_10. As you can

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

2024-03-14 Thread Even Rouault via gdal-dev
Hi, possibly already fixed in master with commit https://github.com/OSGeo/gdal/commit/849226ce1a9 Even Le 14/03/2024 à 16:47, Fengting Chen a écrit : After upgrading the windows build environment to VS2022, I got the following linker error: vsidataio.obj : error LNK2005: "void __cdecl

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

2024-03-14 Thread Fengting Chen via gdal-dev
After upgrading the windows build environment to VS2022, I got the following linker error: vsidataio.obj : error LNK2005: "void __cdecl jpeg_vsiio_src(struct jpeg_decompress_struct *,struct VSIVirtualHandle *)" (?jpeg_vsiio_src@@YAXPEAUjpeg_decompress_struct@@PEAUVSIVirtualHandle@@@Z) already

Re: [gdal-dev] There's something strange about two tests that are very similar

2024-03-14 Thread Even Rouault via gdal-dev
gdb is not going to help for test_ogr_basic_10. As you can see in the test, it "runexternal", that is it forks a child process, so gdb isn't going to debug this child process by default. The easiest is to run "test_ogrsf -all_drivers" directly / under gdb / under valgrind Actually, I've

Re: [gdal-dev] There's something strange about two tests that are very similar

2024-03-14 Thread Abel Pau via gdal-dev
Sorry, I merged from my phone and I think I did it wrong. At this time actions are going well except the same that didn’t work at the beginning of this message. The MacOS one. Merge remote-tracking branch 'upstream/master' into MiraMon-Vector-dr… · AbelPau/gdal@fa6f9e0

Re: [gdal-dev] There's something strange about two tests that are very similar

2024-03-14 Thread Abel Pau via gdal-dev
Hi, I rebased yesterday, after your message, but same error appeared and some more. I rebased al 7.00 again and it seems that there are again some errors in linux builds. I assume it's because of lasts code updates. I'll wait until something stable to rebase again. Enviat des de l'Outlook per