[GRASS5] v.out.ascii modification

Sören Gebbert soerengebbert at gmx.de
Sun Feb 12 17:08:54 EST 2006


Dear list,
because of the need to truncate the float output for the test suite , 
i have modified v.out.ascii to support float value truncating.

I have added the option dp and replaced

G_format_northing() and G_format_easting() 

with a combination of 

G_asprintf() and G_trim_decimal().

In the default case, the new v.out.ascii module produces exact the same output as the old module,
but with dp=n; n in [0:8]; you can specify the double precision of the coordinates output (x,y and z) like in r/r3.out.ascii.

I have tested the module with the spearfish60 and a LatLong dataset and its working well. But it would be
great if somebody else can test it to verify the functionality of the module.

The new module is available at:

http://www-pool.math.tu-berlin.de/~soeren/grass/modules/v.out.ascii2.tar.gz

If you compile this module, the name will be v.out.ascii2 to avoid conflicts with the original v.out.ascii.

Thanks in advance,
best regards
Soeren




More information about the grass-dev mailing list