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

Andres Kuusk andres at aai.ee
Tue Oct 18 06:42:26 EDT 2011



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) using v.select, operator=within

Building areas...
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
Topology was built
Number of nodes: 577
Number of primitives: 577
Number of points: 577

All these points are inside the areas 1, 2, and 3 of the area vector "rami".

> Also output of v.info on the area vector

Area vector is "rami":
   Type of map: vector (level: 2)
   Number of points:       0               Number of centroids:  3
   Number of lines:        0               Number of boundaries: 3
   Number of areas:        3               Number of islands:    3
   Map is 3D:              No
   Number of dblinks:      1


> 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 ccolumn=nuav scolumn=uav8min --verbose
(Tue Oct 18 12:36:58 2011) Command finished (0 sec)


> I am using GRASS-7, r47868.

Andres


More information about the grass-user mailing list