GRASS and SAGA: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(Created page with 'This tutorial is prepared to present possibilities for integration GRASS GIS with SAGA. The current version is only for linux installation. ==1. Installing SAGA== Issues connec…')
 
Line 4: Line 4:
Issues connected with SAGA installation presented below many occur/not occur depending on linux distribution, architecture, and gdal/ogr/proj installation.
Issues connected with SAGA installation presented below many occur/not occur depending on linux distribution, architecture, and gdal/ogr/proj installation.


Currently the only trustworthy installation on linux is a compilation from the source. The source can be found [http://sourceforge.net/projects/saga-gis/files/ here] The how-to install from source is described  here [http://sourceforge.net/apps/trac/saga-gis/wiki/Compiling%20a%20Linux%20Unicode%20version http://sourceforge.net/apps/trac/saga-gis/wiki/Compiling%20a%20Linux%20Unicode%20version]. If we want to have direct access to GRASS data we need also to have gdal/ogr compiled from source with grass-gdal plugin correctly compiled before SAGA compilation.
Currently the only trustworthy installation on linux is a compilation from the source. The source can be found [http://sourceforge.net/projects/saga-gis/files/ here] The how-to install from source is described  [http://sourceforge.net/apps/trac/saga-gis/wiki/Compiling%20a%20Linux%20Unicode%20version here]. If we want to have direct access to GRASS data we need also to have gdal/ogr compiled from source with grass-gdal plugin correctly compiled before SAGA compilation.


It is also possible to use precompiled version of SAGA but there are problems with gdal/ogr and proj working, depending on architecture (32 or 64 bits) and gdal installation. Direct access do GRASS data also is not possible.
It is also possible to use precompiled version of SAGA but there are problems with gdal/ogr and proj working, depending on architecture (32 or 64 bits) and gdal installation. Direct access do GRASS data also is not possible.

Revision as of 17:21, 17 November 2009

This tutorial is prepared to present possibilities for integration GRASS GIS with SAGA. The current version is only for linux installation.

1. Installing SAGA

Issues connected with SAGA installation presented below many occur/not occur depending on linux distribution, architecture, and gdal/ogr/proj installation.

Currently the only trustworthy installation on linux is a compilation from the source. The source can be found here The how-to install from source is described here. If we want to have direct access to GRASS data we need also to have gdal/ogr compiled from source with grass-gdal plugin correctly compiled before SAGA compilation.

It is also possible to use precompiled version of SAGA but there are problems with gdal/ogr and proj working, depending on architecture (32 or 64 bits) and gdal installation. Direct access do GRASS data also is not possible.

2. Start to work with SAGA command line on liux=

To start to work with SAGA command line on linux we need prior to add access to SAGA libraries:


3. Import and Export GRASS data to SAGA and backward

3.1 Direct importing GRASS Data to SAGA (requires grass-gdal plugin)

It is possible to import grass data directly to SAGA without transitional export to GeoTIFF or other GDAL format. But this method has some limitation (some of them well known for R' spgrass6 usres):

  1. plugin can import only the whole map. It ignores both current region resolution and region boundary
  2. there are problems with NULL interpretation if we use plugin to import grass raster directly.

How to import: in command line we need