[GRASS-dev] [GRASS GIS] #2394: r.to.vect: Flag -e: Erase vector map if empty

#2394: r.to.vect: Flag -e: Erase vector map if empty
-------------------------+--------------------------------------------------
Reporter: martin | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: Vector | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Avoid creating a pile of empty vector maps upon vectorization of a non-
rectangular image in smaller chunks.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2394&gt;
GRASS GIS <http://grass.osgeo.org>

#2394: r.to.vect: Flag -e: Erase vector map if empty
-------------------------+--------------------------------------------------
Reporter: martin | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: r.to.vect | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by neteler):

  * keywords: => r.to.vect
  * version: unspecified => svn-releasebranch70
  * milestone: => 7.0.0

Comment:

An option might be to add a new flag

  -e: Erase new vector map if empty

Perhaps there are better options?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2394#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2394: r.to.vect: Flag -e: Erase vector map if empty
-------------------------+--------------------------------------------------
Reporter: martin | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: r.to.vect | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by martinl):

Replying to [comment:1 neteler]:

> Perhaps there are better options?

Just delete the output map automatically if it's empty and print a
warning?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2394#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2394: r.to.vect: Flag -e: Erase vector map if empty
-------------------------+--------------------------------------------------
Reporter: martin | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: r.to.vect | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by neteler):

Does this module lack the error handler like:

  Vect_set_error_handler_io(&In, &Out);

?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2394#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>