[GRASS-user] regular grid

Hello,

how can I create a regular grid of proints within a given area defined bz
its border?

Thanks

Tomas

Tomas Lanczos wrote:

how can I create a regular grid of proints within a given area defined
bz its border?

g.region to set up the border and point resolution, then

r.mapcalc surface=1
r.to.vect feature=point in=surface out=dots

if you will have more than a million or three grid points you might want
to use the "-b" flag.

note this will put grid points at the middle of each raster cell
(x= bound + 1/2 res), adjust you bounds by half a cell if this isn't
what you want.

if you just want the coords,
  r.stats -1gn surface | cut -f1-2 -d' '

Hamish