Ticket #3014 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 7 months ago

Add statistical output to nhd2osm

Reported by: dylan.semler@… Owned by: tom@…
Priority: minor Milestone:
Component: utils Version:
Keywords: nhd2osm polyshp2osm Cc:

Description

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.

Attachments

polyshp2osm-Area_stats.diff Download (5.8 KB) - added by dylan.semler@… 4 years ago.
nhd2osm_stats.diff Download (23.1 KB) - added by dylan.semler@… 4 years ago.
Add conversion statistical output to each nhd2osm script

Change History

Changed 4 years ago by dylan.semler@…

comment:1 Changed 4 years ago by dylan.semler@…

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).

Changed 4 years ago by dylan.semler@…

Add conversion statistical output to each nhd2osm script

comment:2 Changed 4 years ago by dylan.semler@…

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.

comment:3 Changed 7 months ago by iandees

  • Status changed from new to closed
  • Resolution set to wontfix

Cleaning aging tickets.

Note: See TracTickets for help on using tickets.