<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,</div><div dir="ltr"><br><div>I am a little bit puzzled about the actual number of lines/categories of a specific vector map (river network). As discussed yesterday, the output of v.category with the report option provides a column 'count' which is a feature count. Running v.category option=report on my vector provides me following:</div><div><br></div><div><div>v.category input=Ebro_river_vector_poly_clean_tmp@Ebro2_alien_spread option=report</div><div>Layer/table: 1/Ebro_river_vector_poly_clean_tmp</div><div>type       count        min        max</div><div>point          0          0          0</div><div>line         804          1       1053</div></div><div>....</div><div><br></div><div>This would indicate that I have 804 line features. However, using the tool <a href="http://v.info">v.info</a> on the same vector I get following different result regarding the number of lines:</div><div><div><a href="http://v.info">v.info</a> map=Ebro_river_vector_poly_clean_tmp@Ebro2_alien_spread                  </div><div> +----------------------------------------------------------------------------+</div><div> | Name:            Ebro_river_vector_poly_clean_tmp                          |</div><div> ...</div><div> |   Number of points:       0               Number of centroids:  0          |</div><div> |   Number of lines:        799             Number of boundaries: 0          |</div><div>... <br></div></div><div><br></div><div>And even more puzzling, I then added a table to this vector map and the output of v.db.addtable is:</div><div><div>v.db.addtable map=Ebro_river_vector_poly_clean_tmp@Ebro2_alien_spread           </div><div>Reading features...</div><div>Updating database...</div><div>803 categories read from vector map (layer 1)</div><div>803 categories read from vector map don't exist in selection from table</div><div>803 records updated/inserted (layer 1)</div></div><div><br></div><div>So, is it 804,799 or 803??</div><div><br></div><div>The map I am using is a polyline river network (cat=first) that has gone trough the tool v.clean with the options: break,rmdupl,rmline,rmsa,rmdangle. The number of lines and cats before the cleaning tool is 805 (consistent output among all tools).</div><div><br></div><div>So I am wondering what happens during cleaning and how to get a clean map with a corresponding table that has entries for each cat, and were each cat represents one line feature (i.e. that the number of cats/line features is consistent over the multiple tools).</div><div><br></div><div>Please let me know if I should share the vector map (and how, which format).</div><div><br></div><div>Cheers,</div><div>Johannes</div></div></div></div></div></div>