Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Grazia Zulian
Hi Anna It should add a new field to a vector with a statistic derived from a raster. It works manually. Not in the pytho scrip. Is the syntax correct? Inviato da iPhone > Il giorno 23/ott/2015, alle ore 19:07, Anna Petrášová > ha scritto: > > > >> On Fri, Oct 23, 2015 at 10:31 AM, Gra wro

Re: [GRASS-user] Something wrong: Reprojection of raster maps in various platforms: projected coordinates are different

2015-10-23 Thread Uttam Kumar
Thank you all for the suggestions. I could resolve the problem. GRASS gives me same projected coordinates as ENVI. On Fri, Oct 23, 2015 at 12:46 AM, Markus Neteler wrote: > > On Oct 23, 2015 2:22 AM, "Uttam Kumar" wrote: > > ... > > GRASS 7.1.svn (SanLuis_Reservoir_LAEA):~ > v.info -g Image

Re: [GRASS-user] Query vector type has problems

2015-10-23 Thread Andres Kuusk
Hi! Hi Andres, please try the latest trunk (at least r66460 [1, 2]). I did not test r66460, in r66584 the v.what.vect works on 3D vector, thank you! Andres ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/li

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Helmut Kudrnovsky
Markus Neteler wrote > On Fri, Oct 23, 2015 at 5:43 PM, Lorenzo Bottaccioli > < > lorenzo.bottaccioli@ > > wrote: >> Hi Markus, >> >> I don't see any copy button in the GUI of r.external. > > If you launch it from the command line, without parameters, you get > the "native" GUI of r.external whi

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Anna Petrášová
On Fri, Oct 23, 2015 at 10:31 AM, Gra wrote: > I'm using > > v.rast.stat in a python code > > it's v.rast.stats and use map instead of vector, please see manual page: https://grass.osgeo.org/grass70/manuals/v.rast.stats.html > > > grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300'

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Markus Neteler
On Fri, Oct 23, 2015 at 5:43 PM, Lorenzo Bottaccioli wrote: > Hi Markus, > > I don't see any copy button in the GUI of r.external. If you launch it from the command line, without parameters, you get the "native" GUI of r.external which comes with the copy button. best Markus

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Lorenzo Bottaccioli
Hi Markus, I don't see any copy button in the GUI of r.external. Tnx 2015-10-23 17:20 GMT+02:00 Markus Neteler : > > On Oct 23, 2015 4:40 PM, "Lorenzo Bottaccioli" @ gmail.com > > wrote: > > > > Hi Markus, > > > > I have tried to read the manual of r.external but is not clear how it > works wi

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Markus Neteler
On Oct 23, 2015 4:31 PM, "Gra" wrote: > > I'm using > > v.rast.stat in a python code > > > > grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= "r_main_roads_dist" + suffix, colprefix I'm on mobile and cannot check but colprefix seems to be an abbreviation. Not sure if the

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Markus Neteler
On Oct 23, 2015 4:40 PM, "Lorenzo Bottaccioli" @ gmail.com > wrote: > > Hi Markus, > > I have tried to read the manual of r.external but is not clear how it works with DB as mentioned I would like to improve the manual. I am aware that your task is not explained yet. > , is very clear how it work

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Moritz Lennert
On 23/10/15 16:31, Gra wrote: I'm using v.rast.stat in a python code grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= "r_main_roads_dist" + suffix, colprefix="AVG_mainroads", method="average") apparently it doens't like my syntax Do you get an error message ? Mor

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Lorenzo Bottaccioli
Hi Markus, I have tried to read the manual of r.external but is not clear how it works with DB, is very clear how it works with files. Using the GUI of r.external and connecting to the db i cannot see the raster map. I've used v.external with DB and that one was easy. Regards lorenzo 2015-10-23

[GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Gra
I'm using v.rast.stat in a python code grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= "r_main_roads_dist" + suffix, colprefix="AVG_mainroads", method="average") apparently it doens't like my syntax ideas? thanks ___ gras

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Markus Neteler
Hi Lorenzo On Oct 23, 2015 2:43 PM, "Lorenzo Bottaccioli" < lorenzo.bottacci...@gmail.com> wrote: > > Hi Markus, > > I did not try with any command in the command line, I'have just tried with the GUI of r.in.gdal selecting database. Can you give a suggestion for the use of "source=" option in the

Re: [GRASS-user] External raster from PostGIS

2015-10-23 Thread Lorenzo Bottaccioli
Hi Markus, I did not try with any command in the command line, I'have just tried with the GUI of r.in.gdal selecting database. Can you give a suggestion for the use of "source=" option in the command line of r.external in order to select data from a PostGIS db? Tnx Lorenzo 2015-10-22 18:34 GMT+

Re: [GRASS-user] Problems running g.gui.gcp

2015-10-23 Thread Johannes Radinger
On Fri, Oct 23, 2015 at 1:37 PM, Anna Petrášová wrote: > > On Oct 23, 2015 6:04 AM, "Johannes Radinger" > wrote: > > > > > > > > On Fri, Oct 23, 2015 at 11:19 AM, Moritz Lennert < > mlenn...@club.worldonline.be> wrote: > >> > >> On 23/10/15 10:56, Johannes Radinger wrote: > >>> > >>> > >>> > >>>

Re: [GRASS-user] Problems running g.gui.gcp

2015-10-23 Thread Anna Petrášová
On Oct 23, 2015 6:04 AM, "Johannes Radinger" wrote: > > > > On Fri, Oct 23, 2015 at 11:19 AM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: >> >> On 23/10/15 10:56, Johannes Radinger wrote: >>> >>> >>> >>> On Fri, Oct 23, 2015 at 10:17 AM, Moritz Lennert >>> mailto:mlenn...@club.worldonlin

Re: [GRASS-user] Problems running g.gui.gcp

2015-10-23 Thread Johannes Radinger
On Fri, Oct 23, 2015 at 11:19 AM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: > On 23/10/15 10:56, Johannes Radinger wrote: > >> >> >> On Fri, Oct 23, 2015 at 10:17 AM, Moritz Lennert >> mailto:mlenn...@club.worldonline.be>> >> wrote: >> >> On 22/10/15 16:25, Johannes Radinger wrote:

Re: [GRASS-user] Problems running g.gui.gcp

2015-10-23 Thread Moritz Lennert
On 23/10/15 10:56, Johannes Radinger wrote: On Fri, Oct 23, 2015 at 10:17 AM, Moritz Lennert mailto:mlenn...@club.worldonline.be>> wrote: On 22/10/15 16:25, Johannes Radinger wrote: Dear GRASS users, Today I wanted to try the georectification tool g.gui.gcp in GRA

Re: [GRASS-user] Problems running g.gui.gcp

2015-10-23 Thread Johannes Radinger
On Fri, Oct 23, 2015 at 10:17 AM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: > On 22/10/15 16:25, Johannes Radinger wrote: > >> Dear GRASS users, >> >> Today I wanted to try the georectification tool g.gui.gcp in GRASS 7 for >> the first time. I was basically following the description o

Re: [GRASS-user] Problems running g.gui.gcp

2015-10-23 Thread Moritz Lennert
On 22/10/15 16:25, Johannes Radinger wrote: Dear GRASS users, Today I wanted to try the georectification tool g.gui.gcp in GRASS 7 for the first time. I was basically following the description on the GRASS wiki (https://grasswiki.osgeo.org/wiki/Georeferencing). In particular, I have a photograph

Re: [GRASS-user] Something wrong: Reprojection of raster maps in various platforms: projected coordinates are different

2015-10-23 Thread Markus Neteler
On Oct 23, 2015 2:22 AM, "Uttam Kumar" wrote: ... > GRASS 7.1.svn (SanLuis_Reservoir_LAEA):~ > v.info -g Image_boundary_box > > north=823262.924419209 > south=652223.643294404 > east=-167210.022680164 > west=-518209.054236328 > top=0.00 > bottom=0.00 > > > I should have got this (This is