[GRASS-dev] [GRASS GIS] #2324: v.to.rast: useless area warning on points-only maps

GRASS GIS trac at osgeo.org
Tue Jun 3 08:14:34 PDT 2014


#2324: v.to.rast: useless area warning on points-only maps
-------------------------+--------------------------------------------------
 Reporter:  neteler      |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Vector       |     Version:  svn-releasebranch70      
 Keywords:  v.to.rast    |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by hcho):

 Maybe, even shorter:
 {{{
     if (use != USE_Z && use != USE_D && (ftype & GV_AREA) &&
         ((nareas = sort_areas(&Map, Points, field, cat_list)) >= 0) {
         if (nareas == 0)
             G_warning(_("No areas selected from vector map <%s>"),
                       vector_map);

         G_debug(1, "%d areas sorted", nareas);
     }
 }}}

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



More information about the grass-dev mailing list