[GRASS-dev] [GRASS GIS] #3226: v.select: how to handle situation where no features are found

GRASS GIS trac at osgeo.org
Wed Nov 7 13:10:31 PST 2018


#3226: v.select: how to handle situation where no features are found
--------------------------+-------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  reopened
  Priority:  normal       |  Milestone:  7.2.4
 Component:  Vector       |    Version:  svn-trunk
Resolution:               |   Keywords:  v.select
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by mmetz):

 Replying to [comment:9 mlennert]:
 > Actually, the applied patch did not solve the problem as the (empty) map
 was still created, but not correctly. In r73652 and r73652 I've applied a
 further modification which only goes the different aspects of creating the
 new map if elements were found. I would consider this a bug fix, so it
 should go into 74 as well, but I haven't had the time to test extensively.
 I'm thus not sure whether I should upload it into release74. I don't think
 it will cause any trouble, but MarkusM, could you have a look ?

 Trunk r73652 looks good to me and it works as expected.

 Another reason why no output is created could be that the module failed
 for any reason (return code != 0), i.e. the return code needs to be
 checked as usual.

 +1 for backporting

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3226#comment:11>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list