[GRASS5] v.in.ascii updates

Radim Blazek blazek at itc.it
Mon Mar 21 03:28:33 EST 2005


Hamish wrote:
> You could change lib/db/dbmi_base/valuefmt.c
> 
> db_convert_value_to_string()
> [...]
>         case DB_C_TYPE_DOUBLE:
>             sprintf (buf, "%lf",db_get_value_double(value));
> 
> "%lf" to "%g", but I worry this will break other things?
> Maybe it is ok, I don't know. Radim would have to answer that.
> 
> This works for the d.vect case and the results look good!

Yes, %g is better.

Radim




More information about the grass-dev mailing list