[GRASS-dev] r.in.* modules and verbosity

Jachym Cepicky jachym.cepicky at centrum.cz
Sun Oct 22 12:50:17 EDT 2006


I tryed to rewrite r.in.* (and some others) modules to stop to use fprintf
and use G_message and G_warning instead. Plese test latest cvs version for your
data type - I do not have access to most of this formats.

If I understand it well, r.in.xyz prints some informations to stdout.
IMHO import (and export) modules should print nothing (except G_*) , unless they are explicitly 
asked for it.

So I suggest to add 
    -r  print range information


+   if (range) 
       if (!shell_style) {
-           fprintf(stderr,_("Range:     min         max\n"));
+           fprintf(stdout,_("Range:     min         max\n"));

to r.in.xyz/main.c

What do you think?

Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
Department of Geoinformation Technologies 
Zemedelska 3
613 00, Brno
Czech Republick
e-mail: xcepicky at node.mendelu.cz
URL:    http://mapserver.mendelu.cz
Tel.:   +420 545 134 514
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20061022/4e369e9f/attachment.bin

More information about the grass-dev mailing list