[GRASS-dev] GDAL,GRASS 7 and PostGIS on Ubunutu 12.04

Markus Neteler neteler at osgeo.org
Wed Dec 11 06:18:24 PST 2013


On Wed, Dec 11, 2013 at 12:26 PM, Blumentrath, Stefan
<Stefan.Blumentrath at nina.no> wrote:
> Dear all,
>
> Do not know if this post belongs here or to PostGIS:
> I compiled GDAL (rev 26701) with support for GRASS 7 (not the plugin but recompiled GDAL with GRASS support after building GRASS 7 from source (rev 58438)).

I don't think that GDAL is already compliant with GRASS 7:
See http://trac.osgeo.org/gdal/ticket/2953


> /usr/local/grass-7.0.svn/lib
> /usr/local/grass-6.4.4svn/lib
> In /etc/ld.so.conf (in that order).

I guess the order should be reverse.

> gdal_translate gives a warning message:
>
> Warning 1: GRASS warning: GISBASE enviroment variable was not set, using:
> /usr/local/grass-7.0.svn
>
> However, it takes GRASS raster gladly, so that works.

... for me surprising :-)

> Then I build PostGIS 2.1.2 against the compiled GDAL version with GRASS support.
> Unfortunately raster2pgsql gives error messages when I try to feed GRASS raster:
> "Segmentation fault (core dumped)"
>
> After I removed the link to GRASS 6.4.4svn/lib in /etc/ld.so.conf the errormessage changes to:
> ERROR 1: libgrass_I.so: cannot open shared object file: No such file or directory
> *** glibc detected *** raster2pgsql: corrupted double-linked list: 0x00000000012e59f0 ***
>
> Any Ideas?

IMHO the GDAL ticket should be fixed.

Best
Markus


More information about the grass-dev mailing list