[gdal-dev] Building on windows

2024-03-06 Thread Mübin İçyer via gdal-dev
Hi, I want to build GDAL on Windows with Visual Studio 17 2022, but I couldn't. I tried to install all necessary packets with conda but I receive a lot of errors. Is there any new tutorial that shows how to build on windows with current and new packets? Thanks. Regards __

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Andrew C Aitchison via gdal-dev
On Wed, 6 Mar 2024, Daniel Evans via gdal-dev wrote: Is it worth moving this in-depth discussion to a PR or similar for the new driver? My thinking is that a lengthy discussion on memory leak detection techniques in C++, how to run tests in Python, etc., aren't topics relevant to most GDAL mail

[gdal-dev] gdal_translate -expand rgba behaving incorrectly, pct2rgb.py working correctly on a tif

2024-03-06 Thread B H via gdal-dev
Hi, I am processing a bunch of tifs where the gdal_translate and pct2rgb.py seem to be behaving differently. Is it a bug in gdal_translate, or I need to pass some options to get correct behavior. gdal_translate -expand rgba a.tif gdalbad.tif # This produces a tif file with _incorrect_ colors. p

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Daniel Evans via gdal-dev
Is it worth moving this in-depth discussion to a PR or similar for the new driver? My thinking is that a lengthy discussion on memory leak detection techniques in C++, how to run tests in Python, etc., aren't topics relevant to most GDAL mailing list subscribers. Cheers, Daniel On Wed, 6 Mar 202

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
I was using ubuntu 20.04 and it doesn’t work there. Trying to install 22.04 but I have some issues (again). De: Even Rouault Enviado el: dimecres, 6 de març de 2024 17:12 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver PYTHONMALLOC=malloc gdb --args python

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Even Rouault via gdal-dev
PYTHONMALLOC=malloc gdb --args python3 -m pytest autotest/ogr/ogr_miramon_vector.py PYTHONMALLOC=malloc valgrind python3 -m pytest autotest/ogr/ogr_miramon_vector.py Le 06/03/2024 à 16:02, Abel Pau via gdal-dev a écrit : Hi again, anyone have any advice for debuging into python code? I am

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
Hi, It seems nothing changes. I understand that the environment is new and the execution is not related with the last one. Here there are 5 tests that fail.. Any idea of what can be happening? They are very unrelated Bye VSIMkdirRecursive() · AbelPau/gdal@646b98b (github.com)

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
Hi again, anyone have any advice for debuging into python code? I am using Pdb but it’s a little confusing. Any experience? Thanks apau@ABEL2:/mnt/d/GitHub-repository/gdal/build$ pytest autotest/ogr/ogr_miramon_vector.py Test session starts (platform: linux, Python 3.8.10, pytest 8.0.2, pytest-s

Re: [gdal-dev] GDAL_ENABLE_DRIVER_PDF

2024-03-06 Thread Johannes Paul via gdal-dev
Thanks for your answer Even, lcms2 was indeed a missing piece, it allowed me to get GDAL configured but the build failed with a missing header: *fatal error: core/fpdfapi/page/cpdf_page.h: No such file or directory* I finally used your pre-built binaries from https://github.com/rouault/pdfium_buil

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
About the question: . Does "pytest autotest/ogr/ogr_basic_test.py" work?* The answer is YES. ogr/ogr_basic_test.py ✓✓

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
Ok, I ‘ve changed that. Let’s see if it’s the problem. It’s all so delicate :) Thanks again! De: Even Rouault Enviado el: dimecres, 6 de març de 2024 13:36 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver Le 06/03/2024 à 13:14, Abel Pau a écrit : Hi Even, I f

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Even Rouault via gdal-dev
Le 06/03/2024 à 13:14, Abel Pau a écrit : Hi Even, I finally discovered the error. It was the fixture. In the wrong place. Now I’m creating the test. I hope finish it soon. On the other hand, in my actions tab: Merge branch 'OSGeo:master' into master · AbelPau/gdal@0249b6d (github.com) <

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
Hi Even, I finally discovered the error. It was the fixture. In the wrong place. Now I’m creating the test. I hope finish it soon. On the other hand, in my actions tab: Merge branch 'OSGeo:master' into master · AbelPau/gdal@0249b6d (github.com)

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Even Rouault via gdal-dev
Hi, I don't see anything wrong. I've tried that on my native Linux build and the test_ogr_miramon_vector_1() is found. Does "pytest autotest/ogr/ogr_basic_test.py" work?* Note: you don't need the try / except in your test case unless you'd need to some particular cleanup, but that's not the

Re: [gdal-dev] GDAL_ENABLE_DRIVER_PDF

2024-03-06 Thread Even Rouault via gdal-dev
Hi, I suspect that the error comes from the fact that one of several of the other dependencies required by pdfium are not found: JPEG, PNG, OpenJPEG, lcms2 Even Le 06/03/2024 à 11:00, Johannes Paul via gdal-dev a écrit : Hello, I have compiled PDFium from https://github.com/rouault/pdfium

[gdal-dev] GDAL_ENABLE_DRIVER_PDF

2024-03-06 Thread Johannes Paul via gdal-dev
Hello, I have compiled PDFium from https://github.com/rouault/pdfium/tree/master and I'm trying to get GDAL 3.8.4 built with this geospatial PDF driver on Almalinux 8. However if I use cmake with the following variables : *-DGDAL_USE_PDFIUM=ON -DGDAL_ENABLE_DRIVER_PDF=ON -DPDFIUM_INCLUDE_DIR="${I

Re: [gdal-dev] Segmentation fault (core dumped) occurs when running ogr2ogr command on container

2024-03-06 Thread Abel Pau via gdal-dev
Hi, I reduced the amount of memory requested. I could do that because I am developing the driver that failed. After my mail I discovered another error, so, perhaps, this was the real cause. 4Mb it’s so small, so I is not the cause... Perhaps you can add --config CPL_DEBUG ON at your command lin