[GRASS-SVN] r70317 - grass/branches/releasebranch_7_2/raster/r.in.xyz
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 9 03:10:35 PST 2017
Author: neteler
Date: 2017-01-09 03:10:34 -0800 (Mon, 09 Jan 2017)
New Revision: 70317
Modified:
grass/branches/releasebranch_7_2/raster/r.in.xyz/r.in.xyz.html
Log:
r.in.xyz manual: improve XYZ DEM import example
Modified: grass/branches/releasebranch_7_2/raster/r.in.xyz/r.in.xyz.html
===================================================================
--- grass/branches/releasebranch_7_2/raster/r.in.xyz/r.in.xyz.html 2017-01-09 11:09:53 UTC (rev 70316)
+++ grass/branches/releasebranch_7_2/raster/r.in.xyz/r.in.xyz.html 2017-01-09 11:10:34 UTC (rev 70317)
@@ -206,8 +206,14 @@
<h3>Import of x,y,z ASCII into DEM</h3>
-Sometimes elevation data are delivered as x,y,z ASCII files instead of
-a raster matrix:
+Sometimes elevation data are delivered as x,y,z ASCII files instead of a raster
+matrix. The import procedure consists of a few steps: calculation of the
+map extent, setting of the computational region accordingly with an additional
+extension into all directions by half a raster cell in order to register the
+elevation points at raster cell centers.
+<p>
+Note: if the z column is separated by several spaces from the coordinate columns,
+it may be sufficient to adapt the <b>z</b> position value.
<!-- NC: preparation for this example
g.region raster=elevation res=15 -p
@@ -223,17 +229,17 @@
# 630037.5 228492.5 142.29822
# 630052.5 228492.5 143.97987
# ...
-# The point distance is 15m here.
+# In this example the distance is 15m in x and y direction.
# detect extent, print result as g.region parameters
-r.in.xyz input=elevation.xyz separator=space -s -g
+r.in.xyz input=elevation.xyz output=dummy separator=space -s -g
# ... n=228492.5 s=215007.5 e=644992.5 w=630007.5 b=55.578793 t=156.32986
# set computational region, along with the actual raster resolution
-# which is defined by the ASCII file point spacing:
+# as defined by the point spacing in the ASCII file:
g.region n=228492.5 s=215007.5 e=644992.5 w=630007.5 res=15 -p
-# enlarge computational region by half a raster cell (here 7.5m) to
+# now enlarge computational region by half a raster cell (here 7.5m) to
# store the points as cell centers:
g.region n=n+7.5 s=s-7.5 w=w-7.5 e=e+7.5 -p
More information about the grass-commit
mailing list