Re: [gdal-dev] Any way to get an autocompletion for ogr/gdal utilities?

2022-02-04 Thread Thomas Gratier
Hi Markus, Thanks for your answer. I'm on Linux box rather old e.g Ubuntu 18.04. My shell is bash. I do not find any files for autocompletion within /usr/share/bash-completion/ related to ogr2ogr or any other GDAL binaries or elsewhere. I've also tried to see the behaviour using gdal within conda

Re: [gdal-dev] Access violation OGRSpatialReference.importFromESRI() in GDAL304.dll

2022-02-04 Thread Paul Meems
Thanks Even, That solved the problem. I've read the manual several times today but overlooked that the parameter should be a list. Our code hasn't changed for years so this bug was unnoticed for a very long time ;) Regards, Paul Op vr 4 feb. 2022 om 16:56 schreef Even Rouault : > RTF(antasti

Re: [gdal-dev] Access violation OGRSpatialReference.importFromESRI() in GDAL304.dll

2022-02-04 Thread Even Rouault
RTF(antastic)M :-) ==> https://gdal.org/doxygen/classOGRSpatialReference.html#af91af2639702e2793daf93ffe231b577 : Parameters papszPrj NULL terminated list of strings containing the definition. So change your code to something like:   char apszPrj[2];   char* s = proj.GetBuffer();   a

[gdal-dev] Access violation OGRSpatialReference.importFromESRI() in GDAL304.dll

2022-02-04 Thread Paul Meems
Hi List, We use GDAL v3+ in our Open Source mapping application MapWinGIS. We build using VS2019 on Windows and we use the files from GisInternals. We have a GeoProjection class which in turn calls some/most OGRSpatialReference methods. When calling OGRSpatialReference.importFromESRI() compiled f