[GRASS-SVN] r49932 - grass-addons/grass6/vector/v.transects

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 27 04:42:15 EST 2011


Author: martinl
Date: 2011-12-27 01:42:14 -0800 (Tue, 27 Dec 2011)
New Revision: 49932

Added:
   grass-addons/grass6/vector/v.transects/Makefile
   grass-addons/grass6/vector/v.transects/description.html
Removed:
   grass-addons/grass6/vector/v.transects/v.transects.html
Log:
v.transects: add Makefile, fix manual for G6


Added: grass-addons/grass6/vector/v.transects/Makefile
===================================================================
--- grass-addons/grass6/vector/v.transects/Makefile	                        (rev 0)
+++ grass-addons/grass6/vector/v.transects/Makefile	2011-12-27 09:42:14 UTC (rev 49932)
@@ -0,0 +1,7 @@
+MODULE_TOPDIR = ../..
+
+PGM = v.transects
+
+include $(MODULE_TOPDIR)/include/Make/Script.make
+
+default: script

Copied: grass-addons/grass6/vector/v.transects/description.html (from rev 49931, grass-addons/grass6/vector/v.transects/v.transects.html)
===================================================================
--- grass-addons/grass6/vector/v.transects/description.html	                        (rev 0)
+++ grass-addons/grass6/vector/v.transects/description.html	2011-12-27 09:42:14 UTC (rev 49932)
@@ -0,0 +1,69 @@
+<H2>DESCRIPTION</H2><EM>v.transects</EM> creates equally spaced geometries along 
+input lines. The geometries can be lines or quadrilateral areas. Lines 
+and areas are generated to be perpendicular to the input line. 
+
+
+<H2>NOTES</H2>Input vector lines that are shorter than <B>transect_spacing</B> are ignored. 
+<p>
+<B>transect_spacing</B>, <B>dleft</B>, and <B>dright</B> are interpreted to be in horizontal map units (e.g., degrees in the WGS84 projection). 
+<p>
+<EM><B>v.transects</B></EM> may fail for a network of lines in Windows.
+
+<H2>EXAMPLES</H2>In these examples, the 
+<a href="http://courses.ncsu.edu/mea582/common/media/01/NagsHead_series.zip"><font color="0000FF">Nags Head (19MB)</font></a>
+mapset is used to generate a shoreline and shore-perpendicular geometries. To use the mapset, unpack it into the 
+<a href="http://courses.ncsu.edu/mea582/common/media/01/nc_spm_08.zip"><font color="0000FF">nc_spm_08 (150MB)</font></a>
+Location or the
+<a href="http://courses.ncsu.edu/mea792/common/media/gisdemo.zip"><font color="0000FF">gisdemo (47MB)</font></a>
+Location.
+ 
+
+<h3>Example 1) - Generate line transects along shoreline</h3>
+
+<P>Generate 20 cross-shore transects along 2008 shoreline (1m contour)<BR>
+<DIV class=code><PRE>g.region rast=NH_2008_1m
+r.contour input=NH_2008_1m output=NH_2008_1m level=1 cut=100
+v.report map=NH_2008_1m option=length
+# cat|level|length
+# 1|1|1037.86684790028
+# 1038m / 20transects = 52m per transect (value for transect_spacing)
+v.transects input=NH_2008_1m output=NH_2008_transects transect_spacing=52
+v.info NH_2008_transects
+</PRE></DIV>
+
+<h3>Example 2) - Generate line transects specifying the left and right length</h3>
+
+<P>Generate longer, more parallel transects by specifying dleft and dright and 
+smoothing the input line<BR>
+<DIV class=code><PRE>g.region rast=NH_2008_1m
+r.contour input=NH_2008_1m output=NH_2008_1m level=1 cut=100
+v.generalize input=NH_2008_1m output=NH_2008_1m_smoothed \
+  method=sliding_averaging look_ahead=201
+v.transects input=NH_2008_1m_smoothed \
+  output=NH_2008_transects_long_smoothed transect_spacing=52 \
+  dleft=20 dright=300
+</PRE></DIV>
+
+<h3>Example 3) - Generate area transects along shoreline</h3>
+
+<P>Generate longer, more parallel transects by specifying dleft and dright and 
+smoothing the input line<BR>
+<DIV class=code><PRE>g.region rast=NH_2008_1m
+r.contour input=NH_2008_1m output=NH_2008_1m level=1 cut=100
+v.transects input=NH_2008_1m output=NH_2008_areas \
+  transect_spacing=52 dleft=20 dright=300 type=area
+v.db.addtable NH_2008_areas
+v.db.addcolumn map=NH_2008_areas columns='demStats DOUBLE PRECISION'
+v.rast.stats vector=NH_2008_areas raster=NH_2008_1m column_prefix=NH2008
+v.db.select NH_2008_areas
+</PRE></DIV>
+
+
+<H2>SEE ALSO</H2><EM><A 
+href="http://www4.ncsu.edu/~ejhardi2/v.generalize.html">v.generalize</A>, <A 
+href="http://www4.ncsu.edu/~ejhardi2/r.transect.html">r.transect</A> </EM>
+
+
+<H2>AUTHOR</H2>Eric Hardin, Helena Mitasova, Updates by John Lloyd 
+<P>
+<I>Last changed: $Date$</I>

Deleted: grass-addons/grass6/vector/v.transects/v.transects.html
===================================================================
--- grass-addons/grass6/vector/v.transects/v.transects.html	2011-12-27 02:04:58 UTC (rev 49931)
+++ grass-addons/grass6/vector/v.transects/v.transects.html	2011-12-27 09:42:14 UTC (rev 49932)
@@ -1,115 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>GRASS GIS manual: v.transects.py</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link rel="stylesheet" href="grassdocs.css" type="text/css">
-</head>
-<body bgcolor="white">
-
-<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
-
-<h2>NAME</h2>
-<em><b>v.transects.py</b></em>  - Python script to create vector line or area transects along a line
-<h2>KEYWORDS</h2>
-vector, transects, shoreline
-
-<h2>SYNOPSIS</h2>
-<b>v.transects.py</b> <b>input</b>=<em>name</em>  <b>output</b>=<em>name</em>  <b>transect_spacing</b>=<em>float</em>   [<b>dleft</b>=<em>float</em>]   [<b>dright</b>=<em>float</em>]   [<b>type</b>="line" | "area"]   
-
-
-
-<h3>Parameters:</h3>
-<DL>
-<DT><b>input</b>=<em>name</em></DT>
-<DD>Name for input line vector map</DD>
-
-<DT><b>output</b>=<em>name</em></DT>
-<DD>Name for output transects vector map</DD>
-
-<DT><b>transect_spacing</b>=<em>float</em></DT>
-<DD>Distance between transects</DD>
-
-<DT><b>dleft</b>=<em>float</em></DT>
-<DD>Distance transects extend on left side of line</DD>
-<DD>Default: <em>transect_spacing</em></DD>
-
-<DT><b>dright</b>=<em>float</em></DT>
-<DD>Distance transects extend on right side of line</DD>
-<DD>Default: <em>transect_spacing</em></DD>
-
-<DT><b>type</b>="line" | "area"</DT>
-<DD>Specifies the geometry of the transect</DD>
-<DD>Default: "line"</DD>
-
-</DL>
-
-
-<H2>DESCRIPTION</H2><EM>v.transects</EM> creates equally spaced geometries along 
-input lines. The geometries can be lines or quadrilateral areas. Lines 
-and areas are generated to be perpendicular to the input line. 
-
-
-<H2>NOTES</H2>Input vector lines that are shorter than <B>transect_spacing</B> are ignored. 
-<p>
-<B>transect_spacing</B>, <B>dleft</B>, and <B>dright</B> are interpreted to be in horizontal map units (e.g., degrees in the WGS84 projection). 
-<p>
-<EM><B>v.transects</B></EM> may fail for a network of lines in Windows.
-
-<H2>EXAMPLES</H2>In these examples, the 
-<a href="http://courses.ncsu.edu/mea582/common/media/01/NagsHead_series.zip"><font color="0000FF">Nags Head (19MB)</font></a>
-mapset is used to generate a shoreline and shore-perpendicular geometries. To use the mapset, unpack it into the 
-<a href="http://courses.ncsu.edu/mea582/common/media/01/nc_spm_08.zip"><font color="0000FF">nc_spm_08 (150MB)</font></a>
-Location or the
-<a href="http://courses.ncsu.edu/mea792/common/media/gisdemo.zip"><font color="0000FF">gisdemo (47MB)</font></a>
-Location.
- 
-
-<h3>Example 1) - Generate line transects along shoreline</h3>
-
-<P>Generate 20 cross-shore transects along 2008 shoreline (1m contour)<BR>
-<DIV class=code><PRE>g.region rast=NH_2008_1m
-r.contour input=NH_2008_1m output=NH_2008_1m level=1 cut=100
-v.report map=NH_2008_1m option=length
-# cat|level|length
-# 1|1|1037.86684790028
-# 1038m / 20transects = 52m per transect (value for transect_spacing)
-v.transects input=NH_2008_1m output=NH_2008_transects transect_spacing=52
-v.info NH_2008_transects
-</PRE></DIV>
-
-<h3>Example 2) - Generate line transects specifying the left and right length</h3>
-
-<P>Generate longer, more parallel transects by specifying dleft and dright and 
-smoothing the input line<BR>
-<DIV class=code><PRE>g.region rast=NH_2008_1m
-r.contour input=NH_2008_1m output=NH_2008_1m level=1 cut=100
-v.generalize input=NH_2008_1m output=NH_2008_1m_smoothed \
-  method=sliding_averaging look_ahead=201
-v.transects input=NH_2008_1m_smoothed \
-  output=NH_2008_transects_long_smoothed transect_spacing=52 \
-  dleft=20 dright=300
-</PRE></DIV>
-
-<h3>Example 3) - Generate area transects along shoreline</h3>
-
-<P>Generate longer, more parallel transects by specifying dleft and dright and 
-smoothing the input line<BR>
-<DIV class=code><PRE>g.region rast=NH_2008_1m
-r.contour input=NH_2008_1m output=NH_2008_1m level=1 cut=100
-v.transects input=NH_2008_1m output=NH_2008_areas \
-  transect_spacing=52 dleft=20 dright=300 type=area
-v.db.addtable NH_2008_areas
-v.db.addcolumn map=NH_2008_areas columns='demStats DOUBLE PRECISION'
-v.rast.stats vector=NH_2008_areas raster=NH_2008_1m column_prefix=NH2008
-v.db.select NH_2008_areas
-</PRE></DIV>
-
-
-<H2>SEE ALSO</H2><EM><A 
-href="http://www4.ncsu.edu/~ejhardi2/v.generalize.html">v.generalize</A>, <A 
-href="http://www4.ncsu.edu/~ejhardi2/r.transect.html">r.transect</A> </EM>
-
-
-<H2>AUTHOR</H2>Eric Hardin, Helena Mitasova, Updates by John Lloyd 
-<P><I>Last changed: $Date$</I> </P></BODY></HTML>



More information about the grass-commit mailing list