Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Add statistical output to nhd2osm #3014

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Add statistical output to nhd2osm #3014

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: dylan.semler[at]gmail.com
[Submitted to the original trac issue database at 1.59pm, Thursday, 27th May 2010]

The attached patch adds on optional argument to nhd2osm to print counts of the tags that were converted or skipped. The patch is against polyshp2osm-Area.py but applies cleanly to polyshp2osm-Waterbody.py as well. I've only tested on a couple nhd shapefiles that I have locally so far.

@openstreetmap-trac
Copy link
Author

Author: dylan.semler[at]gmail.com
[Added to the original trac issue at 12.01am, Thursday, 3rd June 2010]

Updated patch to fix small bug in the printed output. Previously if any ways were ignored due to their tags being in one of the ignored lists, the output would print ways that were skipped (instead of those that were ignored).

@openstreetmap-trac
Copy link
Author

Author: dylan.semler[at]gmail.com
[Added to the original trac issue at 7.17pm, Thursday, 3rd June 2010]

nhd2osm_stats.diff superseeds the previous patch. It adds the same statistical output to all of the script files: polyshp2osm-Waterbody.py, polyshp2osm-Area.py, shape_to_osm-Flowline.py, and shape_to_osm-Line.py.

With the patch the conversion statistics are printed by default by the shape_to_osm-* files, whereas the -S flag is required for polyshp2osm-* files.

@openstreetmap-trac
Copy link
Author

Author: iandees
[Added to the original trac issue at 9.46pm, Monday, 9th September 2013]

Cleaning aging tickets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant