[GRASS-user] v.to.rast for a vectorial without Values

Luisa Peña wrote:

I have created a Vectorial using GRASS vector digitizer without
categories.

most vector modules require features to have categories if they
are to be processed.

How can I add a category to the vectorials in order to agfter
that, run v.to.rast?

v.category or v.centroids will do it.

"areas" in GRASS are really boundaries (no category) with a
centroid point inside them (centroid has the category).

regards,
Hamish

Hello Hamish
Regarding the v.centroids it worked. Thanks (and thanks Antonio)…

About v.category I suppose I have to do the following:
1- Create boundaries in TclTk Digitizer
2- v.category input=teste04@user1 output=output type=boundary,area step=0
3- v.to.rast this and it worked

Before I convert to raster, how can i define all boundaries/with Centroids with the same cat value?

Thanks

2010/7/27 Hamish <hamish_b@yahoo.com>

Luisa Peña wrote:

I have created a Vectorial using GRASS vector digitizer without
categories.

most vector modules require features to have categories if they
are to be processed.

How can I add a category to the vectorials in order to agfter
that, run v.to.rast?

v.category or v.centroids will do it.

“areas” in GRASS are really boundaries (no category) with a
centroid point inside them (centroid has the category).

regards,
Hamish