[GRASS-user] rasterizing points

Markus Neteler neteler at itc.it
Wed Mar 21 08:55:14 EDT 2007


xrubio at arsystel.com wrote on 03/21/2007 11:38 AM:
> Hi all, I'm trying to raster a vector layer with 3 or 4 points but I don't
> know why it is not working.
> The command I'm using is:
>
> v.to.rast input=landmarks_v output=landmarks_r value=1 use=val
>
> but it simply generates an empty raster map. I think that grass is trying
> to rasterize lines:
>
> Loading vector information ...                  0 mins 00 secs
> Sorting areas by size ... 0 areas               0 mins 00 secs
> Processing lines ... 4 lines                    0 mins 00 secs
> Writing raster map ...                          0 mins 00 secs
> Creating support files for raster map ...       0 mins 00 secs
>
> but as the information are points it is not generating any line. I want to
> create a raster map with null values except for 3 or 4 cells (where there
> are points) with '1'.
> Any idea about how it can be done?
>   

what does
r.univar landmarks_r
say?

To see the map, try this:

g.region rast=landmarks_r -p
d.erase
d.rast landmarks_r


Markus

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------




More information about the grass-user mailing list