[GRASS-SVN] r56515 - grass/trunk/lib/ogsf
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 30 11:28:35 PDT 2013
Author: annakrat
Date: 2013-05-30 11:28:35 -0700 (Thu, 30 May 2013)
New Revision: 56515
Modified:
grass/trunk/lib/ogsf/gpd.c
Log:
ogsf: fix z shift of points
Modified: grass/trunk/lib/ogsf/gpd.c
===================================================================
--- grass/trunk/lib/ogsf/gpd.c 2013-05-30 15:57:12 UTC (rev 56514)
+++ grass/trunk/lib/ogsf/gpd.c 2013-05-30 18:28:35 UTC (rev 56515)
@@ -236,7 +236,6 @@
if (src == CONST_ATT) {
konst = gs->att[ATT_TOPO].constant;
- site[Z] = konst;
}
else {
buf = gs_get_att_typbuff(gs, ATT_TOPO, 0);
@@ -280,7 +279,7 @@
}
else if (src == CONST_ATT) {
if (gs_point_in_region(gs, site, NULL)) {
- site[Z] += gp->z_trans;
+ site[Z] = konst + gp->z_trans;
if (gsd_checkpoint(site, window,
viewport, modelMatrix, projMatrix))
continue;
More information about the grass-commit
mailing list