[GRASS-dev] [GRASS GIS] #2413: pygrass: number_of wrong function associated

GRASS GIS trac at osgeo.org
Fri Feb 19 00:33:41 PST 2016


#2413: pygrass: number_of wrong function associated
--------------------------+---------------------------------
  Reporter:  artegion     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.4
 Component:  Python       |    Version:  svn-releasebranch70
Resolution:               |   Keywords:  pygrass vector
       CPU:  Unspecified  |   Platform:  All
--------------------------+---------------------------------

Comment (by martinl):

 These two are wrong:

 {{{
           "lines": libvect.Vect_get_num_lines,
           "points": libvect.Vect_get_num_line_points,
 }}}

  * `Vect_get_num_lines` returns number of all features (points, lines,
 centroids, boundaries, kernels, and faces)
  * `Vect_get_num_line_points` returns number of vertices of given feature

 For 2D feature types you can use `Vect_get_num_primitives`

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



More information about the grass-dev mailing list