[GRASS-dev] [GRASS GIS] #2045: r.to.vect: use less memory

GRASS GIS trac at osgeo.org
Tue Jun 21 08:06:11 PDT 2016


#2045: r.to.vect: use less memory
--------------------------+-------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.0.5
 Component:  Raster       |    Version:  svn-trunk
Resolution:               |   Keywords:  r.to.vect
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by mlennert):

 Replying to [comment:12 mmetz]:
 > Replying to [comment:11 mmetz]:
 > >
 > > The module already writes out a boundary as soon as it has been
 completed and attempts to free memory used to track this boundary.
 >
 > The attempt was unsuccessful, also for lines, fixed in r68716.

 That helps a lot !

 Without (i.e. grass70) my machine became unusable for a while and then the
 module execution stopped after a bit more than 5 minutes because of too
 little memory. With the fix (grass73) it went all the way to 100% of
 writing areas (17 minutes on my machine), but then I got an error
 "Category index is not up to date".

 I used r.to.vect -vb as I want to preserve category values of the raster
 file.

 However, my colleague's problem was not in the vectorization stage, but in
 the topology building stage. I'm currently testing with -vt and
 VECTOR_LOW_MEM=1. It's been running for about 1 h. I'll see tomorrow what
 the result is...

 I'll also try with -vb, followed by v.build.

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



More information about the grass-dev mailing list