[GRASS-dev] Re: [GRASS GIS] #957: v.voronoi has extra lines in
output
GRASS GIS
trac at osgeo.org
Tue Sep 20 05:59:05 EDT 2011
#957: v.voronoi has extra lines in output
--------------------+-------------------------------------------------------
Reporter: helena | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.2
Component: Vector | Version: svn-develbranch6
Keywords: | Platform: All
Cpu: All |
--------------------+-------------------------------------------------------
Comment(by hamish):
Replying to [comment:9 mmetz]:
> the extents are stored with insufficient precision in WIND:
{{{
> region north: 306221.83019368
> vector north: 306221.830193683563
...
}}}
I would suggest that since this is in the 5 nanometer range, and WIND is
seemingly stored to `%.14g` (or does that happen when reading the vector's
&window?), that we verify that `printf(%.15g)` is used when writing the
WIND file and then if needed use GRASS_EPSILON to test.
I would suggest ignoring such corner cases in the code, keep using fast >=
tests, and recommend in the docs that `g.region vect=` should be used with
the `-a and res=` options in most cases.
I'm not sure where the %.14g is coming from, as lib/gis/wind_format.c
writes using %.15g.
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/957#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list