[GRASS5] [bug #1766] (grass) v.out.e00 inconsistency

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

Subject: v.out.e00 inconsistency

v.out.e00 does not work with binary vector files outside the current mapset
e. g. when in mapset andreas, v.out.e00 input=test@PERMANENT output=test.e00
does not work. This is in accordance with the user manual, which states the
mapset=... parameter. But this is inconsistent.

tcltkgrass has no enty field for input of mapset= parameter.

I'll look into this another time.

Andreas

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

On Thu, Mar 27, 2003 at 03:58:15PM +0100, Request Tracker wrote:

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

Subject: v.out.e00 inconsistency

v.out.e00 does not work with binary vector files outside the current mapset
e. g. when in mapset andreas, v.out.e00 input=test@PERMANENT output=test.e00
does not work. This is in accordance with the user manual, which states the
mapset=... parameter. But this is inconsistent.

tcltkgrass has no enty field for input of mapset= parameter.

I'll look into this another time.

Haven't looked it over completely, but it needs a change like the following
"+/-" lines ...

int main( int argc, char *argv)
{
    char *infile, *outfile; /* name of output files */
    char msg[128]; /* for error messages */
- char name[32], mapsetname[128], nm[32], *p; /* name of cover */
+ char *name, *mapsetname, nm[32], *p; /* name of cover */
    char nnu[32], nid[32];
...
    infile = parm.input->answer;
    outfile = parm.output->answer;
- strcpy( mapsetname, parm.mapset->answer);

- if( strcmp( mapsetname, "" ) == 0 )
- strcpy( mapsetname, G_mapset() );

+ mapsetname = G_find_vector (infile, parm.mapset->answer)
    
- strncpy( name, infile, 27); /* is there a reason for 27 chars? */
+ name = G_strdup (infile);

...

--
echo ">gra.fcw@2ztr< eryyvZ .T pveR" | rot13 | reverse