Преглед изворни кода

r.surf.idw manual: commented example added (needs https://trac.osgeo.org/grass/ticket/2672 to be fixed)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65262 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler пре 10 година
родитељ
комит
efdbb333a4
1 измењених фајлова са 21 додато и 0 уклоњено
  1. 21 0
      raster/r.surf.idw/r.surf.idw.html

+ 21 - 0
raster/r.surf.idw/r.surf.idw.html

@@ -78,6 +78,27 @@ the input raster map to analyze the distribution of interpolation error.
 This procedure may be helpful in choosing the number of nearest neighbors
 considered for surface generation.
 
+<!-- requires https://trac.osgeo.org/grass/ticket/2672 to be fixed:
+
+<h2>EXAMPLE</h2>
+
+Interpolation of raster surface from randomly sampled vector elevation
+points (North Carolina sample dataset region):
+
+<div class="code"><pre>
+g.region vector=elev_lid792_randpts res=1 -p
+# rasterize points
+v.to.rast input=elev_lid792_randpts use=attr attribute_column=value \
+          output=elev_lid792_randpts_1m
+# interpolation DEM
+r.surf.idw input=elev_lid792_randpts_1m output=elev_surf_1m_idw
+
+# validate: differences to original DEM
+r.mapcalc "elev_diff = elev_lid792_1m - elev_surf_1m_idw"
+r.colors map=elev_diff color=differences
+</pre></div>
+-->
+
 <h2>KNOWN ISSUES</h2>
 Module <em>r.surf.idw</em> works only for integer (CELL) raster maps.