[GRASS-dev] Re: [GRASS GIS] #957: v.voronoi has extra lines in output

GRASS GIS trac at osgeo.org
Tue Sep 20 06:25:03 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:  v.voronoi  |    Platform:  All                      
      Cpu:  All        |  
-----------------------+----------------------------------------------------

Comment(by mmetz):

 Replying to [comment:11 hamish]:
 >
 > 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.

 Not for real projections, at least not for nc_spm_08 with projection: 99
 (Lambert Conformal Conic) because full %.15g precision is only used when
 projection == -1, otherwise %.8f is used. See

 https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/wind_format.c#L33

 Markus M

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/957#comment:14>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list