Changes between Version 10 and Version 11 of GRASS
- Timestamp:
- Jan 24, 2008, 4:13:52 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GRASS
v10 v11 1 1 = GRASS = 2 3 The GRASS support can be added to GDAL in two ways:4 * as a built-in GRASS driver5 * as a loadable GRASS driver plugin6 2 7 3 '''Note, following instructions apply to Linux and other environments where GNU autotools are available (autoconf, automake, make).''' 8 4 5 The right order of steps to perform is, briefly: 6 * build GDAL '''without''' GRASS support 7 * build GRASS 8 * add your GRASS library path to ld.so.conf and run ldconfig 9 * build GDAL '''with''' GRASS support 10 9 11 == Prerequisites == 10 12 11 * Download and install [http:// grass.itc.it/ GRASS] together with development files (headers and libraries). The easiest option is to use binary packages prepared for your operating system.13 * Download and install [http://trac.osgeo.org/grass/wiki/DownloadSource GRASS source]. The easiest option is to use binary packages prepared for your operating system. 12 14 13 15 * Download latest [wiki:DownloadSource#PackagedSource stable] or [wiki:DownloadSource#Subversion development] version of GDAL sources: 14 16 15 17 {{{ 16 tar -zxf gdal-1. 4.1.tar.gz17 cd gdal-1. 4.118 tar -zxf gdal-1.5.0.tar.gz 19 cd gdal-1.5.0 18 20 }}} 19 21 20 22 21 == Variant 1)Building GDAL and GRASS driver plugin ==23 == Building GDAL and GRASS driver plugin == 22 24 23 25 * Configure GDAL sources '''without''' GRASS support: … … 40 42 {{{ 41 43 make 42 make install43 44 }}} 44 45 45 running last step with root privileges. 46 47 == Variant 2) Building GDAL with built-in GRASS driver == 48 49 ''Note that this method is not recommended due to circular dependencies.'' 50 51 * Configure GDAL sources '''with''' GRASS support included: 46 The install step needs root privileges: 52 47 53 48 {{{ 54 ./configure --with-grass=/usr/local/grass6 49 sudo make install 55 50 }}} 56 51 57 and after ./configure finishes its job, you should see the GRASS driver enabled in the summary, like here: 58 59 {{{ 60 GDAL is now configured for i686-pc-linux-gnu 61 ... 62 GRASS support: grass57+ 63 ... 64 }}} 65 66 * Build and install GDAL: 67 68 {{{ 69 make 70 make install 71 }}} 72 73 running last step with root privileges. 74 75 * Now, you can verify if GRASS support is enabled correctly: 76 77 {{{ 78 ./gdalinfo --formats | grep GRASS 79 GRASS (ro): GRASS Database Rasters (5.7+) 80 81 ./ogrinfo --formats | grep GRASS 82 -> "GRASS" (readonly) 83 }}} 84 85 === Build GRASS plugin === 52 == Build GRASS plugin == 86 53 87 54 * [http://download.osgeo.org/gdal/ Download] latest sources of GRASS plugin where the package file name is gdal-grass-X.Y.Z.tar.gz, ie. [http://download.osgeo.org/gdal/gdal-grass-1.4.3.tar.gz gdal-grass-1.4.3.tar.gz] (1.4.3 plugin is fine with any 1.4.x GDAL). Unpack the source package: … … 102 69 {{{ 103 70 make 104 make install105 71 }}} 106 72 107 The last step needs root privileges. 73 The install step needs root privileges: 74 75 {{{ 76 sudo make install 77 }}} 108 78 109 79