<br><br><div class="gmail_quote">On Fri, Jul 8, 2011 at 10:27 PM, Hamish <span dir="ltr"><<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Rainer M Krug wrote:<br>
> I would like to export a 3D line feature into a csv format, as<br>
> in:<br>
> x y z<br>
> 1 2 3...<br>
> I am not interested in the attribute tab;e, as I need the<br>
> coordinates incl z.<br>
<br>
<br>
</div><a href="http://grass.osgeo.org/wiki/Addons#v.out.ascii.mat" target="_blank">http://grass.osgeo.org/wiki/Addons#v.out.ascii.mat</a></blockquote><div><br></div><div>Thanks - this (and v.out.ascii.db) looks exactly like what I am looking for - but I have problems installing it.</div>
<div><br></div><div>I use Ubuntu Natty, and have grass 6.4.1 (grass and grass-dev) installed from the repository (ubuntugis-unstable), but it seems that I do not have everything I neet - the complete tool (/usr/lib/grass64/tools/) directory is missing, and I get the output below. In addition: I also get the error ERROR: G_getenv(): Variable LOCATION_NAME not set.</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">Do I need to install grass from source to be able to use g.extension under ubuntu?</div><div><br></div><div><br></div><div>Thanks,</div>
<div><br></div><div>Rainer</div><div><br></div><div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">GRASS 6.4.1 (grass):~/Documents/Projects/AlienSpread > g.extension extension=v.out.ascii.mat prefix=~/lib/grass64</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Fetching <v.out.ascii.mat> from GRASS-Addons SVN (be patient)...</font></div><div><font class="Apple-style-span" face="'courier new', monospace">A v.out.ascii.mat/v.out.ascii.mat</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">A v.out.ascii.mat/Makefile</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Checked out revision 47092.</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Compiling <v.out.ascii.mat>...</font></div><div><font class="Apple-style-span" face="'courier new', monospace">if [ ! -d /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts ]; then mkdir -p /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts; fi</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">/usr/bin/install -c v.out.ascii.mat /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts/v.out.ascii.mat</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make htmlscript scriptstrings</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make[1]: Entering directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">make /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/docs/html/v.out.ascii.mat.html HTMLSRC=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts/v.out.ascii.mat</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make[2]: Entering directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">if [ "/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts/v.out.ascii.mat" != "" ] ; then GISRC=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/demolocation/.grassrc64 GISBASE=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu PATH="/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/bin:$PATH" LD_LIBRARY_PATH="/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/bin:/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/lib:/usr/lib/grass64/lib:/usr/local/lib" LC_ALL=C fakeroot /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts/v.out.ascii.mat --html-description < /dev/null | grep -v '</body>\|</html>' > v.out.ascii.mat.tmp.html ; true ; fi</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">ERROR: G_getenv(): Variable LOCATION_NAME not set</font></div><div><font class="Apple-style-span" face="'courier new', monospace">/usr/lib/grass64/tools/mkhtml.sh v.out.ascii.mat ; mkdir -p /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/docs/html ; /usr/bin/install -c -m 644 v.out.ascii.mat.tmp.html /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/docs/html/v.out.ascii.mat.html ; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/docs/html ; fi done 2> /dev/null ; true</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">/bin/sh: /usr/lib/grass64/tools/mkhtml.sh: not found</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make[2]: Leaving directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">GISRC=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/demolocation/.grassrc64 GISBASE=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu PATH=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/bin:$PATH LD_LIBRARY_PATH="/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/lib:/usr/lib/grass64/lib:/usr/local/lib" g.parser -t v.out.ascii.mat | sed s/\"/\\\\\"/g | sed 's/.*/_("&")/' > /usr/lib/grass64/locale/scriptstrings/v.out.ascii.mat_to_translate.c ; true</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">/bin/sh: cannot create /usr/lib/grass64/locale/scriptstrings/v.out.ascii.mat_to_translate.c: Directory nonexistent</font></div><div><font class="Apple-style-span" face="'courier new', monospace">ERROR: G_getenv(): Variable LOCATION_NAME not set</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make[1]: Leaving directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">make mancmd</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make[1]: Entering directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/man/man1/v.out.ascii.mat.1 MANSRC=/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/docs/html/v.out.ascii.mat.html</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make[2]: Entering directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">mkdir -p /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/man/man1</font></div><div><font class="Apple-style-span" face="'courier new', monospace">GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.1 sh /build/buildd/grass-6.4.1/tools/g.html2man/g.html2man /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/docs/html/v.out.ascii.mat.html /build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/man/man1/v.out.ascii.mat.1 1</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">sh: Can't open /build/buildd/grass-6.4.1/tools/g.html2man/g.html2man</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make[2]: *** [/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/man/man1/v.out.ascii.mat.1] Error 127</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make[2]: Leaving directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">make[1]: *** [mancmd] Error 2</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make[1]: Leaving directory `/home/rkrug/Documents/Projects/AlienSpread/trunc/grass/ASM/.tmp/ecolmod/6441.0/v.out.ascii.mat'</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make: *** [/build/buildd/grass-6.4.1/dist.i686-pc-linux-gnu/scripts/v.out.ascii.mat] Error 2</font></div><div><font class="Apple-style-span" face="'courier new', monospace">ERROR: Compilation failed, sorry. Please check above error messages.</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">[Raster MASK present]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">GRASS 6.4.1 (grass):~/Documents/Projects/AlienSpread > $LOCATION_NAME</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">[Raster MASK present]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">GRASS 6.4.1 (grass):~/Documents/Projects/AlienSpread > grass -version</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Cleaning up temporary files ...</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Starting GRASS ...</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">/home/rkrug/Documents/Projects/AlienSpread/-version: Not a valid GRASS location</font></div><div><font class="Apple-style-span" face="'courier new', monospace">[Raster MASK present]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">GRASS 6.4.1 (grass):~/Documents/Projects/AlienSpread ></font></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<font color="#888888"><br>
<br>
Hamish<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br><br>Centre of Excellence for Invasion Biology<br>Stellenbosch University<br>
South Africa<br><br>Tel : +33 - (0)9 53 10 27 44<br>Cell: +33 - (0)6 85 62 59 98<br>Fax (F): +33 - (0)9 58 10 27 44<br><br>Fax (D): +49 - (0)3 21 21 25 22 44<br><br>email: <a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a><br>
<br>Skype: RMkrug<br><br>