[GRASS-dev] v.extrude testing

Martin Landa landa.martin at gmail.com
Thu Aug 3 05:36:52 EDT 2006


Hi,

working with simple 2d vector map layer I have slightly tested great
v.extrude module. My notes:

1) problem with "type" parameter

GRASS 6.1.cvs (karlin):~ > v.extrude help 2>&1 | grep -n1 "options: line"
22-       type   Type
23:              options: line,boundary,area,face
24-              default: line,boundary,area,face

GRASS 6.1.cvs (karlin):~ > v.info hraz2d_c2|grep lines
 |   Number of lines:        22              Number of islands:    0          |

a)
GRASS 6.1.cvs (karlin):~ > v.extrude in=hraz2d_c2 out=hraz3d height=10
....
Number of nodes     :   0
Number of primitives:   0
Number of points    :   0
Number of lines     :   0
Number of boundaries:   0
Number of centroids :   0
Number of areas     :   0
Number of isles     :   0

b)
GRASS 6.1.cvs (karlin):~ > v.extrude in=hraz2d_c2 out=hraz3d height=10 type=line
...
Number of nodes     :   77
Number of primitives:   80
Number of points    :   0
Number of lines     :   0
Number of boundaries:   0
Number of centroids :   0
Number of faces     :   80
Number of areas     :   0
Number of isles     :   0

2) height X hcolumn

GRASS 6.1.cvs (karlin):~ > echo "select * from hraz2d_c2" | db.select
cat|vyska
2|10

a)
GRASS 6.1.cvs (karlin):~ > v.extrude in=hraz2d_c2 out=hraz3d height=10
1>/dev/null 2>/dev/null;v.info hraz3d|grep T:
 |            B: 0.000         T: 10.000

b)
v.extrude in=hraz2d_c2 out=hraz3d hco=vyska 1>/dev/null
2>/dev/null;v.info hraz3d|grep T:
 |            B: 0.000         T: 0.000                                       |

It seems that parameter "hcolumn" does not work (pg driver)...

I have also tested data type for "hcolumn" (e.g. date), the result is

GRASS 6.1.cvs (karlin):~ > v.extrude in=hraz2d_c2 out=hraz3d
hco=vyska_d 1>/dev/null 2>/dev/null;v.info hraz3d|grep T:
 |            B: 0.000         T: 0.000

I did not get any error message...

3) zshift && elev
GRASS 6.1.cvs (karlin):~ > v.extrude in=hraz2d_c2 out=hraz3d he=10
el=vdem5 1>/dev/null 2>/dev/null;v.info hraz3d|grep T:
 |            B: 184.480        T: 201.461

GRASS 6.1.cvs (karlin):~ > v.extrude in=hraz2d_c2 out=hraz3d he=10
el=vdem5 zs=5 1>/dev/null 2>/dev/null;v.info hraz3d|grep T:
 |            B: 184.480        T: 201.461

Parameter "zshift" does not work in combination with "elevation".

I have *tried* to fix the described problems. I hope it helps...

Best regards, Martin

-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v_extrude_fix.diff.gz
Type: application/x-gzip
Size: 1222 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060803/837e51c2/v_extrude_fix.diff.gz


More information about the grass-dev mailing list