[GRASS-dev] gdal-grass plugin or support in gdal for GRASS 7

What is the status / plans / time line for support in gdal, directly or through the gdal-grass plugin, for GRASS 7 vector layers? I had seen some emails on building gdal with GRASS 7 support with some success, but can’t find those emails nor any further news.

Hei Paolo,

This is the relevant GDAL ticket:

http://trac.osgeo.org/gdal/ticket/2953

The GRASS plugin on http://download.osgeo.org/gdal/ has not been updated yet, but in the meantime you can rebuild GDAL against GRASS 7.

Workflow would be:

Build GDAL 1.11 without GRASS Support

Build GRASS (7) against GDAL 1.11

Build GDAL 1.11 with GRASS 7 support

Using that workflow, GDAL managed to read GRASS 7 raster data on my Ubuntu 12.04 LTS Server. However, I am not sure if the fixes by hcho have been merged into the 1.11 release (or the latest code yet). So maybe reading GRASS data using only GDAL could give incorrect results (incorrect window read?)…

Others please correct me if I am wrong…

Cheers

Stefan

On Tue, May 20, 2014 at 9:11 AM, Blumentrath, Stefan
<Stefan.Blumentrath@nina.no> wrote:

Hei Paolo,

This is the relevant GDAL ticket:

http://trac.osgeo.org/gdal/ticket/2953

The GRASS plugin on http://download.osgeo.org/gdal/ has not been updated
yet, but in the meantime you can rebuild GDAL against GRASS 7.

Workflow would be:

Build GDAL 1.11 without GRASS Support

Build GRASS (7) against GDAL 1.11

Build GDAL 1.11 with GRASS 7 support

You find that documented also here:

http://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin

Markus

Thanks, I know (I read) how to do this, but wasn’t sure it is actually working with GRASS 7. Happy to hear at least somebody managed :-). I will give it a try then.

···

On 05/20/2014 10:25 AM, Markus Neteler wrote:

On Tue, May 20, 2014 at 9:11 AM, Blumentrath, Stefan
[<Stefan.Blumentrath@nina.no>](mailto:Stefan.Blumentrath@nina.no) wrote:

Hei Paolo,

This is the relevant GDAL ticket:

[http://trac.osgeo.org/gdal/ticket/2953](http://trac.osgeo.org/gdal/ticket/2953)

The GRASS plugin on [http://download.osgeo.org/gdal/](http://download.osgeo.org/gdal/) has not been updated
yet, but in the meantime you can rebuild GDAL against GRASS 7.

Workflow would be:

Build GDAL 1.11 without GRASS Support

Build GRASS (7) against GDAL 1.11

Build GDAL 1.11 with GRASS 7 support

You find that documented also here:

[http://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin](http://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin)

Markus