Re: [gdal-dev] Throwing exceptions in GDAL Error Handler

2021-12-04 Thread Even Rouault
You shouldn't throw C++ exceptions, as this is a callback of the C API. This will cause all sort of issues, most of the time memory leaks, etc. Le 05/12/2021 à 00:49, Simon Eves a écrit : We have a custom Error Handler callback and for a while now it was configured to throw an exception if the

[gdal-dev] Throwing exceptions in GDAL Error Handler

2021-12-04 Thread Simon Eves
We have a custom Error Handler callback and for a while now it was configured to throw an exception if the class was Failure or higher. Unfortunately, we have found that this causes havoc with OpenEx() because the file management state is left bad (e.g. the anti-recursion stuff) and GDAL will beli

[gdal-dev] Custom geometric transformation

2021-12-04 Thread Denis Rykov
According to rasterio's documentation "reproject" is a geospatial-specific analog to SciPy’s geometric_transform

Re: [gdal-dev] Problem with TopoJSON in 3.4.0 c/w 3.2.2

2021-12-04 Thread Even Rouault
Fix queued in https://github.com/OSGeo/gdal/pull/4942 Le 04/12/2021 à 02:35, Simon Eves a écrit : I just tested our stuff against 3.4.0 and immediately hit a problem with one of our standard example files, which I thought was a GeoJSON, but it's actually a TopoJSON. 3.4.0 seems to report the