<div dir="ltr"><div><div>I never realized there was a rows parameter. oops<br><br></div>The message is understandable but I was thinking more in terms of the users who have set the resolution too high without realizing, or using wrong setting in the beginning. So maybe, add:<br></div>adjust 'rows' parameter or check region resoluiton with g.region<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 6, 2014 at 1:24 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Sep 6, 2014 at 12:32 PM, Daniel Victoria<br>
<<a href="mailto:daniel.victoria@gmail.com">daniel.victoria@gmail.com</a>> wrote:<br>
> Maybe, instead of throwing a memory error, grass could check the region size<br>
> and if the number of cells is too high, ask for user confirmation or suggest<br>
> how the user can change the region.<br>
<br>
I have for now added a message:<br>
<br>
# test case:<br>
GRASS 7.1.svn (nc_spm_08_grass7):~ > g.region vect=zipcodes_wake res=5 -pa<br>
projection: 99 (Lambert Conformal Conic)<br>
zone:       0<br>
datum:      nad83<br>
ellipsoid:  a=6378137 es=0.006694380022900787<br>
north:      258110<br>
south:      196320<br>
west:       610040<br>
east:       677070<br>
nsres:      5<br>
ewres:      5<br>
rows:       12358<br>
cols:       13406<br>
cells:      165671348<br>
<br>
# new message about RAM added:<br>
GRASS 7.1.svn (nc_spm_08_grass7):~ > v.to.rast zipcodes_wake<br>
out=zipcodes_wake_area use=attr attrcol=SHAPE_Area --o<br>
Using at least 0.4 GB of RAM (adjust with 'rows' parameter)<br>
Pass 1 of 4:<br>
Reading areas...<br>
[...]<br>
<br>
<br>
<br>
# other test case:<br>
GRASS 7.1.svn (nc_spm_08_grass7):~ > g.region vect=zipcodes_wake res=1 -pa<br>
projection: 99 (Lambert Conformal Conic)<br>
...<br>
rows:       61780<br>
cols:       67020<br>
cells:      4140495600<br>
<br>
GRASS 7.1.svn (nc_spm_08_grass7):~ > v.to.rast zipcodes_wake<br>
out=zipcodes_wake_area use=attr attrcol=SHAPE_Area --o rows=10000<br>
Using at least 4.6 GB of RAM (adjust with 'rows' parameter)<br>
...<br>
<br>
Is that new message understandable?<br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br></div>