[GRASSLIST:6594] Re: "Grid" of points?
hamish_nospam at yahoo.com
Thu Apr 21 19:35:03 EDT 2005
> > Is there any way to produce a set of evenly spaced vector points in
> > GRASS?
> v.mkgrid will generate a grid with centroids and boundaries.
> you could extract out the centroids or corners using v.extract
> Perhaps others know an easier way.
> there is a way to convert vector lines into points at a regular
> interval.. it is called v.to.points
another trick is to set the region at the target size and ns,ew
resolution with g.region, then make a raster map with "r.mapcalc one=1"
and then use 'r.to.vect feature=point' to convert each raster cell to a
vector point, leaving you with a grid of points.
More information about the grass-user