[GRASS-user] v.to.rast problem

José Carlos Guerrero Antúnez jcgantunez at gmail.com
Sun Dec 18 19:42:04 EST 2011


Hello Miltinho,

db.describe of the vector file "Uruguay"

ols: 7
nrows: 1
Column 1: cat:INTEGER:11
Column 2: IDR_ID:INTEGER:11
Column 3: NAME:CHARACTER:28
Column 4: NOMBRE:CHARACTER:28
Column 5: GMI_CNTRY:CHARACTER:11
Column 6: REGION:CHARACTER:17
Column 7: MAYUS:CHARACTER:36



*I am proceeding in this way,*
*
*
*File/Map type conversions/Vector to raster*

*Options*
Name of input vector map
Uruguay at PERMANENT

Name for output raster map
Uruguay_v-to-raster

Source of raster values:
attr

Raster value (for use=val)

Number of rows  to hold memory:
4096

Allow overwrite (not)
Run quietly (not)

*Selection*
Layer number
1
Feature type
point, line, area

*Attributes*
Name of column for "attr" parameter  (data type must be numeric)
cat
Name of color definition column (with RRR:GGG:BBB entries)

Name of column used as raster category labels


*With this configuration,*
v.to.rast input=Uruguay at PERMANENT layer=1 type=point,line,area
output=Uruguay_v-to-raster use=attr column=cat value=1 rows=4096

Loading data
Reading areas...
Reading features...
Converted areas: 1 of 1
Converted points/Lines: 0 of 0
v.to.rast complete.
Writing raster map....

How long will it take to complete?

Thank you/Muito obrigado,

José Guerrero


El 18 de diciembre de 2011 21:47, Milton Cezar Ribeiro <
miltinho.astronauta at gmail.com> escribió:

> Hola José,
>
> Send also
> db.describe of your map and the complete command of v.to.rast that you
> are using.
> Maybe you need to use something like:
>
> v.to.rast input=yourmap output=yourmap_rast use=attr
> column=PUT_A_NUMERIC_COLUMN
>
> best wishes
>
> miltinho
>
> 2011/12/18, José Carlos Guerrero Antúnez <jcgantunez at gmail.com>:
> > Hi,
> >
> > I am working with GRASS 6.4.1(2011) on a OSX 10.6.8 (MaBookPro).
> >
> > When I do the process for importing with v.to.rast,
> >
> > According to different "Source of raster values":
> > - attr
> > Column parameter missing (or use value parameter))
> > - cat (Loading data, Reading areas, Reading features, Writing raster
> map...)
> > the process becomes eternal
> > - val (loading data, converted areas: 1 of 1, Converted points/lines: 0
> of
> > 0, t.to.rast complete, Reading features, Writing raster map,...)
> > The process becomes eternal
> > - z (Loading data)
> > Vector map <Uruguay at PERMANENT> is not 3D
> > - dir (Loading data, Reading features, Writing raster map, Converted
> areas:
> > 0 of 1, Converted pointes/lines: 0 of 0, v.to.rast complete)
> > It is not created.
> >
> > Vector file data are showed below:
> >
> +----------------------------------------------------------------------------+
> >  | Layer:           Uruguay at PERMANENT
> >   |
> >  | Mapset:          PERMANENT
> >   |
> >  | Location:        Sudamérica
> >  |
> >  | Database:        /Users/joseca/grass
> >   |
> >  | Title:
> >   |
> >  | Map scale:       1:1
> >   |
> >  | Map format:      native
> >    |
> >  | Name of creator: joseca
> >    |
> >  | Organization:
> >    |
> >  | Source date:     Sun Dec 18 19:31:15 2011
> >    |
> >
> |----------------------------------------------------------------------------|
> >  |   Type of Map:  vector (level: 2)
> >    |
> >  |
> >    |
> >  |   Number of points:       0               Number of areas:      1
> >    |
> >  |   Number of lines:        0               Number of islands:    1
> >    |
> >  |   Number of boundaries:   1               Number of faces:      0
> >    |
> >  |   Number of centroids:    1               Number of kernels:    0
> >    |
> >  |
> >    |
> >  |   Map is 3D:              No
> >   |
> >  |   Number of dblinks:      1
> >    |
> >  |
> >    |
> >  |         Projection: x,y
> >    |
> >  |               N:  30:06:02.013245S    S:  34:58:40.005798S
> >   |
> >  |               E:  53:05:42.004395W    W:  58:26:19.037476W
> >   |
> >  |
> >    |
> >  |   Digitization threshold: 0
> >    |
> >  |   Comments:
> >    |
> >  |
> >    |
> >
> +----------------------------------------------------------------------------+
> >
> >
> > Thank you,
> >
> > José Guerrero
> >
>
>
> --
>
> Miltinho - mcr at rc.unesp.br
> Laboratório de Ecologia Espacial e Conservação - LEEC
> Depto de Ecologia - UNESP - Rio Claro
> Av. 24A, 1515- Bela Vista
> 13506-900 Rio Claro, SP, Brasil
>
>
> http://www.rc.unesp.br/ib/ecologia/
> Fone: +55 19 3526-9647
> Cel: 19 9853-3220 / 19 9853-5430
>



-- 
################################################################
Dr. José Carlos Guerrero
Laboratorio de Desarrollo Sustentable y Gestión Ambiental del Territorio
(LDSGAT)
Instituto de Ecología y Ciencias Ambientales (IECA)
Facultad de Ciencias
Universidad de la República
Montevideo-URUGUAY
################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20111218/22a46f2f/attachment.html


More information about the grass-user mailing list