[GRASS-user] Setting Language

2011-04-14 Thread katrin eggert
Greetings I'm doing some work in GRASS with a couple of friends from different countries (/ different languages) and our GRASS has some words translated in in our own languages but this can be quite difficult when, for example, I'm running something on a laptop of an italian :). So I want to

[GRASS-user] snap point to line/break line at given points

2011-04-14 Thread Johannes Radinger
Hello, I have a line-vector (river) and some points on that line. First I am straightening that line with v.generalize (method: boyle). Now, there is the problem that the points are not exactly on the line anymore. So I want to snap (move) the points to the new generalized line again. Which

Re: [GRASS-user] Extrac values with r.mapcalc

2011-04-14 Thread Lluís Vicens
Hi Gaspar, r.mapcalc new.map = if(flat_map==0.0234,flat_map,null()) - if you want to preserve original values or r.mapcalc new.map = if(flat_map==0.0234,1,null()) - if you prefer to assign a value of 1 to those values equal to 0.0234 in the original raster map It should work. Lluís El dc

Re: [GRASS-user] Error with GRASS 6.4.1 on CentOS 5

2011-04-14 Thread Mathieu Baudier
if if ignoredDelimiter is None:    ignoredDelimiter = '' Thanks a lot, I will try to patch it. probably you will find more such statements in the code (see eg. r45962). In that case, could you send a patch which I could apply in SVN? I applied your fixes from yesterday (rev 45959 to

Re: [El] Re: [GRASS-user] Error with GRASS 6.4.1 on CentOS 5

2011-04-14 Thread Markus Neteler
On Thu, Apr 14, 2011 at 1:02 PM, Mathieu Baudier mbaud...@argeo.org wrote: ... I applied your fixes from yesterday (rev  45959 to 45964 from the 6.4 release branch) and the wxPython UI now starts properly (an updated version is now available in the ELGIS testing repository). Thanks for your

Re: [GRASS-user] Setting Language

2011-04-14 Thread Markus Neteler
On Thu, Apr 14, 2011 at 9:27 AM, katrin eggert katrineggert1...@gmail.com wrote: Greetings I'm doing some work in GRASS with a couple of friends from different countries (/ different languages) and our GRASS has some words translated in in our own languages but this can be quite difficult

[GRASS-user] Raster addition

2011-04-14 Thread Martin Album Ytre-Eide
Hello. I am trying to add some raster maps. I thought I could do this in r.mapcalc, but new_map= old_1 + old_2 seems to produce a map where the maps overlap and ignoring areas where only on of the maps have values. I would like to do something similar to v.overlay operator=or. Anyone who

Re: [GRASS-user] Raster addition

2011-04-14 Thread Moritz Lennert
On 14/04/11 13:54, Martin Album Ytre-Eide wrote: Hello. I am trying to add some raster maps. I thought I could do this in r.mapcalc, but new_map= old_1 + old_2 seems to produce a map where the maps overlap and ignoring areas where only on of the maps have values. This is due to the way

SV: [GRASS-user] Raster addition

2011-04-14 Thread Martin Album Ytre-Eide
I would like the NULL values that overlap with none NULL values to be treated as 0, and still have NULL values where both maps have NULL values. The combined map would be a large map with NULL values and added values. Maybe the best way is to use r.null and set NULL values to 0. Add the maps

[GRASS-user] assign heigght value to pixel(x,y)

2011-04-14 Thread vinod kumar
Hi all, how to assign height value(z) to a particular pixel having x and y coordinates in an orthphoto using grass. Thanks in advance, nani ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: SV: [GRASS-user] Raster addition

2011-04-14 Thread Moritz Lennert
On 14/04/11 14:31, Martin Album Ytre-Eide wrote: I would like the NULL values that overlap with none NULL values to be treated as 0, and still have NULL values where both maps have NULL values. The combined map would be a large map with NULL values and added values. Maybe the best way is to use

Re: SV: [GRASS-user] Raster addition

2011-04-14 Thread Johannes Radinger
Original-Nachricht Datum: Thu, 14 Apr 2011 14:31:32 +0200 Von: Martin Album Ytre-Eide martin.album.ytre-e...@nrpa.no An: \'Moritz Lennert\' mlenn...@club.worldonline.be CC: grass-user@lists.osgeo.org grass-user@lists.osgeo.org Betreff: SV: [GRASS-user] Raster addition I

Re: SV: [GRASS-user] Raster addition

2011-04-14 Thread TimNorwey
Martin Album Ytre-Eide wrote: I would like the NULL values that overlap with none NULL values to be treated as 0, and still have NULL values where both maps have NULL values. The combined map would be a large map with NULL values and added values. hy, i guess r.patch can do that for you

[GRASS-user] Adding labels to Classes

2011-04-14 Thread Monica Buescu
Greetings I have a Land Cover map and I want to substitute Land Cover codes by numbers. Besides r.reclass (1 = 1 Agriculture ; 2 = 2 Forest 3 = 3 Water) what other method does exists in GRASS? Thanks ___ grass-user mailing list

SV: SV: [GRASS-user] Raster addition -Solved

2011-04-14 Thread Martin Album Ytre-Eide
Don't know who of you led me in the right direction, but eventually the line: C=A + if(isnull(B),0,B) in the manual solved my issue. New_map = if(isnull(old_1),0,old_1) + if(isnull(old_2,0,old_2)) + etc and a following new_map=if(new_map0,new_map,null()) I had four maps in my case, and that is

Re: [GRASS-user] Extrac values with r.mapcalc

2011-04-14 Thread ambijat
Hi! Gaspar, you can do it one way as follows. 1) create a vector of desired area that you would like to extract values for. 2) use v.to rast for converting it into a raster use value = 1 for that raster 3)open mapcalc and put input raster as A and new created raster as B 4) enter formula if(B

Re: [GRASS-user] Setting Language

2011-04-14 Thread katrin eggert
Thanks Markus Just to confirm: I have to place that in etc/Init.bat right? It doesn't matter where? Thanks 2011/4/14 Markus Neteler nete...@osgeo.org On Thu, Apr 14, 2011 at 9:27 AM, katrin eggert katrineggert1...@gmail.com wrote: Greetings I'm doing some work in GRASS with a couple of

[GRASS-user] Error while running v.db.addcol

2011-04-14 Thread Jenny Turner
Greetings I0'm using winGRASS. When I run v.db.addcol in my WinXP I get this error: Default driver / database set to: driver: dbf database: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ 0 [main] sh 5240 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump 0 [main] sh 5436

Re: [GRASS-user] Error while running v.db.addcol

2011-04-14 Thread Markus Neteler
On Thu, Apr 14, 2011 at 6:13 PM, Jenny Turner jennyturner1...@gmail.com wrote: Greetings I0'm using winGRASS. Please always indicate the version... When I run v.db.addcol in my WinXP I get this error: Default driver / database set to: driver: dbf database:

Re: [GRASS-user] Setting Language

2011-04-14 Thread Markus Neteler
On Thu, Apr 14, 2011 at 6:12 PM, katrin eggert katrineggert1...@gmail.com wrote: Thanks Markus Just to confirm: I have to place that in etc/Init.bat right? It doesn't matter where? Thanks Well it may matter... Maybe put it in the beginning above the line: set GIS_LOCK=1 Please let us know