[gdal-dev] illegal axis orientation combination when re-projecting

Nick Cummins nickmcummins at icloud.com
Wed Sep 13 20:41:33 PDT 2017


Hey, I was able to solve by issue by compiling and installing GDAL from source with --with-static-proj4 set. Thanks for the help.


On Sep 13, 2017, at 09:58 AM, Nick Cummins <nickmcummins at icloud.com> wrote:


➜ ls -lah /usr/lib/ | grep -i libproj  
lrwxrwxrwx   1 root root    17 Sep 14  2016 libproj.so -> libproj.so.12.0.0
lrwxrwxrwx   1 root root    17 Sep 14  2016 libproj.so.12 -> libproj.so.12.0.0
-rwxr-xr-x   1 root root  423K Sep 14  2016 libproj.so.12.0.0

Also,
➜ ldd /usr/bin/ogr2ogr | grep -i proj
libproj.so.12 => /usr/lib/libproj.so.12 (0x00007fcbcfd92000)
➜ /usr/bin/ogr2ogr | grep -i spatial
libspatialite.so.7 => /usr/lib/libspatialite.so.7 (0x00007f20274ad000)
➜ ldd /usr/lib/libspatialite.so.7 | grep -i proj
libproj.so.12 => /usr/lib/libproj.so.12 (0x00007f7c7a032000)

➜ print $LD_LIBRARY_PATH
/usr/lib:/usr/lib32


On Sep 13, 2017, at 02:22 AM, Even Rouault <even.rouault at spatialys.com> wrote:



On mardi 12 septembre 2017 23:47:09 CEST Nick Cummins wrote:

> I am using Arch Linux (continuous/rolling distro), using gdal from the

> official repositories.

>

> Using proj. 4.9.3-1 from official repos.

> As mentioned, previously (within the past month) the first re-projection

> example was working fine. Suddenly today I was analyzing a different tile

> and ran into the error, and I have not made any changes to my setup that I

> am aware of that would change behavior. 

>

> Output of running ogr2ogr with valgrind in attached file.

 

It crashes in proj.4. But the lines mentionned are weird : pj_free (pj_init.c:496). At line 496 of pj_init.c, this is not the pj_free() function. Perhaps due to optimizations that mess up line reporting. I tried with proj 4.9.3 and it works fine for me.

 

I see from

https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gdal that archlinux doesn't build with GDAL with --with-static-proj4, so I'm wondering if there isn't a mix of proj.4 versions. Isn't there a chance that one of the dependencies of GDAL links against a libproj.so.X (spatialite could be a good candidate) and that GDAL then loads a libproj.so that is a symlink to libproj.so.Y

Can you check your /usr/lib/libproj.so* files ?

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170914/825026aa/attachment-0001.html>


More information about the gdal-dev mailing list