[gdal-dev] GDAL mailing list email delays

2025-05-29 Thread Daniel Evans via gdal-dev
Hi all, Over the last couple of months, I've been receiving emails from the gdal-dev list with a significant delay, with emails from threads sometimes arriving out of order. For example, in the recent thread on Java bindings, the email headers show the following; Tom's initial email was delayed

Re: [gdal-dev] CSharp bindings queued for removal (was Re: GDAL CSharp bindings maintainers/contributors listening... ?)

2025-01-31 Thread Daniel Evans via gdal-dev
> Middle ground: Make the download/installation of the SWIG bindings opt-in only. We could at least track the number of users who go to the trouble of downloading it. I suspect those numbers are already (mostly) there, as most users of the bindings likely don't download and compile GDAL themselves

Re: [gdal-dev] Issue with the STACIT usage examples

2024-11-21 Thread Daniel Evans via gdal-dev
Hi Jukka, Those are errors from your the Windows command prompt. You will need to escape or enclose some special characters like the ampersands. On Thu, 21 Nov 2024, 14:15 Rahkonen Jukka via gdal-dev, < gdal-dev@lists.osgeo.org> wrote: > Hi, > > > > The examples in https://gdal.org/en/latest/dr

Re: [gdal-dev] 2024 GDAL Users Survey

2024-10-30 Thread Daniel Evans via gdal-dev
Hi Howard, > To my eye, that means our respondent pool is strongly tilted toward power users and developers, as I would expect a much larger mix of Windows users. Where has the survey been announced? I've only seen it on this list, which is explicitly for "developers using and building GDAL/OGR"

Re: [gdal-dev] STACIT driver and iten collections and origin / pixel size

2024-09-11 Thread Daniel Evans via gdal-dev
And I'll highlight that the separate `geometry` and `bbox` fields in the STAC item do explicitly have to be projected in WGS84 (as required by the GeoJSON spec): https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#geometry (Although I suspect the original mistake was takin

Re: [gdal-dev] Ignore content-length in vsicurl?

2024-09-10 Thread Daniel Evans via gdal-dev
lly need >> to have the right file size, it will just check we don't try to read beyond >> at some points, so unlimited is OK. In other situations/drivers, the exact >> value could be needed. >> >> But they should really fix their servers >> >> Even >> >>

Re: [gdal-dev] Ignore content-length in vsicurl?

2024-09-10 Thread Daniel Evans via gdal-dev
CURL_USE_HEAD=[YES/NO]: > Defaults to YES. Controls whether to use a HEAD request when opening a > remote URL.” > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* gdal-dev *Puolesta *Daniel > Evans via gdal-dev > *Lähetetty:* tiistai 10. syyskuuta 2024 16.57 > *Vastaano

[gdal-dev] Ignore content-length in vsicurl?

2024-09-10 Thread Daniel Evans via gdal-dev
Hi all, I am attempting to read a dataset via /vsicurl/ where I believe the server is incorrectly returning `content-length: 0` in response to HEAD requests. This causes GDAL to believe it's a zero-length file, and it therefore can't be read. If I download the file via HTTP GET, it's valid, and G

Re: [gdal-dev] Extending GDAL Color Interpretation enumeration for infra-red bands (+ band wavelength) ?

2024-08-31 Thread Daniel Evans via gdal-dev
Hi Even, Firstly, I'll state my bias as someone involved in the production of thermal MWIR EO data (3.5-5um) - unsurprisingly, I'd like some classification that fits my data :-) > classifications... The NIR - SWIR - MWIR - LWIR classification scheme is by far the most common I've encountered in

Re: [gdal-dev] dealing with complex (a+ib) images

2024-07-27 Thread Daniel Evans via gdal-dev
I would presume that Javier is intending to use one of the several Complex data types that GDAL supports natively - CInt16, CInt32, CFloat32, CFloat64. It seems that VRTs appear to have the capability to create a complex band from two separate bands, and vice versa - the "complex", "imag", and "re

Re: [gdal-dev] Issues specifying PostGIS connection details - possibly related to special characters in passwords?

2024-07-02 Thread Daniel Evans via gdal-dev
the PG connection string… > > Best regards, > > Robin > > On 2 July 2024 at 17:08:18, Daniel Evans (daniel.fred.ev...@gmail.com) > wrote: > > Hi Robin, > > Is this a shell issue, rather than a GDAL one? The dollar sign makes me > suspect that a Unix shell is inte

Re: [gdal-dev] Issues specifying PostGIS connection details - possibly related to special characters in passwords?

2024-07-02 Thread Daniel Evans via gdal-dev
Hi Robin, Is this a shell issue, rather than a GDAL one? The dollar sign makes me suspect that a Unix shell is interpreting "robin$42" as "the string 'robin' and the value of variable $42" before it gets into GDAL. My terminal would interpret it as the following: $ echo robin$42 robin and I'd nee

Re: [gdal-dev] gdalwarp with RPCs causing bogus output

2024-04-22 Thread Daniel Evans via gdal-dev
; .80...90...100 - done. > GDAL: GDALClose(srtm_12_05.tif, this=0x5584b5c522a0) > GDAL: Flushing dirty blocks: > 0...10...20...30...40...50...60...70...80...90...100 - done. > GDAL: GDALClose(output_gdal38.tiff, this=0x5584b5c4c950) > GDAL: GDALClose(../manyPts4000_SRTM_test_NptRPC.tiff, th

Re: [gdal-dev] Question on building multi band composite and going back to RGB GeoTiff

2024-04-22 Thread Daniel Evans via gdal-dev
Hi Nathan, My initial suspicion might just be that the scaling the data provider did to go from the raw data to a human-eye-friendly RGB composite isn't the conversion you're assuming. I know that with the data I regularly work with, it may be provided as Uint16, but the data range doesn't extend

Re: [gdal-dev] gdalwarp with RPCs causing bogus output

2024-04-18 Thread Daniel Evans via gdal-dev
ts. What command did you use to include the DEM? > > If there has been a fix between 3.6 and 3.8.3 that helps with this, then > I'm happy to try it. I'll give that a look too. > > thanks! > Joe > -- > *From:* Daniel Evans > *Sent:* Th

Re: [gdal-dev] gdalwarp with RPCs causing bogus output

2024-04-18 Thread Daniel Evans via gdal-dev
Hi Joe, Trying your commands with GDAL 3.8.3, the results don't seem to be as bad as what you're reporting - I don't see big strips missing. Adding in the DEM file as Even mentioned, it seems to be doing what I'd expect (the correction isn't "right" because of the georeferencing offset, but it's d

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] Requiring numpy for the Python bindings

2023-12-04 Thread Daniel Evans via gdal-dev
Agree with Kurt - it's always struck me as a little surprising that it was optional. There's also not very much of a Python stack you can build that involves GDAL but doesn't pull in Numpy through another dependency, as Even said. I would've thought that in any constrained environment where GDAL i

Re: [gdal-dev] Performance regression testing/benchmarking for CI

2023-10-10 Thread Daniel Evans via gdal-dev
Hi Even, > With virtualization, it is hard to guarantee that other things happening on the host running the VM might not interfer. Even locally on my own machine, I initially saw strong variations in timings The advice I've come across for benchmarking is to use the minimum time from the set of r

Re: [gdal-dev] Removal of Python SWIG python generated files from git

2023-03-09 Thread Daniel Evans
Hi Even, This sounds a sensible change, for the reasons outlined in your first paragraph. When first making contributions, I think I was caught out by this arrangement in just about all of the ways you mention! To play devil's advocate, were there any (perceived) benefits to this arrangement when

Re: [gdal-dev] More consistent use of pytest's parameterization in autotests

2023-02-20 Thread Daniel Evans
> Additionally, these loops fix the order that the checks are made, and bugs > can hide in test order dependency. As we're on the topic of pytest, I'll mention fixtures as a handy feature for test setup: https://docs.pytest.org/en/6.2.x/fixture.html I discovered a while back that some parts of t

Re: [gdal-dev] help with (docker) build workflow

2023-02-19 Thread Daniel Evans
Hi Michael, The idea of a two-image build like this is explicitly to create a Runner without all the compile dependencies, reducing the amount of baggage that users of the Docker image end up having. That's why it doesn't copy over all the dependencies for compilation, as you note! One of the down

Re: [gdal-dev] Advanced 3.6.1 release and retraction of 3.6.0 ?

2022-12-15 Thread Daniel Evans
Similar thoughts here, too. Thinking particularly of the Docker image, the main use case for them is ensuring a reproducible build on the user's side. Those using the `latest` tag (indicating they're not so bothered about versions) will start building with 3.6.1 automatically anyway. Those who have

Re: [gdal-dev] get data from one s3 bucket, process and upload to another bucket as docker container

2022-11-29 Thread Daniel Evans
Hi Marcin, For writing the data to an S3 bucket, two options come to mind: 1) Write directly from GDAL, using the /vsis3/ virtual file system 2) Write the data locally from GDAL, and then copy to S3 using another Python library (e.g. boto3, s3fs) or the AWS CLI Option 2 is quite widely adopted.

Re: [gdal-dev] Why does an old Python code using /vsicurl?[options] syntax yield HTTP 404 now?

2022-10-10 Thread Daniel Evans
(To follow my own advice, I've tried with a fresh environment with GDAL 3.4.1 and Python 3.9!) On Mon, 10 Oct 2022 at 09:02, Daniel Evans wrote: > Hi Jukka, > > Can you, or the original poster, give some more information on what Python > and GDAL versions you're using th

Re: [gdal-dev] Why does an old Python code using /vsicurl?[options] syntax yield HTTP 404 now?

2022-10-10 Thread Daniel Evans
Hi Jukka, Can you, or the original poster, give some more information on what Python and GDAL versions you're using that cause trouble? I've not immediately hit 404 errors on trying - with CPL_DEBUG=ON, I can see GDAL successfully opening tiles (HTTP 206). With something like 13,000 tiles in a si

Re: [gdal-dev] Reading shapefile from ZIP archive (c++)

2022-09-06 Thread Daniel Evans
the zip file or do I use > some other tool for that? > > On Tue, Sep 6, 2022 at 10:50 AM Daniel Evans > wrote: > >> Hi Sharon, >> >> I think all you need to do is define the path to open as: >> >> '/vsizip//parks-and-recreation-feature-map-d.zip/

Re: [gdal-dev] Reading shapefile from ZIP archive (c++)

2022-09-06 Thread Daniel Evans
Hi Sharon, I think all you need to do is define the path to open as: '/vsizip//parks-and-recreation-feature-map-d.zip/parks-and-recreation-feature-map/parks-and-recreation-feature-map.shp' i.e. defining the filepath as: /vsizip// When the zip contains only a single (shape)file at the top level

Re: [gdal-dev] cURL response content output

2022-07-12 Thread Daniel Evans
on my end meant the DEBUG log messages were being discarded when I thought they weren't. Regards, Daniel On Wed, 6 Jul 2022 at 18:55, Even Rouault wrote: > Daniel, > > https://github.com/OSGeo/gdal/pull/6028 should help, but with the > restriction indicated in the commit message

[gdal-dev] cURL response content output

2022-07-06 Thread Daniel Evans
Hi, I'm trying to diagnose some issues with accessing remote datasets in GDAL - I believe the problem is unrelated to GDAL itself, but it's proving hard to debug. By enabling CPL_CURL_VERBOSE, I can see that the server is kicking back a 400 Bad Request status, but the debug output doesn't include

Re: [gdal-dev] gdal -ASLR compliance (SSP, RELRO)

2022-05-11 Thread Daniel Evans
Hi Kavitha, I doubt the answer has changed since your last email to the list on the topic (on 8 April). The answer was that you should be able to enable these compiler features when compiling from source yourself, as well as a report that GDAL has been known to compile successfully with SSP. If y

Re: [gdal-dev] Errors when reading large xlsx files

2022-03-29 Thread Daniel Evans
x files > is not an option because there are many and they are supplied by clients > and regularly updated. > > Regards, > Dirk > > On Tue, Mar 29, 2022 at 10:06 AM Daniel Evans > wrote: > >> Hi Dirk, >> >> > I do notice when I open the file in exce

Re: [gdal-dev] Errors when reading large xlsx files

2022-03-29 Thread Daniel Evans
Hi Dirk, > I do notice when I open the file in excel and select everything, the eight column in the file is empty but also gets selected. It looks like that's the key here. The code you identified gets hit if GDAL encounters a row with more populated columns than the previous one, and if the pro

Re: [gdal-dev] Enabling default compression for COG ?

2021-09-30 Thread Daniel Evans
Another +1 here. As far as I understand, the only real point of the COG driver is to be a quick way to get some sensible defaults for GeoTIFF format, and compression is definitely one such sensible default. Also, the COG spec's example GDAL command includes `-co COMPRESS=LZW`, which might be anoth

Re: [gdal-dev] TypeError Wrong number or type of arguments for overloaded function 'CoordinateTransformation_TransformPoint'.

2021-06-16 Thread Daniel Evans
I'll leave suggestions on diagnosing and fixing PROJ DLL/Databases to others - I've little knowledge on the matter, especially in regards to Conda and Windows. There might be something to Paul's points about the packages coming from different channels; I believe this can cause trouble with Conda

Re: [gdal-dev] TypeError Wrong number or type of arguments for overloaded function 'CoordinateTransformation_TransformPoint'.

2021-06-16 Thread Daniel Evans
ouble,double,double) OSRCoordinateTransformationShadow::TransformPoint(double [4],double,double,double,double) (I suspect the error might originate from SWIG being unable to match the call for a None/null object, rather than a CoordinateTransform?) Dr Daniel Evans Software Developer e: daniel.ev

Re: [gdal-dev] TypeError Wrong number or type of arguments for overloaded function 'CoordinateTransformation_TransformPoint'.

2021-06-16 Thread Daniel Evans
amp;argout[2] ); } https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/extensions/osr_wrap.cpp#L4422 I’ll admit none of that particularly helps solve the issue beyond saying “I think it should work”, though! Dr Daniel Evans Software Developer e: daniel.ev...@jbarisk.com t: +44 (0

[gdal-dev] Should AddPoint(x, y) promote geometries to 3D?

2021-05-07 Thread Daniel Evans
to always use AddPoint_2D when dealing with 2D geometries? Dr Daniel Evans Software Developer e: daniel.ev...@jbarisk.com t: +44 (0)1756 799919 www.jbarisk.com All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named. If

Re: [gdal-dev] "New" style import

2021-04-07 Thread Daniel Evans
/gdal/tree/release/3.1/gdal/swig/python (Alternatively, I’d argue it wouldn’t be too hard to do some global search and replace for “import gdal”->”from osgeo import gdal”, using your IDE or some command line tools, but I presume you’re not tempted by that idea!) Dr Daniel Evans Software

Re: [gdal-dev] Motion: RFC 78: gdal-utils package

2021-03-25 Thread Daniel Evans
it compared to the pre-compiled packages from other sources. Will those changes affect those distributions, too?) Dr Daniel Evans Software Developer e: daniel.ev...@jbarisk.com t: +44 (0)1756 799919 www.jbarisk.com All JBA Risk Management's email messages contain confidential informatio

Re: [gdal-dev] ZSTD compression level 17 smaller than 18+?

2021-03-15 Thread Daniel Evans
-6.37% 13 3355401 -6.36% 14 3354678 -6.34% 15 3353801 -6.31% 16 3083731 2.25% 17 3142331 0.39% 18 3147466 0.23% 19 3146084 0.28% 20 3146548 0.26% 21 3145580 0.29% 22 3142972 0.37% Table generated from output of `zstd -b1 -e22`, “zstd command line interface 64-bits v1.4.7”. Dr Daniel Evans

[gdal-dev] Displaying the transform behind a CoordinateTransformation object

2021-01-06 Thread Daniel Evans
27;t choose the transform our users want automatically. I've not been able to answer their queries regarding what transformation GDAL has chosen when we create a CoordinateTransformation object. Dr Daniel Evans Software Developer [JBA COVID-19 statement]<https://www.jbagroup.co.uk/sites/www.jbagro

[gdal-dev] Should a custom error handler (in Python) clear the last error?

2020-11-27 Thread Daniel Evans
tml#afda4d86428c1c533449ae6a69cdf430d Is the error message being cleared incorrectly? Dr Daniel Evans Software Developer [JBA COVID-19 statement]<https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf

Re: [gdal-dev] GDAL Warp - NUM_THREADS=ALL_CPUS detrimental?

2020-10-06 Thread Daniel Evans
Thanks Even. From a bit of testing, I can see the time scaling linearly with the requested number of threads despite inputting only 9 pixels, so I suspect that feature is newer than 3.0.4. I'll have a look in the changelogs and keep it in mind. Dr Daniel Evans Software Developer From:

Re: [gdal-dev] GDAL Warp - NUM_THREADS=ALL_CPUS detrimental?

2020-10-06 Thread Daniel Evans
s, even if it won't find work for them. It's therefore up to the user (me!) to measure and work out where the best performance comes from - and blindly throwing in NUM_THREADS=ALL_CPUS is not always a good tactic. Dr Daniel Evans Software Developer From: Daniel Evans Sent: 06 October

[gdal-dev] GDAL Warp - NUM_THREADS=ALL_CPUS detrimental?

2020-10-06 Thread Daniel Evans
GDAL 3.0.4) Dr Daniel Evans Software Developer [JBA COVID-19 statement]<https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf> T +44 (0) 1756 799919 www.jbarisk.com<http://www.jbarisk.com> [V

Re: [gdal-dev] Segmentation fault on BuildOverviews

2020-06-08 Thread Daniel Evans
e spotted a few similar examples before - usually typos that went unnoticed for a long time, but a few cases like this. Dr Daniel Evans Software Developer From: gdal-dev On Behalf Of Jon Morris Sent: 08 June 2020 11:00 To: Even Rouault ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Segmen

Re: [gdal-dev] GDAL 3.1.0 RC1 available

2020-04-28 Thread Daniel Evans
Thanks Even. Apparently I managed to reply to Even directly, not to the mailing list, which I've now copied back in. From: Even Rouault Sent: 28 April 2020 12:53 To: Daniel Evans Subject: Re: [gdal-dev] GDAL 3.1.0 RC1 available Daniel, issue confirmed. Spotted to https://githu

Re: [gdal-dev] Need some help understanding why this raster is so big

2020-03-13 Thread Daniel Evans
Given the filesize of the original raster, I suspect it’s mostly empty, and so I’d suggest also specifying: -co “SPARSE_OK=TRUE” That instructs GDAL to avoid writing any data at all where the entirety of a tile is nodata, rather than writing a (compressed) block of nodata values. However, the

Re: [gdal-dev] Importing ESRI (EPSG?) 102008 in GDAL 3.x/PROJ 6

2020-03-05 Thread Daniel Evans
iner I was hoping for. Thanks! Dr. Daniel Evans Software Developer -Original Message- From: Even Rouault Sent: 05 March 2020 16:01 To: gdal-dev@lists.osgeo.org Cc: Daniel Evans Subject: Re: [gdal-dev] Importing ESRI (EPSG?) 102008 in GDAL 3.x/PROJ 6 Daniel, > While upgrading some

[gdal-dev] Importing ESRI (EPSG?) 102008 in GDAL 3.x/PROJ 6

2020-03-05 Thread Daniel Evans
story of the custom fork of GDAL we're moving away from isn't well documented) Dr. Daniel Evans Software Developer Skype T +44 (0) 1756 799919 www.jbarisk.com<http://www.jbarisk.com> [Visit our website]<http://www.jbarisk.com> [http://www.jbagroup.co.uk/imgstore/JBA-Ema

Re: [gdal-dev] WGS84 -> WGS84 transform flips axes

2020-02-06 Thread Daniel Evans
riginal Message- From: gdal-dev On Behalf Of Mateusz Loskot Sent: 06 February 2020 12:28 To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] WGS84 -> WGS84 transform flips axes On Thu, 6 Feb 2020 at 13:20, Daniel Evans wrote: > > > Try https://gdal.org/tutorials/osr_api_tut.html#crs-an

Re: [gdal-dev] WGS84 -> WGS84 transform flips axes

2020-02-06 Thread Daniel Evans
ing on how an SRS has been used. Dr. Daniel Evans Software Developer Skype T +44 (0) 1756 799919 www.jbarisk.com<http://www.jbarisk.com> [Visit our website]<http://www.jbarisk.com> [http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-LINKEDIN.png] <> [Follow us on Tw

Re: [gdal-dev] WGS84 -> WGS84 transform flips axes

2020-02-06 Thread Daniel Evans
hange to this value in this circumstance intentional? If so, does it mean that I have to repeatedly enforce the axis mapping strategy, because I don't know whether it will have been modified or not, depending on the provenance of the SRS object? Dr. Daniel Evans Software Developer Sk

Re: [gdal-dev] WGS84 -> WGS84 transform flips axes

2020-02-06 Thread Daniel Evans
=ogr.wkbPolygon) projFromLayer = layer.GetSpatialRef() xform = osr.CoordinateTransformation(projection, projFromLayer) xform.TransformPoint(1.0, 0.0) # Outputs (0.0, 1.0, 0.0) xform_no_layer = osr.CoordinateTransformation(projection, projection) xform_no_layer.TransformPoint(1.0, 0.0) # Outputs (1.0

[gdal-dev] WGS84 -> WGS84 transform flips axes

2020-02-06 Thread Daniel Evans
imported = osr.SpatialReference(); >>> from_proj_reimported.ImportFromWkt(from_proj.ExportToWkt()) >>> to_proj_reimported = osr.SpatialReference(); >>> to_proj_reimported.ImportFromWkt(to_proj.ExportToWkt()) >>> new_xform = osr.CoordinateTransformation(from_proj_

Re: [gdal-dev] GDAL_FORCE_CACHING - alters results?

2020-01-28 Thread Daniel Evans
aniel -Original Message- From: Even Rouault Sent: 28 January 2020 12:03 To: gdal-dev@lists.osgeo.org Cc: Daniel Evans Subject: Re: [gdal-dev] GDAL_FORCE_CACHING - alters results? On mardi 28 janvier 2020 11:49:01 CET Daniel Evans wrote: > Hi all, > > I've recently tried enabling the

[gdal-dev] GDAL_FORCE_CACHING - alters results?

2020-01-28 Thread Daniel Evans
Hi all, I've recently tried enabling the GDAL_FORCE_CACHING option, and found it gives some significant improvements to TIFF/VRT read speeds. However, using GDAL 2.3.0, I've now found that when reading large VRTs, I can sometimes get subtly different values - up to about 1% summed difference ac

[gdal-dev] Querying many raster pixels efficiently from Python

2020-01-23 Thread Daniel Evans
ay to optimise GDAL so that queries of files on the mounted network storage are more efficient? Dr. Daniel Evans Software Developer Skype T +44 (0) 1756 799919 www.jbarisk.com<http://www.jbarisk.com> [Visit our website]<http://www.jbarisk.com> [http://www.jbagroup.co.uk/imgstore/JB

[gdal-dev] Add source no-data masking to proximity computation

2015-03-17 Thread Daniel Evans
Hello, I recently submitted a pull request against GDAL that adds an option that causes GDALComputeProximity to take into account areas of no data within the input raster and updates gdal_proximity.py with a -use_nodata flag. This pull request is here https://github.com/OSGeo/gdal/pull/49 Is this