[GRASS-user] test raster or vector

Maciej Sieczka tutey at o2.pl
Thu Oct 26 11:46:49 EDT 2006


Michaël Rabotin wrote:
> Thanks a lot for your responses
> In the same way, is it a method to know for a vector map if it is a
> point, a
> line or a polygon vector ?
> because in a script I've to do an overlay but this command doesn't work for
> point vector (so I've to use v.select) but before to use one of these
> commands I've to know the type of geometry of my vector

In GRASS you can have different geometries stored in one vector map.

One way to see whether there are points in your vector map is to parse
the v.info output -  in GRASS 6.3 CVS Jachym has added a -t flag for a
nicely parsable, terse output.

Maciek




More information about the grass-user mailing list