[GRASS5] New parameter for v.report to hide header
Rich Gibson
rich at testingrange.com
Mon Feb 2 04:17:04 EST 2004
Hi Again,
It looks like you can disregard this mail. v.to.db does exactly what I
want.
Sorry for the bother...but I did learn something.
Cheers,
Rich
On Mon, 2 Feb 2004, Rich Gibson wrote:
> Hi All,
>
> I just patched my v.report to add the flag -d for 'data.' This causes the
> header and footer to not be shown.
>
> This is useful for me when calling v.report in a script.
>
> The change is 2 lines in header.c, 5 in parse.c, and one in global.h.
>
> What is the way to submit these as patches?
>
> Thanks!
> Rich
>
> Here are diffs:
> rich at testingrange:cmd > diff ./global.h
> /usr/local/src/grass53_exp_2004_01_31/src.contrib/SCS/vector/v.report/cmd
> 57d56
> < GLOBAL int d_format INIT(0);
> rich at testingrange:cmd > diff ./header.c
> /usr/local/src/grass53_exp_2004_01_31/src.contrib/SCS/vector/v.report/cmd
> 19,20d18
> < if (d_format) return; /* no header if -d flag! */
> <
> 129d126
> < if (d_format) return; /* no trailer if -d flag! */
> rich at testingrange:cmd > diff ./parse.c
> /usr/local/src/grass53_exp_2004_01_31/src.contrib/SCS/vector/v.report/cmd
> 24d23
> < struct Flag *d; /* data mode */
> 72,75d70
> < flags.d = G_define_flag();
> < flags.d->key = 'd';
> < flags.d->description = "data only-suppress all headers";
> <
> 99d93
> < d_format = flags.d->answer;
>
>
>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
>
More information about the grass-dev
mailing list