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 Lennert 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 is sqlite >

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] 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 Markus Neteler
On Wed, Aug 19, 2009 at 2:16 AM, 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. (indeed, it is not a requirement, see below) > I copied and pasted the script from the wiki page > and stored it in ~/Library/GRASS/6.4/Mo

Re: [GRASS-user] Running Scripts in GRASS

2009-08-18 Thread Andrew Lewin
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 chlatransl) to the Terminal shell. It said "chla

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 lik

Re: [GRASS-user] Running Scripts in GRASS

2009-08-18 Thread Milton Cezar Ribeiro
Hi Andrew, I think you can search the grass list archive, because it is a very common ask :-) Anyway, save your script under $GISBASE/scripts (may be c:\GRASS\scripts\" You not need to set any special extention. Let us know if you can do it. bests milton 2009/8/18 Andrew Lewin > Hi Everyone,

[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 sc

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

2009-08-18 Thread achim
in line 43 I updated a thresh: v.edit --quiet map=$1 layer=1 type=line tool=break cats=$catlist coords=$coord thresh=-1,0,0 -1,0,0 is default, but its to emphasize, that this is important! Because it uses the current resolution as thresh, there will be done something wrong with near points: so res

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

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 whi

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] 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) || lo