[GRASS-SVN] r65650 - grass/branches/releasebranch_7_0/vector/v.to.3d
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 19 11:47:27 PDT 2015
Author: annakrat
Date: 2015-07-19 11:47:27 -0700 (Sun, 19 Jul 2015)
New Revision: 65650
Modified:
grass/branches/releasebranch_7_0/vector/v.to.3d/trans3.c
grass/branches/releasebranch_7_0/vector/v.to.3d/v.to.3d.html
Log:
v.to.3d: make reverse transformation possible also for lines - contours (merge from trunk, r65493)
Modified: grass/branches/releasebranch_7_0/vector/v.to.3d/trans3.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.to.3d/trans3.c 2015-07-19 17:56:53 UTC (rev 65649)
+++ grass/branches/releasebranch_7_0/vector/v.to.3d/trans3.c 2015-07-19 18:47:27 UTC (rev 65650)
@@ -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/branches/releasebranch_7_0/vector/v.to.3d/v.to.3d.html
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.to.3d/v.to.3d.html 2015-07-19 17:56:53 UTC (rev 65649)
+++ grass/branches/releasebranch_7_0/vector/v.to.3d/v.to.3d.html 2015-07-19 18:47:27 UTC (rev 65650)
@@ -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