Re: [GRASS-user] change some labels to upper/lower case in vector attributes

2009-08-18 Thread Moritz Lennert
On 17/08/09 08:19, maning sambale wrote: One column of my vector is the name of the town all in uppercase. What I want is to convert them, i.e., SAN DIEGO San Diego My grass dbase is sqlite Something like this should do the trick (untested): UPDATE YourTable set town=substr(town,1,1) ||

Re: [GRASS-user] v.edit break ERROR: Attempt to delete dead feature

2009-08-18 Thread achim
Hi all, so I wrote a little script as workaround I want to share while renew_cats just looks like: v.category input=$1 output=$1_nocat option=del type=$3 layer=$2 --o v.category input=$1_nocat output=$1 type=$3 layer=$2 --o Its really slow, but does its job, Greetings, Achim achim schrieb:

Re: [GRASS-user] v.edit break ERROR: Attempt to delete dead feature

2009-08-18 Thread Moritz Lennert
On 18/08/09 15:34, achim wrote: Hi all, so I wrote a little script as workaround I want to share Thanks for sharing this. One remark: ** ## update network table with start,end point cats ## takes a long time!!! v.net -c --overwrite input=$1 operation=report line_end_cats.txt

Re: [GRASS-user] v.edit break ERROR: Attempt to delete dead feature

2009-08-18 Thread achim
** ## update network table with start,end point cats ## takes a long time!!! v.net -c --overwrite input=$1 operation=report line_end_cats.txt while read line; do cat=$(echo $line | cut -d' ' -f1) start=$(echo $line | cut -d' ' -f2) end=$(echo $line | cut -d' ' -f3)

[GRASS-user] Running Scripts in GRASS

2009-08-18 Thread Andrew Lewin
Hi Everyone, I am a beginner user of GRASS (I normally use ArcGIS) running on Mac OS X Grass 6.4 ORC5. I am trying to process MODIS chlor-a images according to the MODIS Wiki page. There are many scripts on the wiki page that I would like to use; however, I do not know how to: 1) save the

Re: [GRASS-user] Running Scripts in GRASS

2009-08-18 Thread William Kyngesburye
On Aug 18, 2009, at 3:18 PM, Andrew Lewin wrote: Hi Everyone, I am a beginner user of GRASS (I normally use ArcGIS) running on Mac OS X Grass 6.4 ORC5. I am trying to process MODIS chlor-a images according to the MODIS Wiki page. There are many scripts on the wiki page that I would

Re: [GRASS-user] Running Scripts in GRASS

2009-08-18 Thread William Kyngesburye
On Aug 18, 2009, at 7:16 PM, Andrew Lewin wrote: Thanks for the help, but I am not quite clear on the part you say the script has to be an executable. I copied and pasted the script from the wiki page and stored it in ~/Library/GRASS/6.4/Modules/bin; called the script by typing it (called

Re: [GRASS-user] Running Scripts in GRASS

2009-08-18 Thread Hamish
Markus wrote: Perhaps we should cook up a Wiki page describing this briefly? shrug. or as it's an external task, delegate the matter and add a link to some good document on the web about unix shell scripting. I'm sure there are many out there already. (but whatever) Andrew, another thing to

Re: [GRASS-user] change some labels to upper/lower case in vector attributes

2009-08-18 Thread maning sambale
Thanks will try this one. On Tue, Aug 18, 2009 at 7:36 PM, Moritz Lennertmlenn...@club.worldonline.be wrote: On 17/08/09 08:19, maning sambale wrote: One column of my vector is the name of the town all in uppercase. What I want is to convert them, i.e., SAN DIEGO San Diego My grass dbase