[gdal-dev] gdal2xyz

2024-06-11 Thread Andrew Bell via gdal-dev
Hi, The documentation describes an application `gdal2xyz`, but I don't see one built in my development environment. I also don't see anything in the CMakeLists.txt that refers to it. Is it named something I'm not expecting? Does it still exist? Thanks, -- Andrew Bell andrew.bell...@gmail.com

[gdal-dev] pre-commit hook failure

2024-06-07 Thread Andrew Bell via gdal-dev
Hi, I'm getting an error when flake8 runs as a pre-commit hook and it won't allow me to commit code. My understanding was that the pre-commit stuff was supposed to make sure the proper versions were found. Ideas? (gdal) [viewshed-oor] $ git commit

[gdal-dev] get_cli_utility_path_internal

2024-06-06 Thread Andrew Bell via gdal-dev
The function in the subject returns a path to a utility on which to run a test. But in the process, it tries to run the utility itself. This seems strange. In my case, the test itself failed, but the code reported "Could not find {file}", which is incorrect. It also causes the actual tests to get

Re: [gdal-dev] Thread-safe raster access

2024-06-05 Thread Andrew Bell via gdal-dev
VSILFILE* and third-party "reader" objects could be a way of solving > this. But realistically doing a pass in all GDAL drivers would be a > multi-month-man to multi-year-man type of effort. A realistic plan should > be designed to allow combining (1) and (2): (2) for a few select drivers,

[gdal-dev] Thread-safe raster access

2024-06-03 Thread Andrew Bell via gdal-dev
Hi, I am aware that there isn't thread-safe raster access with the current GDAL interface for various reasons. Given the state of processors, I was wondering if it would be valuable to take a look at providing the ability to do Raster I/O (at least reads) in a thread-safe way. This could be done

[gdal-dev] Threading and Datasets

2024-05-22 Thread Andrew Bell via gdal-dev
Hi, Are there any issues with opening the same input multiple times as distinct datasets so that simultaneous read access can be done by threads? Thanks, -- Andrew Bell andrew.bell...@gmail.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

[gdal-dev] Data Type Conversion

2024-05-20 Thread Andrew Bell via gdal-dev
Hi, The documentation for GDALRasterBand::RasterIO says that it will convert data from the source data type to the destination data type. I searched the source code a bit I'm not sure I located the bit that does this conversion. I'm trying to understand what happens in this conversion process. Is

Re: [gdal-dev] Doxygen Arguments

2024-05-09 Thread Andrew Bell via gdal-dev
, the parameters were still missing. Updating > to Doxygen 1.9.8 as now used by our CI fixed things) > > Even > Le 09/05/2024 à 15:20, Andrew Bell via gdal-dev a écrit : > > Hi, > > I'm looking at the documentation for GDALRasterBand::RasterIO and it's > surprising that the

[gdal-dev] Doxygen Arguments

2024-05-09 Thread Andrew Bell via gdal-dev
Hi, I'm looking at the documentation for GDALRasterBand::RasterIO and it's surprising that the names of the arguments aren't included in the function prototype despite them being in the doxygen function definition. The arguments are described well below the function prototype, making it hard to

[gdal-dev] Warning/Error Update?

2024-05-08 Thread Andrew Bell via gdal-dev
Hi, I don't know the history but I'm getting failures from warnings like this: [ 75%] Building CXX object frmts/raw/CMakeFiles/gdal_raw.dir/dipxdataset.cpp.obj 1169In file included from ../../alg/viewshed.cpp:36: 1170../../alg/viewshed.h: In constructor 'gdal::Viewshed::Viewshed(const

[gdal-dev] Mass operations to raster block?

2024-05-06 Thread Andrew Bell via gdal-dev
Hi, Is there any support in the library for applying some arithmetic operations to all entries in a block? For example, can I optimally subtract or add some scalar to every entry? Thanks, -- Andrew Bell andrew.bell...@gmail.com ___ gdal-dev mailing

Re: [gdal-dev] Test problem After Merge

2024-04-30 Thread Andrew Bell via gdal-dev
On Tue, Apr 30, 2024 at 9:18 AM Even Rouault wrote: Even, > Also try in a Python interpreter "from osgeo import gdal" to see if the > exception is more verbose. If your GDAL lib links against libraries that > are not in the default library search path, GDAL command line utilities > might still

Re: [gdal-dev] Test problem After Merge

2024-04-30 Thread Andrew Bell via gdal-dev
Hi all, I removed all files from the build and started over, building using the same procedure that I used with the source from a couple of weeks ago without problem and now I get the following error: (gdal) [master] $ pytest -v autotest/utilities/test_gdal_viewshed.py ImportError while loading

[gdal-dev] Test problem After Merge

2024-04-29 Thread Andrew Bell via gdal-dev
Hi, I just merged master into my branch and I'm now getting an error when trying to run a test. If someone might know what happened, I'd appreciate a tip. (gdal) [master] $ pytest -v autotest/utilities/test_gdal_viewshed.py ImportError while loading conftest

[gdal-dev] Hungarian Notation

2024-04-17 Thread Andrew Bell via gdal-dev
Hi, I was going to make some changes to some GDAL code and I generally want to follow along. I see that most of the code is still using Hungarian notation for identifier names. I haven't seen this anywhere else in like 20 years. Is it OK to submit code without this naming convention or do we