[GRASS5] [bug #3747] (grass) v.in.ascii: table is not created if cat= and z= are both given

Request Tracker grass-bugs at intevation.de
Mon Oct 17 05:02:34 EDT 2005


this bug's URL: http://intevation.de/rt/webrt?serial_num=3747
-------------------------------------------------------------------------

Subject: v.in.ascii: table is not created if cat= and z= are both given

If you use cat=1 -z z=4 then no table is created and seting columns='transect
int, value1 double, value2 double, value3 double' is ignored.  ?!

If you don't define -z z=4, it works as expected.

If you define cat=1 x=1 (x is int) you can make a table. But that's not common
or what we want.


something here? (in.c)
[note columns all -=1 earlier in the code]

	    /* Create table */
	    make_table = 0;
	    for ( i = 0 ; i < ncols; i++ ) {
		if ( xcol != i && ycol != i && zcol != i && catcol != i ) {
		    make_table = 1;
		    break;
		}
	    }



circuitous work-around:
 v.in.ascii cat=0
 v.reclass col=
 db.copy
 v.db.connect key=
 g.remove tmp_map



also: isn't the -z flag redundant as always 3D when z option != 0 ?


?
Hamish


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list