[GRASS5] v.out.ascii truncation
Hamish
hamish_nospam at yahoo.com
Mon Aug 11 08:56:39 EDT 2003
> With the talk of publishing a stable 5.0.3, maybe someone can fix a
> v.out.ascii truncation bug I've been working around in 5.0.2.
>
> The problem, apparently in G_format_easting although I have not looked
> at that code, causes v.out.ascii in some cases to print out fewer
> significant digits for longitude than latitude. Below is a portion of
> v.out.ascii output showing latitude is given six fractional digits but
> longitude only five. Having six fractional digits (i.e., "%.6f") for
> both longitude and latitude is necessary
[...]
> Maybe there is a similar problem in G_format_northing that occurs for
> southern hemisphere latitudes.
ok, here you go (5.0.3CVS), v.out.ascii output:
[...]
ZONE: 0
WEST EDGE: 166.25922773
EAST EDGE: 168.73890751
SOUTH EDGE: -47.33126239
NORTH EDGE: -44.17953637
MAP THRESH: 0
VERTI:
A 84946
-46.22802974 167.02094088
-46.22801981 167.02092309
-46.22800988 167.02090529
-46.22800988 167.02090529
-46.22800988 167.02090529
-46.22795726 167.02081077
-46.22786854 167.0205745
-46.2277771 167.02021374
-46.22761506 167.01979546
-46.22745475 167.01923402
Are you sure your input data isn't rounded at 5 sig.fig.?
v.to.sites -a
d.what.sites
?
g.region -p
?
> - - -
>
> WEST EDGE: -79.26619
> EAST EDGE: -79.08578
> SOUTH EDGE: 37.340556
> NORTH EDGE: 37.469409
> MAP THRESH: 0
> VERTI:
> A 2
> 37.444541 -79.16844
> 37.448141 -79.17404
> A 11
> 37.448141 -79.17404
> 37.448963 -79.17539
> 37.449241 -79.17584
> 37.453221 -79.17876
> 37.453741 -79.17914
> 37.458141 -79.18474
> 37.458477 -79.18525
> 37.458893 -79.18563
> 37.459341 -79.18582
> 37.459661 -79.18592
> 37.460845 -79.18638
More information about the grass-dev
mailing list