Re: [GRASS-user] Using db.out.ogr to export attributes to a csv file

2013-04-02 Thread Markus Neteler
Hi Dor, On Tue, Apr 2, 2013 at 10:58 PM, דור פרידמן wrote: > Hi Markus and Moritz, > > I tried again to run db.out.ogr as follows, but it seems that it doesn't > support lines. Should I add something to the command? or update something in > GRASS? Yes, of course :) Since I updated it in SVN, you

Re: [GRASS-user] Using db.out.ogr to export attributes to a csv file

2013-04-02 Thread דור פרידמן
Hi Markus and Moritz, I tried again to run db.out.ogr as follows, but it seems that it doesn't support lines. Should I add something to the command? or update something in GRASS? I've also tried in another query to use layer in my syntax, yet it didn't recognize it as a valid one. I apply the same

Re: [GRASS-user] [Fwd: r.cost vs. costallocation (arcgis)]

2013-04-02 Thread Markus Neteler
On Tue, Apr 2, 2013 at 7:01 PM, Markus Metz wrote: > On Tue, Apr 2, 2013 at 5:35 PM, Markus Neteler wrote: >> On Mon, Apr 19, 2010 at 7:27 PM, Markus Metz: >>> >>> António M. Rodrigues: >>> I've been reading about scripting and programming in GRASS, since I believe the solution pro

Re: [GRASS-user] [Fwd: r.cost vs. costallocation (arcgis)]

2013-04-02 Thread Markus Metz
On Tue, Apr 2, 2013 at 5:35 PM, Markus Neteler wrote: > On Mon, Apr 19, 2010 at 7:27 PM, Markus Metz: >> >> António M. Rodrigues: >> >>> >>> I've been reading about scripting and programming in GRASS, since I >>> believe the solution probably >>> involves writing some code based on r.cost. >>> >>>

Re: [GRASS-user] How to assign costs to nodes using v.net.distance

2013-04-02 Thread Markus Metz
On Mon, Apr 1, 2013 at 6:20 PM, דור פרידמן wrote: > Thanks Markus. > > I will appreciate if you could direct me to the place I can ask for an > improvement of the v.net.distance tool. https://trac.osgeo.org/grass/ > > Regarding to the current analysis, I have though of two solutions and would > l

Re: [GRASS-user] Using db.out.ogr to export attributes to a csv file

2013-04-02 Thread Moritz Lennert
On 01/04/13 17:38, Markus Neteler wrote: Since we are in GRASS 7 (where we may change parameters), I would not mind to see a more intuitive solution here. For simple attribute export to csv, v.db.select with the file= parameter is a nice and simple solution. Moritz __

Re: [GRASS-user] How to assign costs to nodes using v.net.distance

2013-04-02 Thread Moritz Lennert
On 01/04/13 18:20, דור פרידמן wrote: Thanks Markus. It might be valuable to add an option to assign costs to the destination nodes, either for my purpose when there is an actual gate fee that influence the total cost (e.g. waste management, national parks and reserves) or when the "gate fee" or

Re: [GRASS-user] Raster classification by typical methods?

2013-04-02 Thread Moritz Lennert
On 29/03/13 16:02, Tim Michelsen wrote: Hello user list, I have a question concerning raster works: classifying in by typical methods How can I create a reclassified raster from another raster with continuous values where the classification follows the following rules * equal steps (a class bre

Re: [GRASS-user] Using db.out.ogr to export attributes to a csv file

2013-04-02 Thread Markus Neteler
On Mon, Apr 1, 2013 at 6:10 PM, דור פרידמן wrote: > > Thanks Markus. > > I've corrected my syntax, but have received a new error (it actually export > an empty file: 'nothing to export'), and the csv file is not being created. > > That is my syntax: >> >> GRASS 7.0.svn (Israel):~ > db.out.ogr inpu

Re: [GRASS-user] R and GRASS

2013-04-02 Thread Rainer M. Krug
Paulo van Breugel writes: > You probably need to start a monitor with d.mon first. Also, you > should set intern to False. For example: > > library(spgrass6) > execGRASS("d.mon", start="x1") > execGRASS("d.vect", map="due") I would suggest to ask R-GRASS questions at the list R-sig-geo https://s

Re: [GRASS-user] R and GRASS

2013-04-02 Thread Ahmadou Dicko
As I told you before, I use GRASS 7 that's why I can use wxPython GUI and monitor (hence 'wx0'). In GRASS 6.4.3 I think that the name of the monitor are somewhat different. I'm not sure but I think you'll need something like this : execGRASS("d.mon", start = "x0") On Tue, Apr 2, 2013 at 8:59

Re: [GRASS-user] R and GRASS

2013-04-02 Thread Paulo van Breugel
You probably need to start a monitor with d.mon first. Also, you should set intern to False. For example: library(spgrass6) execGRASS("d.mon", start="x1") execGRASS("d.vect", map="due") Cheers, Paulo On Tue 02 Apr 2013 09:36:09 AM CEST, matthias lauber wrote: Hey folks, I am somewhat new to

[GRASS-user] R and GRASS

2013-04-02 Thread matthias lauber
Hey folks,   I am somewhat new to GRASS and I am trying to get GRASS to talk with R in the way i want it to. I am using the GRASS Version 6.4.2 and R 2.15.3 with RStudio.   My question is, how I can use execGRASS() from spgrass6 to do EXACTLY what GRASS would do? When I try to simply display