<div dir="ltr"><div><div>Even,<br><br>On Sun, Apr 15, 2018 at 8:17 PM, Even Rouault &lt;<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>&gt; wrote:<br>&gt;<br>&gt; Markus,<br>&gt;<br>&gt; From a quick test generating a GeoTIFF in EPSG:25832, I can&#39;t reproduce.<br>&gt;<br>&gt; I suspect you may link at runtime against different proj versions.<br><br></div>You are right. I compiled GDAL with<br><br>libproj.so -&gt; libproj.so.13.0.1<br></div><div>there is no other libproj.so on my system<br></div><div><br></div>but gdal links against libproj.so.12<br><div><div><br>&gt; How did you<br>&gt; build GDAL ? I&#39;d strongly recommend you use --with-static-proj4 (whose name is<br>&gt; a bit misleading since it can actually link against a libproj.so), and then<br>&gt; check with &quot;ldd libgdal.so&quot; that you link against a single libproj.<br><br></div><div>OK, I recompiled gdal-2.2.4 --with-static-proj4 and got<br><br>ldd libgdal.so | grep proj<br>    libproj.so.13 =&gt; /usr/local/lib64/libproj.so.13 (0x00007fe2ff181000)<br>    libproj.so.12 =&gt; /lib64/libproj.so.12 (0x00007fe2f31c7000)<br>???<br></div><div><br></div><div>gdalinfo now runs fine and produces expected results.<br><br></div><div>I&#39;m still concerned about the output of ldd libgdal.so<br><br></div><div>Markus M<br></div><div>&gt;<br>&gt; Even<br>&gt;<br>&gt; &gt; I observed a segfault in gdalinfo (2.2.3, 2.2.4, 2.3.0dev-71e2ada881) when<br>&gt; &gt; compiled against proj-5.0.0/proj-5.0.1<br>&gt; &gt;<br>&gt; &gt; The dataset is a GeoTIFF with EPSG:25832, and I get<br>&gt; &gt;<br>&gt; &gt; Corner Coordinates:<br>&gt; &gt; ERROR 1: illegal axis orientation combination<br>&gt; &gt; Upper Left  (  375000.000, 5631000.000)<br>&gt; &gt; ERROR 1: illegal axis orientation combination<br>&gt; &gt; Lower Left  (  375000.000, 5628000.000)<br>&gt; &gt; ERROR 1: illegal axis orientation combination<br>&gt; &gt; Upper Right (  379000.000, 5631000.000)<br>&gt; &gt; ERROR 1: illegal axis orientation combination<br>&gt; &gt; Lower Right (  379000.000, 5628000.000)<br>&gt; &gt; ERROR 1: illegal axis orientation combination<br>&gt; &gt; Center      (  377000.000, 5629500.000)<br>&gt; &gt; Segmentation fault (core dumped)<br>&gt; &gt;<br>&gt; &gt; The error message is printed by GDAL and comes from PROJ. I think the<br>&gt; &gt; segfault is a symptom of the error, therefore I would like to find out the<br>&gt; &gt; reason of the error.<br>&gt; &gt;<br>&gt; &gt; Using gdal-2.2+ with proj-4.9.3, all is fine.<br>&gt; &gt;<br>&gt; &gt; Testing proj-5.0.1 with<br>&gt; &gt;<br>&gt; &gt; cs2cs +proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m<br>&gt; &gt; +no_defs +to +proj=latlong +ellps=GRS80<br>&gt; &gt;<br>&gt; &gt; proj -I +proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m<br>&gt; &gt; +no_defs<br>&gt; &gt;<br>&gt; &gt; cct +proj=pipeline +step +inv +proj=utm +zone=32 +ellps=GRS80<br>&gt; &gt; +towgs84=0,0,0,0,0,0,0 +units=m +no_defs<br>&gt; &gt;<br>&gt; &gt; all is fine, too.<br>&gt; &gt;<br>&gt; &gt; Is this a bug in (the old API still available with) proj-5.0.x or a bug in<br>&gt; &gt; gdal-2.2+?<br>&gt; &gt; Any hints where and how to dig deeper?<br>&gt; &gt;<br>&gt; &gt; Markus M<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Spatialys - Geospatial professional services<br>&gt; <a href="http://www.spatialys.com">http://www.spatialys.com</a><br><br></div></div></div>