Did you adjust the region also?  To do this properly, you need to first scan the file using r.in.xyz to get the extents.  I&#39;d also use the shell style output.<div><br></div><div>r.in.xyz -sg input=&quot;2628cc.ORT.xyz&quot; output=&quot;dem_2628cc_25m_xyz</div>
<div><br></div><div>Should return something like:</div><div><br></div><div>n=1000 s=500 w=500 e=1000 t=### b=### </div><div>(you can ignore the t &amp; b output)</div><div><br></div><div>This is the extent of the points, which are going to be the center of the output pixels.  Since the region is defined as pixel edge, you need to expand the region 1/2 a pixel in each direction to ensure the points are in the center of the pixel.  At 25m spacing, your region should be set as:</div>
<div><br></div><div>g.region n=1012.5 s=487.5 w=487.5 e=1012.5 res=25</div><div><br></div><div>- Jamie</div><div><br><div class="gmail_quote">On Thu, May 13, 2010 at 9:02 AM, Hanlie Pretorius <span dir="ltr">&lt;<a href="mailto:hanlie.pretorius@gmail.com">hanlie.pretorius@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Jamie,<br>
<br>
I tried r.in.xyz:<br>
(r.in.xyz input=&quot;2628cc.ORT.xyz&quot; output=&quot;dem_2628cc_25m_xyz&quot;<br>
method=&quot;mean&quot; type=&quot;FCELL&quot; x=1 y=2 z=3 zscale=1.0 percent=100)<br>
<br>
but I still get the rows of no data in the result.<br>
<br>
Hanlie<br>
<div><div></div><div class="h5"><br>
<br>
&gt;<br>
&gt; You want the points to represent cell centers so you need to expand your<br>
&gt; region 1/2 pixel in all four directions.  Also look at using r.in.xyz, it<br>
&gt; works directly on this type of data.<br>
&gt;<br>
&gt; Jamie<br>
&gt;<br>
&gt; On Thu, May 13, 2010 at 7:26 AM, Hanlie Pretorius &lt;<br>
&gt; <a href="mailto:hanlie.pretorius@gmail.com">hanlie.pretorius@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve obtained DEMs in text files with columns X, Y and Z at 25m<br>
&gt;&gt; spacing. The first three entries in the text file are:<br>
&gt;&gt;<br>
&gt;&gt; -----<br>
&gt;&gt; X,Y,Z<br>
&gt;&gt; 99550,2.9883e+06,1473.47<br>
&gt;&gt; 99550,2.98828e+06,1473.57<br>
&gt;&gt; 99550,2.98825e+06,1473.63<br>
&gt;&gt; -----<br>
&gt;&gt;<br>
&gt;&gt; To me it seems the easiest way to import these is the following:<br>
&gt;&gt;<br>
&gt;&gt; 1. v.in.ascii<br>
&gt;&gt;<br>
&gt;&gt; 2. Set the region to the extents of new vector file and the resolution to<br>
&gt;&gt; 25m.<br>
&gt;&gt;<br>
&gt;&gt; 3. v.to.rast.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; This &#39;works&#39; but I get horizontal strips of no data in my raster DEM<br>
&gt;&gt; at 25m spacings.<br>
&gt;&gt;<br>
&gt;&gt; Also, when I look at the raster and the vector layer together, the<br>
&gt;&gt; vector points are not always on the edges of the raster cells.<br>
&gt;&gt;<br>
&gt;&gt; Can someone perhaps help me to fix this?<br>
&gt;&gt;<br>
&gt;&gt; g.region:<br>
&gt;&gt;<br>
&gt;&gt; projection: 99 (Transverse Mercator)<br>
&gt;&gt; zone:       0<br>
&gt;&gt; datum:      ** unknown (default: WGS84) **<br>
&gt;&gt; ellipsoid:  wgs84<br>
&gt;&gt; north:      2988300<br>
&gt;&gt; south:      2959850<br>
&gt;&gt; west:       74300<br>
&gt;&gt; east:       99550<br>
&gt;&gt; nsres:      25<br>
&gt;&gt; ewres:      25<br>
&gt;&gt; rows:       1138<br>
&gt;&gt; cols:       1010<br>
&gt;&gt; cells:      1149380<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://v.info" target="_blank">v.info</a>:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; +----------------------------------------------------------------------------+<br>
&gt;&gt;  | Layer:           dem_2628cc_25m@C83<br>
&gt;&gt;  | Mapset:          C83<br>
&gt;&gt;  | Location:        sa_tm_19deg_E<br>
&gt;&gt;  | Database:        C:\Hanlie\grassdata<br>
&gt;&gt;  | Title:<br>
&gt;&gt;  | Map scale:       1:1<br>
&gt;&gt;  | Map format:      native<br>
&gt;&gt;  | Name of creator: Administrator<br>
&gt;&gt;  | Organization:<br>
&gt;&gt;  | Source date:     Thu May 13 16:06:07 2010<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; |----------------------------------------------------------------------------|<br>
&gt;&gt;  |   Type of Map:  vector (level: 2)<br>
&gt;&gt;  |<br>
&gt;&gt;  |   Number of points:       1151529         Number of areas:      0<br>
&gt;&gt;  |   Number of lines:        0               Number of islands:    0<br>
&gt;&gt;  |   Number of boundaries:   0               Number of faces:      0<br>
&gt;&gt;  |   Number of centroids:    0               Number of kernels:    0<br>
&gt;&gt;  |<br>
&gt;&gt;  |   Map is 3D:              Yes<br>
&gt;&gt;  |   Number of dblinks:      0<br>
&gt;&gt;  |<br>
&gt;&gt;  |         Projection: Transverse Mercator<br>
&gt;&gt;  |               N:           2988300    S:           2959850<br>
&gt;&gt;  |               E:             99550    W:             74300<br>
&gt;&gt;  |               B:           1429.79    T:            1740.2<br>
&gt;&gt;  |<br>
&gt;&gt;  |   Digitization threshold: 0<br>
&gt;&gt;  |   Comments:<br>
&gt;&gt;  |<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; +----------------------------------------------------------------------------+<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://r.info" target="_blank">r.info</a>:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; +----------------------------------------------------------------------------+<br>
&gt;&gt;  | Layer:    dem_2628cc_25m@C83             Date: Thu May 13 16:15:50 2010<br>
&gt;&gt;  | Mapset:   C83                            Login of Creator:<br>
&gt;&gt; Administrator<br>
&gt;&gt;  | Location: sa_tm_19deg_E<br>
&gt;&gt;  | DataBase: C:\Hanlie\grassdata<br>
&gt;&gt;  | Title:    Categories ( dem_2628cc_25m )<br>
&gt;&gt;  | Timestamp: none<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; |----------------------------------------------------------------------------|<br>
&gt;&gt;  |<br>
&gt;&gt;    |<br>
&gt;&gt;  |   Type of Map:  raster               Number of Categories: 0<br>
&gt;&gt;  |   Data Type:    DCELL<br>
&gt;&gt;  |   Rows:         1138<br>
&gt;&gt;  |   Columns:      1010<br>
&gt;&gt;  |   Total Cells:  1149380<br>
&gt;&gt;  |        Projection: Transverse Mercator<br>
&gt;&gt;  |            N:    2988300    S:    2959850   Res:    25<br>
&gt;&gt;  |            E:      99550    W:      74300   Res:    25<br>
&gt;&gt;  |   Range of data:    min = 1429.850000  max = 1739.410000<br>
&gt;&gt;  |<br>
&gt;&gt;  |   Data Source:<br>
&gt;&gt;  |    Vector Map: dem_2628cc_25m@C83 in mapset C83<br>
&gt;&gt;  |    Original scale from vector map: 1:1<br>
&gt;&gt;  |<br>
&gt;&gt;  |   Data Description:<br>
&gt;&gt;  |    generated by v.to.rast<br>
&gt;&gt;  |<br>
&gt;&gt;  |   Comments:<br>
&gt;&gt;  |    v.to.rast input=&quot;dem_2628cc_25m@C83&quot; output=&quot;dem_2628cc_25m&quot;<br>
&gt;&gt; use=&quot;z&quot;\<br>
&gt;&gt;  |     type=&quot;point,line,area&quot; layer=1 value=1 rows=4096<br>
&gt;&gt;  |<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; +----------------------------------------------------------------------------+<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; Hanlie<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; grass-user mailing list<br>
&gt;&gt; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
&gt;&gt;<br>
</div></div>&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL:<br>
&gt; <a href="http://lists.osgeo.org/pipermail/grass-user/attachments/20100513/dd33d293/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/grass-user/attachments/20100513/dd33d293/attachment.html</a><br>
&gt;<br>
&gt; ------------------------------<br>
<div class="im">&gt;<br>
&gt; _______________________________________________<br>
&gt; grass-user mailing list<br>
&gt; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
&gt;<br>
&gt;<br>
</div>&gt; End of grass-user Digest, Vol 49, Issue 24<br>
&gt; ******************************************<br>
&gt;<br>
</blockquote></div><br></div>