[GRASS-dev] Vect_get_num_lines() versus Vect_get_num_primitives()
Markus Neteler
neteler at itc.it
Mon Sep 25 04:15:09 EDT 2006
Hi,
trying the new Python-Vector API, I found a discrepancy which
I would like to understand:
On 'roads' in Spearfish, v.info reports
Number of lines: 825
based on Vect_get_num_primitives(&Map, GV_LINE)
If I use in the Python API the Vect_get_num_lines(map),
I get
Number of lines: 2876
Difference:
- Vect_get_num_primitives uses map->plus.n_llines
- Vect_get_num_lines uses map->plus.n_lines
Which one is right? Probably Vect_get_num_lines() should
use n_lines as well and we need an extra function to
report segments?
Markus
More information about the grass-dev
mailing list