[GRASS-user] check vector geometry
tutey at o2.pl
Sun Sep 24 08:30:32 EDT 2006
Jachym Cepicky wrote:
> On Sun, Sep 24, 2006 at 12:38:55PM +0200, Maciej Sieczka wrote:
>> Thanks, indeed. However, the problem is that it is missing the number
>> of nodes.
>> Another problem with v.info's output is also that it is hardly
>> parsable. A -g flag would be a very nice addition to v.info.
>> Just for the record, also the number of primitives would be usefull. I
>> know it's a summary of all the primitives present
>> (centroids+boundaries+lines+points), but it wouldn't do harm to mention
>> it too, and it could be usefull.
> v.info is allready there:
> v.info -g cr
> which is corresponding to g.region -g and r.info -g
> I added option -t (for "topology") - could you test this patch (for
> main.c), please?
Thanks very much! Not bad. Buts:
1. if -g and -t flags used together, -t is ignored; could they work
2. what you meant as propably "nlines", got "nalines"
3. the number of primitives should come before "is map3d"
4. I think the 'n' prefix is not necessary at all
> One problem: maybe, I'm missing something, but I can not find out how to
> get number of nodes for vector file :-(
Hmm, maybe v.build provides a hint?
More information about the grass-user