[GRASS-dev] [GRASS GIS] #3249: v.what.rast: segfault with map without topology

GRASS GIS trac at osgeo.org
Sat Jan 14 06:54:36 PST 2017

#3249: v.what.rast: segfault with map without topology
  Reporter:  sbl          |      Owner:  martinl
      Type:  defect       |     Status:  assigned
  Priority:  normal       |  Milestone:  7.4.0
 Component:  Vector       |    Version:  svn-trunk
Resolution:               |   Keywords:  v.what.rast, level 1
       CPU:  Unspecified  |   Platform:  Unspecified

Comment (by martinl):

 Replying to [comment:11 martinl]:
 > > * probably also Vect_get_num_primitives should be modified to return
 -1 if topology is missing
 > Or the routine could return number of primitives by reading all
 features, this issue is related conceptually with #3244. For now I changed
 module back to require level2 (r70366).

 Anyway in this case it doesn't make sense since features would be read
 twice by the module. Probably best way could be allocating cache
 dynamically on level 1. I will try to provide patch in the next days.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3249#comment:12>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list