[GRASS-user] Having some difficulties with v.to.rast

Greetings I have thwe following vector file:

v.info map=teste01@Brazil
±---------------------------------------------------------------------------+
| Layer: teste01@Brazil |
| Mapset: Brazil |
| Location: Brazil |
| Database: C:\Brazil |
| Title: |
| Map scale: 1:1 |
| Map format: native |
| Name of creator: lp |
| Organization: |

Source date: Fri Nov 05 12:55:08 2010
Type of Map: vector (level: 2)
Number of points: 0 Number of areas: 2
Number of lines: 0 Number of islands: 2
Number of boundaries: 2 Number of faces: 0
Number of centroids: 0 Number of kernels: 0
Map is 3D: No
Number of dblinks: 0
Projection: Universal Transverse Mercator (zone 0)
N: 9292933.53305786 S: 9107903.14049588
E: 669329.75206612 W: 445299.97933884
Digitization threshold: 0
Comments:
±---------------------------------------------------------------------------+
(Fri Nov 05 12:58:04 2010) Command finished (0 sec)

And I’m not being able to convert to rast using v.to.rast

If I do:
– v.to.rast --overwrite input=teste01@Brazil output=teste01 type=area I get:
ERROR: Column parameter missing (or use value parameter)

– v.to.rast --overwrite input=teste01@Braziloutput=teste01 use=cat type=area I get.
Loading data…
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Pass 1 of 2:
Reading areas…
Reading features…
Writing raster map…
Pass 2 of 2:
Reading areas…
Writing raster map…
Converted areas: 2 of 2
Converted points/lines: 0 of 0
v.to.rast complete.
With an empty image

and If If I do this:

v.to.rast --overwrite input=teste01@Brazil output=teste01 use=val type=area
Loading data…
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Pass 1 of 2:
Reading areas…
Reading features…
Writing raster map…
Pass 2 of 2:
Reading areas…
Writing raster map…
Converted areas: 2 of 2
Converted points/lines: 0 of 0
v.to.rast complete.
(Fri Nov 05 13:02:08 2010) Command finished (10 sec)
Also an empty raster

What am I doing wrong?
Thanks
Luisa

Hi,

there are no areas, because there are no centroids. You can add centroids via v.centroids.

You always have to choose a "use"-parameter, otherwise the module does not know, which numbers it has to generate.

Achim

Am 05.11.2010 14:02, schrieb Luisa Peña:

  | Number of points: 0 Number of areas: 2
        |
  | Number of lines: 0 Number of islands: 2
        |
  | Number of boundaries: 2 Number of faces: 0
        |
  | Number of centroids: 0 Number of kernels: 0
        |

-- v.to.rast --overwrite input=teste01@Braziloutput=teste01 use=cat
type=area I get.
Loading data...
Area without centroid (may be OK for island)
Pass 1 of 2:
Reading areas...
Reading features...
Writing raster map...
Pass 2 of 2:
Reading areas...
Writing raster map...
Converted areas: 2 of 2
Converted points/lines: 0 of 0
v.to.rast complete.
     With an empty image