[GRASS-dev] [GRASS GIS] #1789: v.hull: should not use

GRASS GIS trac at osgeo.org
Fri Nov 9 02:32:07 PST 2012


#1789: v.hull: should not use
---------------------+------------------------------------------------------
 Reporter:  neteler  |       Owner:  grass-dev@…              
     Type:  defect   |      Status:  new                      
 Priority:  normal   |   Milestone:  6.4.3                    
Component:  Vector   |     Version:  svn-releasebranch64      
 Keywords:  v.hull   |    Platform:  All                      
      Cpu:  All      |  
---------------------+------------------------------------------------------
 If the current region is not set to the vector map, v.hull
 fails with:

 {{{
 v.hull training_turkey_087VI174 out=training_turkey_087VI174_hull
 ERROR: Convex hull calculation requires at least three points. Exiting.
 }}}

 The reason is in main.c, line 311:

 {{{
     /* load site coordinates */
     G_get_window(&window);
     numSitePoints = loadSiteCoordinates(&Map, &points, all->answer,
 &window);
 }}}

 ...

 In loadSiteCoordinates()
 {{{
     /* copy window to box */
     Vect_region_box(window, &box);
 }}}

 I wonder why it is made region sensitive (untypical for GRASS
 vector commands)...

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1789>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list