Opened 5 years ago

Closed 23 months ago

#3014 closed enhancement (wontfix)

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 (2)

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

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by dylan.semler@…

comment:1 Changed 5 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 5 years ago by dylan.semler@…

Add conversion statistical output to each nhd2osm script

comment:2 Changed 5 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 23 months ago by iandees

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

Cleaning aging tickets.

Note: See TracTickets for help on using tickets.