Re: [GRASS-user] Unable to locate Tk includes

2010-10-18 Thread Maris Nartiss
tk-dev and tcl-dev Maris. 2010/10/18, Chethan S chethanuniver...@gmail.com: Greetings! I am trying to install GRASS Release branch 6.4 from SVN on Ubuntu. At then configure stage, I use the command ./configure --with-tcltk-includes=/usr/include/tcl8.5 --with-proj-share=/usr/share/proj

[GRASS-user] Calculating mode value for each polygon

2010-10-18 Thread Monica Buescu
Greetings I have an image that is divided in several (300) polygons and, using a data_map raster, I want to calculate the mode value from this image for each polygon. Is it possible? can anyone give me a tip on this? Thanks Monica ___ grass-user

[GRASS-user] Re: Which version is advisable - SVN or stable, Unable to locate Tk includes

2010-10-18 Thread Chethan S
Greetings! Which version is advisable - SVN or stable I took Mr. Neteler's suggestion and now have GRASS GIS 6.4.1svn(2010) running. Also I could start the R package from within GRASS.2. Unable to locate Tk includes Mr. Martin's suggestion definitely works. However I found an effective answer to

Re: [GRASS-user] Calculating mode value for each polygon

2010-10-18 Thread Micha Silver
On 18/10/2010 10:11, Monica Buescu wrote: Greetings I have an image that is divided in several (300) polygons and, using a data_map raster, I want to calculate the mode value from this image for each polygon. Is it possible? can anyone

Re: [GRASS-user] Calculating mode value for each polygon

2010-10-18 Thread Monica Buescu
I don't think so.. What I want is to calculate the mode (most frequent value) of a raster file for each polygon that this raster covers. What I will have is the most frequent raster value that falls inside each polygon. Is kind of a univariate statistic of a raster for each polygon. Any ideas?

Re: [GRASS-user] Calculating mode value for each polygon

2010-10-18 Thread Daniel Victoria
This should be done by v.rast.stats but, from the manual I don't think it includes mode... On Mon, Oct 18, 2010 at 8:32 AM, Monica Buescu monicabuescu1...@gmail.com wrote: I don't think so.. What I want is to calculate the mode (most frequent value) of a raster file for each polygon that this

Re: [GRASS-user] Calculating mode value for each polygon

2010-10-18 Thread Monica Buescu
Uhm That is a pittty. Is anyone planning on developing this? On Mon, Oct 18, 2010 at 12:33 PM, Daniel Victoria daniel.victo...@gmail.com wrote: This should be done by v.rast.stats but, from the manual I don't think it includes mode... On Mon, Oct 18, 2010 at 8:32 AM, Monica Buescu

[GRASS-user] Re: Wingrass 6.4 with MSYS does not work

2010-10-18 Thread Daniel Victoria
Sorry to revive a very old tread but I just found out why WinGrass was not working for me so I though I should documment it somehow. I had a leftover environment variable due to an old Cygwin instal but it was NOT in the system path... There was a variable called CYGWIN with the value set to tty.

[GRASS-user] Re: Calculating mode value for each polygon

2010-10-18 Thread Luisa Peña
well I don't know if I'm going to say something foolish but, how about r.mode? is it applicable? From the description is not very clear ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Re: Calculating mode value for each polygon

2010-10-18 Thread Micha Silver
On 18/10/2010 15:23, Luisa Pea wrote: well I don't know if I'm going to say something foolish but, how about r.mode? is it applicable? From the description is not very clear Bingo! The vector polygon map should be converted to raster and

Re: [GRASS-user] Re: Calculating mode value for each polygon

2010-10-18 Thread Sylvain Maillard
hello, something strange, i was quite sure to have send a response but it seems something goes wrong ... I wrote a little script that use r.mode: - convert the vector with polygon to raster - loop for each polygon - get the mode and update the specified column in the vector file it process only

Re: [GRASS-user] Re: Calculating mode value for each polygon

2010-10-18 Thread Micha Silver
On 18/10/2010 16:07, Sylvain Maillard wrote: hello, something strange, i was quite sure to have send a response but it seems something goes wrong ... I wrote a little script that use r.mode: - convert the vector with polygon to

Re: [GRASS-dev] Re: [GRASS-user] v.db.join script

2010-10-18 Thread Moritz Lennert
On 13/10/10 22:23, Micha Silver wrote: One line from the v.db.join script uses grep and cut to get the column names and the next line gets the column types like so: db.describe -c bike_rides2 | grep '^Column' | cut -d ':' -f 3 INTEGER CHARACTER INTEGER CHARACTER CHARACTER CHARACTER CHARACTER

Re: [GRASS-user] Calculating mode value for each polygon

2010-10-18 Thread Monica Buescu
About the sugfgestion from Luisa, of using r.mode it seems exacly what I want... But instead of using polygons I use a raster (coverage map). For me, its ok I have tested and, I'm obtaining a bit weird error on this: r.mode base...@permanent cover=1107...@permanent output=test_outputv0 ERROR:

[GRASS-user] Question about r.in.xyz

2010-10-18 Thread Franz Schiller
Hello there I have a simple question related with r.in.xyz: When I import a ASCII file I do this: r.in.xyz input=C:\Test_areas\graphbased\filev2 output=v...@permanent But in the metadata I get the following: - number of categories: 255 = Why is this? I haven't set anything - and in the r.info v2

[GRASS-user] Re: Type of data to be used in i.maxlik

2010-10-18 Thread Kim Besson
Hello I have sent this message but no one answered me. Can anyone help me on this? Thanks Kim 2010/10/15 Kim Besson kimbesson1...@gmail.com Greetings Before I used i.maxlik I decided to give a look at the code. And I have one question: - the input data, I mean the data inside the group,

[GRASS-user] Retrieve current region ncols and rrows in Python

2010-10-18 Thread katrin eggert
Greetings For a small python script that I'm making I need the number of cols and rows that are currently active. I've found for a C routine :) but not for a Python Script. I believe it's simple but.. Thanks Kat ___ grass-user mailing list

Re: [GRASS-user] Retrieve current region ncols and rrows in Python

2010-10-18 Thread Martin Landa
2010/10/18 katrin eggert katrineggert1...@gmail.com: For a small python script that I'm making I need the number of cols and rows that are currently active. I've found for a C routine :) but not for a grass.region() [1] Martin [1]

Re: [GRASS-user] Retrieve current region ncols and rrows in Python

2010-10-18 Thread Mohammed Rashad
see this http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/doc/python/example_ctypes.py On Mon, Oct 18, 2010 at 10:35 PM, katrin eggert katrineggert1...@gmail.comwrote: Greetings For a small python script that I'm making I need the number of cols and rows that are

Re: [GRASS-user] Retrieve current region ncols and rrows in Python

2010-10-18 Thread Martin Landa
2010/10/18 Mohammed Rashad mohammedrasha...@gmail.com: see this http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/doc/python/example_ctypes.py you are referring to ctypes python interface, not the python scripting library. They are two different things, ctypes is the python

Re: [GRASS-user] Question about r.in.xyz

2010-10-18 Thread Hamish
Franz wrote: I have a simple question related with r.in.xyz: When I import a ASCII file I do this: r.in.xyz input=C:\Test_areas\graphbased\filev2 output=v...@permanent But in the metadata I get the following: - number of categories: 255 = Why is this? I haven't set anything that's simply a

[GRASS-user] Re: v.db.join

2010-10-18 Thread Markus Neteler
On Fri, Oct 8, 2010 at 12:56 PM, Jón Eiríksson j...@hi.is wrote: Hi, I have a truncation problem with v.db.join. This has been raised before - ... The new data columns are apparently defined as 1 character long, and the data become truncated accordingly, much against my intention. I use

Re: [GRASS-user] Type of data to be used in i.maxlik

2010-10-18 Thread Markus Neteler
On Fri, Oct 15, 2010 at 1:54 PM, Kim Besson kimbesson1...@gmail.com wrote: Greetings Before I used i.maxlik I decided to give a look at the code. And I have one question: - the input data, I mean the data inside the group, must it be CELL (integers that range 0-255) or can it be DOUBLE

Re: [GRASS-user] v.db.join script

2010-10-18 Thread Markus Neteler
On Fri, Oct 15, 2010 at 2:08 PM, Micha Silver mi...@arava.co.il wrote: Hi Jon: (Jon, sorry for my previous email, I missed this thread). So we're pretty clear that this problem creeps up only on PostgreSQL and MySQL based vector layers. I checked in the documentation and both databases will