[GRASS-dev] v.extrude testing

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@gmail.com> * http://gama.fsv.cvut.cz/~landa *

(attachments)

v_extrude_fix.diff.gz (1.19 KB)