[GRASS-dev] [GRASS GIS] #2413: pygrass: number_of wrong function associated
GRASS GIS
trac at osgeo.org
Mon Sep 15 01:03:04 PDT 2014
#2413: pygrass: number_of wrong function associated
----------------------------+-----------------------------------------------
Reporter: artegion | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.5
Component: Python | Version: svn-releasebranch70
Keywords: pygrass vector | Platform: All
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Comment(by artegion):
Replying to [comment:4 lucadelu]:
> Replying to [comment:3 lucadelu]:
>
> >
> > It seems better, but it is still strange the result of schools map
(lines=167,points=5)
>
> Reading the documentation it is more clear, the description of function
''Vect_get_num_lines'' is:
>
> {{{
> Fetch number of features (points, lines, boundaries, centroids) in
vector map
> }}}
It seems wrong use of '''Vect_get_num_line_points''' function in _NUMOF.
Vect_get_num_line_points: Get number of line points and takes a pointer to
line_pnts structure (not a pointer to Map_info struct).[[BR]]
the correct form of _NUMOF shoud be
{{{
_NUMOF = {"areas": libvect.Vect_get_num_areas,
"dblinks": libvect.Vect_get_num_dblinks,
"faces": libvect.Vect_get_num_faces,
"holes": libvect.Vect_get_num_holes,
"islands": libvect.Vect_get_num_islands,
"kernels": libvect.Vect_get_num_kernels,
"lines": libvect.Vect_get_num_lines,
"nodes": libvect.Vect_get_num_nodes,
"updated_lines": libvect.Vect_get_num_updated_lines,
"updated_nodes": libvect.Vect_get_num_updated_nodes,
"volumes": libvect.Vect_get_num_volumes}
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2413#comment:5>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list