Difference between revisions of "GRASS and Sextante"

From GRASS-Wiki
Jump to: navigation, search
(Linux)
(+tuned OADE version; +Activating GRASS in Sextante)
Line 1: Line 1:
 
GRASS has been integrated into [http://www.sextantegis.com Sextante] as extension. Sextante itself is commonly used within gvSIG. Through this integration, gvSIG users have access to the wealth of well tested algorithms provided by GRASS.
 
GRASS has been integrated into [http://www.sextantegis.com Sextante] as extension. Sextante itself is commonly used within gvSIG. Through this integration, gvSIG users have access to the wealth of well tested algorithms provided by GRASS.
  
== How to install ==
+
== How to install (tuned OADE version) ==
 +
 
 +
# Download OADE gvSIG binaries from [http://oadigital.net/software/gvsigoade/gvsigoade2010beta here]
 +
# Download Sextante binaries from [http://forge.osor.eu/plugins/wiki/index.php?Downloads&id=13&type=g here]
 +
 
 +
=== Linux ===
 +
 
 +
Now you have three files, for example: gvsig-oade-2010-1.0.0.b2-linux-installer.bin and sextante.zip
 +
 
 +
You have to run (follow the dialogs; we assume that you install it in your HOME directory as predefined in the dialog):
 +
 
 +
chmod a+x gvsig-oade-2010-1.0.0.b2-linux-installer.bin
 +
./gvsig-oade-2010-1.0.0.b2-linux-installer.bin
 +
 
 +
To update the pre-installed Sextante with the newer content of sextante.zip:
 +
 
 +
rm -rf $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG/extensiones/es.unex.sextante
 +
mkdir  $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG/extensiones/es.unex.sextante
 +
cd $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG/extensiones/es.unex.sextante
 +
 
 +
unzip /PATH/TO/sextante.zip "core/*"
 +
mv core/* .
 +
rmdir core
 +
unzip /PATH/TO/sextante.zip "bindings/gvsig_1_9/*"
 +
mv bindings/gvsig_1_9/* .
 +
rmdir bindings/gvsig_1_9  bindings
 +
 +
rm -f jts-1.9.jar
 +
 
 +
# help:
 +
cd ../sextante_help
 +
rm -rf en/ es/ de/
 +
unzip /PATH/TO/sextante.zip "help/*"
 +
mv help/* .
 +
rmdir help
 +
 
 +
Now you can launch gvSIG, from the Desktop or via (adjust path if you didn't use the default installation directory):
 +
  $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG.sh
 +
 
 +
=== Windows ===
 +
 
 +
TBD.
 +
 
 +
=== MacOSX ===
 +
 
 +
TBD.
 +
 
 +
== How to install (original gvSIG version) ==
  
 
# Download gvSIG binaries from [http://www.gvsig.gva.es/ here]
 
# Download gvSIG binaries from [http://www.gvsig.gva.es/ here]
Line 18: Line 65:
 
To install the content of sextante.zip:
 
To install the content of sextante.zip:
  
 +
# software
 
  mkdir /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/es.unex.sextante
 
  mkdir /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/es.unex.sextante
 
  cd /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/es.unex.sextante
 
  cd /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/es.unex.sextante
Line 26: Line 74:
 
  unzip /PATH/TO/sextante.zip "bindings/gvsig_1_9/*"
 
  unzip /PATH/TO/sextante.zip "bindings/gvsig_1_9/*"
 
  mv bindings/gvsig_1_9/* .
 
  mv bindings/gvsig_1_9/* .
  rmdir bindings/gvsig_1_9 bindings
+
  rmdir bindings/gvsig_1_9 bindings
 
   
 
   
 
  rm -f jts-1.9.jar
 
  rm -f jts-1.9.jar
  # todo: help
+
 
 +
  # help:
 +
cd /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/
 +
mkdir sextante_help
 +
unzip /PATH/TO/sextante.zip "help/*"
 +
mv help/* help/
 +
rmdir help
 
   
 
   
 
If you installed it with JRE usage (default), you now have to remove some files to avoid conflicts with the main gvSIG installation:
 
If you installed it with JRE usage (default), you now have to remove some files to avoid conflicts with the main gvSIG installation:
Line 44: Line 98:
  
 
TBD.
 
TBD.
 +
 +
== Activating GRASS in Sextante ==
 +
 +
# Go to Sextante settings (open Sextante Dialog -> right of the "Search" bar)
 +
# Go to "GRASS"
 +
# Set therein
 +
  GRASS folder: /path/to/grass-binary-installation/  (e.g., /usr/local/grass-6.4.0svn/ )
 +
  GRASS mapset: /path/to/grassdata/location/mapset  (e.g., /home/neteler/grassdata/nc_spm_08/user1 )
  
 
== How to use ==
 
== How to use ==

Revision as of 05:00, 2 April 2010

GRASS has been integrated into Sextante as extension. Sextante itself is commonly used within gvSIG. Through this integration, gvSIG users have access to the wealth of well tested algorithms provided by GRASS.

How to install (tuned OADE version)

  1. Download OADE gvSIG binaries from here
  2. Download Sextante binaries from here

Linux

Now you have three files, for example: gvsig-oade-2010-1.0.0.b2-linux-installer.bin and sextante.zip

You have to run (follow the dialogs; we assume that you install it in your HOME directory as predefined in the dialog):

chmod a+x gvsig-oade-2010-1.0.0.b2-linux-installer.bin
./gvsig-oade-2010-1.0.0.b2-linux-installer.bin

To update the pre-installed Sextante with the newer content of sextante.zip:

rm -rf $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG/extensiones/es.unex.sextante
mkdir  $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG/extensiones/es.unex.sextante
cd $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG/extensiones/es.unex.sextante
unzip /PATH/TO/sextante.zip "core/*"
mv core/* .
rmdir core
unzip /PATH/TO/sextante.zip "bindings/gvsig_1_9/*"
mv bindings/gvsig_1_9/* .
rmdir bindings/gvsig_1_9  bindings

rm -f jts-1.9.jar
# help:
cd ../sextante_help
rm -rf en/ es/ de/
unzip /PATH/TO/sextante.zip "help/*"
mv help/* .
rmdir help

Now you can launch gvSIG, from the Desktop or via (adjust path if you didn't use the default installation directory):

 $HOME/gvsig-oade-2010-1.0.0/bin/gvSIG.sh

Windows

TBD.

MacOSX

TBD.

How to install (original gvSIG version)

  1. Download gvSIG binaries from here
  2. Download Raster Pilot from here
  3. Download Sextante binaries from here

Linux

Now you have three files, for example: gvSIG-1_1_x-raster_pilot-BN7-linux-i586.bin, gvSIG-1_9-linux-i586-withjre.bin, and sextante.zip

You have to run (follow the dialogs):

sh gvSIG-1_9-linux-i586-withjre.bin
sh gvSIG-1_1_x-raster_pilot-BN7-linux-i586.bin

To install the content of sextante.zip:

# software
mkdir /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/es.unex.sextante
cd /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/es.unex.sextante
unzip /PATH/TO/sextante.zip "core/*"
mv core/* .
rmdir core
unzip /PATH/TO/sextante.zip "bindings/gvsig_1_9/*"
mv bindings/gvsig_1_9/* .
rmdir bindings/gvsig_1_9  bindings

rm -f jts-1.9.jar
# help:
cd /PATH/TO/gvSIG_1.9/bin/gvSIG/extensiones/
mkdir sextante_help
unzip /PATH/TO/sextante.zip "help/*"
mv help/* help/
rmdir help

If you installed it with JRE usage (default), you now have to remove some files to avoid conflicts with the main gvSIG installation:

rm -f sextante_flowTools-0.55.jar flowmap.jar j3dcore.jar prefuse*.jar vecmath-1.3.jar

Now you can launch gvSIG, from the Desktop or via (adjust path):

 /usr/local/gvSIG_1.9/bin/gvSIG.sh

Windows

TBD.

MacOSX

TBD.

Activating GRASS in Sextante

  1. Go to Sextante settings (open Sextante Dialog -> right of the "Search" bar)
  2. Go to "GRASS"
  3. Set therein
  GRASS folder: /path/to/grass-binary-installation/  (e.g., /usr/local/grass-6.4.0svn/ )
  GRASS mapset: /path/to/grassdata/location/mapset  (e.g., /home/neteler/grassdata/nc_spm_08/user1 )

How to use

Preparation of GRASS for Sextante

Go into Sextante settings, and set (update paths accordingly to your installation):

 GRASS folder = /usr/local/grass-6.4.svn
 GRASS mapset= <my home dir>/grass/location/<mapset name>


Usage

GRASS is used in an internal temporary session.


See also