[GRASS-SVN] r65493 - grass/trunk/vector/v.to.3d
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 16 19:29:17 PDT 2015
Author: annakrat
Date: 2015-06-16 19:29:17 -0700 (Tue, 16 Jun 2015)
New Revision: 65493
Modified:
grass/trunk/vector/v.to.3d/trans3.c
grass/trunk/vector/v.to.3d/v.to.3d.html
Log:
v.to.3d: make reverse transformation possible also for lines - contours
Modified: grass/trunk/vector/v.to.3d/trans3.c
===================================================================
--- grass/trunk/vector/v.to.3d/trans3.c 2015-06-17 02:26:02 UTC (rev 65492)
+++ grass/trunk/vector/v.to.3d/trans3.c 2015-06-17 02:29:17 UTC (rev 65493)
@@ -105,7 +105,7 @@
"Using category %d."), line, cat);
}
- if (zcolumn && ltype == GV_POINT && cat > -1) {
+ if (zcolumn && ltype & (GV_POINT | GV_LINE) && cat > -1) {
/* category exist in table ? */
cex = (int *)bsearch((void *)&cat, cats, ncats, sizeof(int),
srch);
Modified: grass/trunk/vector/v.to.3d/v.to.3d.html
===================================================================
--- grass/trunk/vector/v.to.3d/v.to.3d.html 2015-06-17 02:26:02 UTC (rev 65492)
+++ grass/trunk/vector/v.to.3d/v.to.3d.html 2015-06-17 02:29:17 UTC (rev 65493)
@@ -14,6 +14,11 @@
When transforming 2D vector features to 3D based on attribute, all
NULL values are silently converted to height 0.0.
+<p>
+Reverse transformation is possible for points and lines.
+In case of lines, the reverse transformation should be used
+only when all vertices of a line have the same z-coordinate
+(for example contours).
<h2>EXAMPLES</h2>
More information about the grass-commit
mailing list