Re: [GRASS-user] odd r.stats output, after r.resample.stats

2011-10-18 Thread Markus Metz
On Tue, Oct 18, 2011 at 9:31 PM, Kirk Wythers wrote: > I am trying to aggregate resample a 250 meter resolution raster to 1000m > resolution as the most frequently occurring value in the 250m map. I am using: > > GRASS 6.4.1 (northcentralus_albersequalarea):~ > r.resamp.stats -w > input=mnwimifn

Re: [GRASS-user] v.in.ogr of shp file: no centroids but data in table

2011-10-18 Thread Markus Metz
On Tue, Oct 18, 2011 at 7:38 PM, Sebastian Schubert wrote: > On 18/10/11 17:37, Markus Metz wrote: >> Sebastian Schubert wrote: >>> Hi all, >>> >>> I imported a shape file into grass >>> >>> v.in.ogr --o basel_gelaende.shp out=basel_gelaende >>> >>> resulting in: >>> Number of nodes: 38602 >>> Num

[GRASS-user] Re: Envoking GRASS in a python script

2011-10-18 Thread kungphil
Thanks for your help Glynn I have now got it to work! Just a couple of things, this... os.environ['PATH'] = os.pathsep.join(os.environ['PATH'],bindir,scriptdir) ...should have [] around the arguments so as to make a list as the join function can take only one argument, so it looks like this...

[GRASS-user] odd r.stats output, after r.resample.stats

2011-10-18 Thread Kirk Wythers
I am trying to aggregate resample a 250 meter resolution raster to 1000m resolution as the most frequently occurring value in the 250m map. I am using: GRASS 6.4.1 (northcentralus_albersequalarea):~ > r.resamp.stats -w input=mnwimifnfftgk7wt175v3_250m output=mnwimifnfftgk7wt175v3_1000m method=mo

Re: [GRASS-user] v.vect.stats has no results

2011-10-18 Thread Andres Kuusk
Hi, I am sorry, the module v.vect.stats was missing in my set-up. I tried to start it through GUI-CLI, that was the output. Now I upgraded GRASS-7 to r48840 or r48841 (I guess, sorry, I cannot check, the Internet connection of office is down), and v.vect.stats works fine. Thanks for your sup

Re: [GRASS-user] v.in.ogr of shp file: no centroids but data in table

2011-10-18 Thread Markus Metz
Sebastian Schubert wrote: > Hi all, > > I imported a shape file into grass > > v.in.ogr --o basel_gelaende.shp out=basel_gelaende > > resulting in: > Number of nodes: 38602 > Number of primitives: 115042 > Number of points: 0 > Number of lines: 0 > Number of boundaries: 115042 > Number of centroids

[GRASS-user] v.in.ogr of shp file: no centroids but data in table

2011-10-18 Thread Sebastian Schubert
Hi all, I imported a shape file into grass v.in.ogr --o basel_gelaende.shp out=basel_gelaende resulting in: Number of nodes: 38602 Number of primitives: 115042 Number of points: 0 Number of lines: 0 Number of boundaries: 115042 Number of centroids: 0 Number of areas: 76441 Number of isles: 1 Num

Re: [GRASS-user] v.to.points

2011-10-18 Thread ALT SHN
Thanks a lot! (actually i'm feeling kinda dumb!! :) ) I assumed the output would be external to GRASS because of the browser buttom [. . .] Problem solved! 2011/10/18 Marcello Gorini > As far as I know, v.to.points does not write to an external file, it > creates a point vector map within GRAS

Re: [GRASS-user] v.to.points

2011-10-18 Thread Marcello Gorini
As far as I know, v.to.points does not write to an external file, it creates a point vector map within GRASS. So you should do output=pointmap and then use another module such as v.out.ascii to generate an actual text file with the points. Also, when you do that, do not enclose the output portion

Re: [GRASS-user] v.to.points

2011-10-18 Thread Martin Landa
2011/10/18 ALT SHN : > v.to.points input=AplanadoGRASS@InterpolationTEST type=line llayer=1 > "output=C:/Users/Andre > Mano/Desktop/InterpolationBenchmark/Vectores_Pontos/pontosaplanado" dmax=20 > -v `output` is not a path, it's name of vector map created in the current mapset. Martin -- Martin

[GRASS-user] v.to.points

2011-10-18 Thread ALT SHN
Hello, I'm having problmes with module v.to.points. The input is a line shapefile with only two atributtes (both of them integers). I always get this error message: v.to.points input=AplanadoGRASS@InterpolationTEST type=line llayer=1 "output=C:/Users/Andre Mano/Desktop/InterpolationBenchmark/Vect

Re: [GRASS-user] Envoking GRASS in a python script

2011-10-18 Thread Glynn Clements
kungphil wrote: > I am trying to envoke GRASS 6.4.1 from a python(2.6) script on a Solaris 10 > OS, I am creating the WIND, PROJ_INFO and PROJ_UNITS from a PSQL database > table and this seems to work fine as it creates a vaible GRASS session. The > next seesion is the part I am havin a problem

Re: [GRASS-user] v.vect.stats has no results

2011-10-18 Thread Markus Metz
Andres Kuusk wrote: > > [..] > >> and v.vect.stats after g.gisenv set="DEBUG=2". > > (Tue Oct 18 12:36:48 2011) > g.gisenv set=DEBUG=2 > (Tue Oct 18 12:36:48 2011) Command finished (0 sec) > (Tue Oct 18 12:36:58 2011) > v.vect.stats -p points=tmp4 areas=rami type=point method=average > pcolumn=uav8

Re: [GRASS-user] v.vect.stats has no results

2011-10-18 Thread Andres Kuusk
Hi, .. v.vect.stats uses the key column recorded in the db link info. If there would be a problem with the points vector, v.vect.stats should print something like area_cat|count|average 1|0|null 2|0|null 3|0|null Maybe rebuilding topology helps? I created a new vector of points (tmp4) usi

Re: [GRASS-user] v.vect.stats has no results

2011-10-18 Thread Markus Metz
On Tue, Oct 18, 2011 at 9:45 AM, Andres Kuusk wrote: > > > Hi! > > What I am doing wrong, or is this the problem of v.vect.stats? > > I have an area vector "area_vector" of three rectangular areas and a vector > "point_vector" with numerous points inside these areas. > The output of the command >

[GRASS-user] Is it possible to derive both banks of a river ?

2011-10-18 Thread Pankaj Kr Sharma
Dear friends, I derived this accumulation map from 90m srtm data. Across the river, the accumulation varies and the river line passes through the maximum of these values. Typical Scenario: On right bank Acc= 3 Near Right Bank Acc=10

[GRASS-user] v.vect.stats has no results

2011-10-18 Thread Andres Kuusk
Hi! What I am doing wrong, or is this the problem of v.vect.stats? I have an area vector "area_vector" of three rectangular areas and a vector "point_vector" with numerous points inside these areas. The output of the command v.vect.stats -p points=point_vector areas=area_vector type=point p