[GRASS-user] help with v.db.update

2011-04-06 Thread Sharon M
I'm trying to update an attribute table column using v.db.update with the DBF driver and keep getting a dbmi: Protocol error message. Example using Spearfish g.copy vect=fields,myfields v.db.addcol myfields col=polynum integer v.db.select myfields where=label like 'V%' cat|label|polynum 59|V.

[GRASS-user] Re: grass-user Digest, Vol 60, Issue 13

2011-04-06 Thread Richard Chirgwin
On 6/04/11 4:36 PM, grass-user-requ...@lists.osgeo.org wrote: Message: 9 Date: Wed, 6 Apr 2011 16:06:13 +0930 From: Sharon Mmorrisx...@gmail.com Subject: [GRASS-user] help with v.db.update To:grass-user@lists.osgeo.org Message-ID:BANLkTi=ohuegstnauinliyamfo5-p3r...@mail.gmail.com Content-Type:

[GRASS-user] triangulation

2011-04-06 Thread vinod kumar
Hi All of you, I am using grass latest version and i want to know How to triangulate the raster data using grass so that i can assign attributes for each pixel? Thanks in advance, nani. ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] Re: grass-user Digest, Vol 60, Issue 13

2011-04-06 Thread Hamish
Richard wrote: The dbf driver doesn't handle like. ... If you need more advanced query parameters such as like, use a different database driver - pg or mysql. would ~ work? v.db.update myfields col=polynum val=42 where=label ~ 'V' ? Hamish ___

[GRASS-user] Re: dbf driver (I forgot to change the subject line last time!)

2011-04-06 Thread Richard Chirgwin
On 6/04/11 5:06 PM, Hamish wrote: Richard wrote: The dbf driver doesn't handle like. ... If you need more advanced query parameters such as like, use a different database driver - pg or mysql. would ~ work? v.db.update myfields col=polynum val=42 where=label ~ 'V' ? Hamish Hamish,

[GRASS-user] help with v.db.update

2011-04-06 Thread Sharon M
Why does the DBF driver handle like when using v.db.select? On Wed, Apr 6, 2011 at 4:29 PM, Richard Chirgwin rchirg...@ozemail.com.au wrote: On 6/04/11 4:36 PM, grass-user-requ...@lists.osgeo.org wrote: Message: 9 Date: Wed, 6 Apr 2011 16:06:13 +0930 From: Sharon Mmorrisx...@gmail.com

Re: [GRASS-user] triangulation

2011-04-06 Thread Hamish
vinod wrote: I am using grass latest version and i want to know How to triangulate the raster data using grass so you have a raster grid you'd like to simplify into a TIN? see Laura's r.refine addon module: http://grass.osgeo.org/wiki/TIN (see also

Re: [GRASS-user] Re: grass-user Digest, Vol 60, Issue 13

2011-04-06 Thread Sharon M
No, error message is now... DBMI-DBF driver error: Column 'V' not found Incompatible types in WHERE condition. Error in selecting rows Error in db_execute_immediate() ERROR: Error while executing: 'UPDATE myfields SET polynum=42 WHERE label ~ V ' On Wed, Apr 6, 2011 at 4:36 PM, Hamish

Re: [GRASS-user] help with v.db.update

2011-04-06 Thread Richard Chirgwin
I don't know is the short answer. Hamish's suggested worked here for v.db.update, but when I used like in v.db.update, it failed with the same error as you saw. Perhaps a bug in the driver? Richard On 6/04/11 5:12 PM, Sharon M wrote: Why does the DBF driver handle like when using

Re: [GRASS-user] help with v.db.update

2011-04-06 Thread Sharon M
This is the example provided in the v.db.update man page g.copy vect=fields,myfields v.db.addcol myfields col=polynum integer v.db.update myfields col=polynum val=42 where=label='V. White#1' which returns the error White#1: -c: line 0: unexpected EOF while looking for matching `' White#1: -c:

Re: [GRASS-user] help with v.db.update

2011-04-06 Thread Sharon M
Richard - are you working in a win XP environment? If so which vers of WinGrass? Thanks, Sharon On Wed, Apr 6, 2011 at 4:48 PM, Richard Chirgwin rchirg...@ozemail.com.au wrote: I don't know is the short answer. Hamish's suggested worked here for v.db.update, but when I used like in

Re: [GRASS-user] help with v.db.update

2011-04-06 Thread Richard Chirgwin
No - Mac. So perhaps Win interprets the delimiters differently? Richard On 6/04/11 5:23 PM, Sharon M wrote: Richard - are you working in a win XP environment? If so which vers of WinGrass? Thanks, Sharon On Wed, Apr 6, 2011 at 4:48 PM, Richard Chirgwin rchirg...@ozemail.com.au wrote: I

Re: [GRASS-user] Python-Loop over points

2011-04-06 Thread Johannes Radinger
Hello, I want to reactive this thread... and want just to put in some new ideas...and i still want to use a for-loop or something similar on a point-vector-file in a Python-script i want something like Daniel mentioned but want to loop over points within one single pointfile: for point in

[GRASS-user] Re: Duplication of lines in output of r.profile.

2011-04-06 Thread Marcello Gorini
Marcello wrote: I solved it using: d.where map_profile instead of: r.profile -ig input=map output=map_profile The only problem is that I can't see the points while I am digitizing. Hamish wrote: use the middle mouse button with d.where to show the line. Yes, thanks, it helped.

[GRASS-user] Re: How to aggregate values of a raster to an area specified by a polygon?

2011-04-06 Thread TimNorwey
check out the v.rast.stats module. I just gave it a try using an example raster and it seems to be the solution to my problem. Thanks, Tim -- View this message in context:

Re: [GRASS-user] Python-Loop over points

2011-04-06 Thread Johannes Radinger
Hej again, I've got a first basic idea but it isn't working yet completetly. I wanted to loop over the pointfile to use the single points for other operations like the r.stream.basins module. Most of these modules do also except coordinates. So here is one solution but hopefully someone know a

Re: [GRASS-user] Python-Loop over points

2011-04-06 Thread Glynn Clements
Johannes Radinger wrote: I've got a first basic idea but it isn't working yet completetly. I wanted to loop over the pointfile to use the single points for other operations like the r.stream.basins module. Most of these modules do also except coordinates. So here is one solution but

Re: [GRASS-user] Python-Loop over points

2011-04-06 Thread Johannes Radinger
Am 06.04.2011 21:56, schrieb Glynn Clements: Johannes Radinger wrote: I've got a first basic idea but it isn't working yet completetly. I wanted to loop over the pointfile to use the single points for other operations like the r.stream.basins module. Most of these modules do also except

Re: [GRASS-user] Read/Write numpy array

2011-04-06 Thread Glynn Clements
Johannes Radinger wrote: Thank you for your answer but I still get an error, although I changed the code which is now: x = garray.array() x.read(distance_raster) Density = garray.array() Density[...] = p * stats.norm.pdf(x,loc=m, scale=s1*K) + (1-p) * stats.norm.pdf(x,

[GRASS-user] Retrieve pixel value for a group of images

2011-04-06 Thread Monica Buescu
Greetings I have created a group of 10 images (i.group) and I wanted to know how can I retrieve a pixel value for all images instead of using query raster map tool wherre I can only retrieve a pixel per image? Thanks Monica ___ grass-user mailing list

[GRASS-user] create 3D raster and display

2011-04-06 Thread Janet Choate
Hi grass community, sorry to have to ask - i've read through some of the help topics but either i'm not finding the correct answers or not executing the commands correctly. i want to display a raster in 3D. i.e. display landscape maps 'draped on top' of the dem so i can show the terrain in 3D

[GRASS-user] Re: create 3D raster and display

2011-04-06 Thread Marcello Gorini
Janet Choate said: i want to display a raster in 3D. i.e. display landscape maps 'draped on top' of the dem so i can show the terrain in 3D rather than as a flat image. do i need to convert a raster to a 3D raster via r.to.rast3 or r.to.rast3elev, set the region for 3D? how to display? Not at

Re: [GRASS-user] Retrieve pixel value for a group of images

2011-04-06 Thread Hamish
Monica wrote: I have created a group of 10 images (i.group) and I wanted to know how can I retrieve a pixel value for all images instead of using query raster map tool wherre I can only retrieve a pixel per image? use the r.what module.