[GRASS-user] v.to.rast

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Thu Jul 30 04:59:36 PDT 2015

Hi Patrick,

From my experience r.in.xyz is very fast.
How many points are you processing (v.info pt) and what are your region settings (g.region –up)?

In order to find out where time is spend yo could split upt the process into two steps:
v.out.ascii input=pt output=./tmp column=VAL
r.in.xyz input=./tmp z=4 output=pt method=sum


From: grass-user-bounces at lists.osgeo.org [mailto:grass-user-bounces at lists.osgeo.org] On Behalf Of patrick s.
Sent: 30. juli 2015 10:18
To: Markus Neteler
Cc: GRASS user list
Subject: Re: [GRASS-user] v.to.rast


I tested the approach you proposed, but seems to be very slow for large datasets: I am processing ~1000.000 points of observation on a 25m-Grid across Switzerland, where only few cells have multiple points inside. While v.to.rast takes a few minutes for conversion, the combination "v.out.ascii input=pt output=- column=VAL | r.in.xyz input=- z=4 output=pt method=sum" has been running for multiple hours and is still in progress.

Is there any alternative to run this conversion? I need it to run neighborhood analyses as kernel density with population field, i.e. r.neighbors in=pt out=pt_dens -c size=300 meth=sum. Maybe there is an approach to directly use the vector data and avoid conversion- something as v.neighbors meth=sum?

Thanks for you help,

On 24.07.2015 04:13, Markus Neteler wrote:

On Thu, Jul 23, 2015 at 11:00 AM, patrick s. <patrick_gis at gmx.net><mailto:patrick_gis at gmx.net> wrote:

Dear all

I am puzzled on the behavior of v.to.rast. When several points fall into one

gridcell, the raster seems to get one value but not the sum of these. Is

there a way to sum these up instead?

Yes. I have added a related example here:


(while it does not really fit to that manual page it is expected

there. Perhaps we need to really enhance v.to.rast to do such a job

right away).



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150730/263eb693/attachment-0001.html>

More information about the grass-user mailing list