[GRASS-SVN] r60264 - grass/trunk/vector/v.mkgrid
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 16 10:00:29 PDT 2014
Author: neteler
Date: 2014-05-16 10:00:29 -0700 (Fri, 16 May 2014)
New Revision: 60264
Modified:
grass/trunk/vector/v.mkgrid/v.mkgrid.html
Log:
v.mkgrid manual: latitude-longitude example added
Modified: grass/trunk/vector/v.mkgrid/v.mkgrid.html
===================================================================
--- grass/trunk/vector/v.mkgrid/v.mkgrid.html 2014-05-16 14:55:22 UTC (rev 60263)
+++ grass/trunk/vector/v.mkgrid/v.mkgrid.html 2014-05-16 17:00:29 UTC (rev 60264)
@@ -14,17 +14,42 @@
<h2>EXAMPLES</h2>
-Make a 4x3 grid, cells 20km a side, with lower left corner at 2716500,6447000:
+1) Create a grid in a latitude-longitude location (WGS84):
+
<div class="code"><pre>
+# use g.region to easily calculate rows and column for 'grid':
+g.region n=90 s=-90 w=-180 e=180 res=10 -p
+projection: 3 (Latitude-Longitude)
+zone: 0
+datum: wgs84
+ellipsoid: wgs84
+north: 90N
+south: 90S
+west: 180W
+east: 180E
+nsres: 10
+ewres: 10
+rows: 18
+cols: 36
+cells: 648
+
+# create 10 degree size grid:
+v.mkgrid map=grid_10deg grid=18,36
+</pre></div>
+
+<p>
+2) Make a 4x3 grid, cells 20km a side, with lower left corner at 2716500,6447000:
+<div class="code"><pre>
v.mkgrid map=coro_grid grid=4,3 position=coor coor=2716500,6447000 box=20000,20000
</pre></div>
-<br>
-<p>Make a 10x12 lat/lon grid, cells 2 arc-min a side, with lower left corner
+<p>
+3) Make a 10x12 lat/lon grid, cells 2 arc-min a side, with lower left corner
at 167deg 52min east, 47deg 6min south. For use with e.g. QGIS you can then
pull this grid into a projected location with <em>v.proj</em> before
exporting as a Shapefile with <em>v.out.ogr</em> (within GRASS you could
-just use <em>d.grid -w</em> from the projected location for the same effect).
+just use <em>d.grid -w</em> from the projected location for the same effect):
+
<div class="code"><pre>
v.mkgrid map=p2min_grid grid=10,12 position=coor coor=167:52E,47:06S box=0:02,0:02
</pre></div>
@@ -32,12 +57,13 @@
<h2>SEE ALSO</h2>
+<em>
<a href="v.patch.html">v.patch</a>,
<a href="d.grid.html">d.grid</a>
+</em>
+<h2>AUTHORS</h2>
-<h2>AUTHOR</h2>
-
Michael Higgins,
U.S.Army Construction Engineering
Research Laboratory
More information about the grass-commit
mailing list