[GRASS-SVN] r61738 - grass/branches/releasebranch_6_4/vector/v.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 25 22:06:06 PDT 2014


Author: neteler
Date: 2014-08-25 22:06:06 -0700 (Mon, 25 Aug 2014)
New Revision: 61738

Modified:
   grass/branches/releasebranch_6_4/vector/v.distance/description.html
Log:
v.distance manual: more examples

Modified: grass/branches/releasebranch_6_4/vector/v.distance/description.html
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.distance/description.html	2014-08-25 20:19:26 UTC (rev 61737)
+++ grass/branches/releasebranch_6_4/vector/v.distance/description.html	2014-08-26 05:06:06 UTC (rev 61738)
@@ -122,15 +122,37 @@
 v.univar vdistance_vectors column=length
 </pre></div>
 
+<h3>Print distance between points</h3>
+
+To be used in a Latitude-longitude location (EPSG 4326):
+<div class="code"><pre>
+# points along the equator
+echo "0|-60|1" | v.in.ascii output=pnt1
+echo "0|-59|1" | v.in.ascii output=pnt2
+
+v.distance from=pnt1 to=pnt2 upload=dist col=distance -p --q
+from_cat|distance
+1|111403.734218
+</pre></div>
+
 <h3>Print distance matrix</h3>
 
+Note: Matrix-style output is enabled only for flag <em>-a</em> and one
+given upload option.
+<p>
+Spearfish sample data location:
 <div class="code"><pre>
 v.distance -pa from=archsites to=archsites upload=dist col=dist
 </pre></div>
 
-Note: Matrix-like output is enabled only for flag <em>-a</em> and one
-given upload option.
+<p>
+North Carolina sample data location:
 
+<div class="code"><pre>
+v.distance -pa from=hospitals to=hospitals upload=dist col=dist
+</pre></div>
+
+
 <h2>SEE ALSO</h2>
 
 <em>
@@ -140,7 +162,7 @@
 </em>
 
 
-<h2>AUTHOR</h2>
+<h2>AUTHORS</h2>
 
 Janne Soimasuo 1994, University of Joensuu, Faculty of Forestry, Finland<br>
 Cmd line coordinates support: Markus Neteler, ITC-irst, Trento, Italy<br>



More information about the grass-commit mailing list