diff --git a/hydrolink/nhd_hr.py b/hydrolink/nhd_hr.py index daeb388e94b61e8fe0bdf1411ae5fcc2a40b26be..6d4211729fe2a421e8d09070b7f29d28c7f437d8 100644 --- a/hydrolink/nhd_hr.py +++ b/hydrolink/nhd_hr.py @@ -450,7 +450,7 @@ class HighResPoint: 'source lon nad83': self.init_lon, 'source buffer meters': self.buffer_m, 'hydrolink message': self.message} - field_names = ['source id', 'source lat nad83', 'source lon nad83', 'source buffer meters', + field_names = ['source id', 'source lat nad83', 'source lon nad83', 'snap lat nad83', 'snap lon nad83', 'source buffer meters', 'closest confluence meters', 'closest flowline order', 'total count flowlines in buffer', 'source water name', 'cleaned source water name', 'flowline name similarity', 'flowline name similarity message', 'nhdhr flowline gnis name', diff --git a/hydrolink/nhd_mr.py b/hydrolink/nhd_mr.py index 1192201b3b8eed907f354688d0ce24271dca8e87..f06cb13f2f871b569ae85347ff841d7a91d03493 100644 --- a/hydrolink/nhd_mr.py +++ b/hydrolink/nhd_mr.py @@ -433,7 +433,7 @@ class MedResPoint: 'source lon nad83': self.init_lon, 'source buffer meters': self.buffer_m, 'hydrolink message': self.message} - field_names = ['source id', 'source lat nad83', 'source lon nad83', 'source buffer meters', + field_names = ['source id', 'source lat nad83', 'source lon nad83', 'snap lat nad83', 'snap lon nad83', 'source buffer meters', 'closest confluence meters', 'closest flowline order', 'total count flowlines in buffer', 'source water name', 'cleaned source water name', 'flowline name similarity', 'flowline name similarity message', 'nhdplusv2 flowline gnis name', 'nhdplusv2 comid', diff --git a/hydrolink/utils.py b/hydrolink/utils.py index f4abfe82c20453ab7ef71ddd1b48c16fd74d16e3..ab1f1cb90ebc9bb927bb5c4da5ac79f5897e3e85 100644 --- a/hydrolink/utils.py +++ b/hydrolink/utils.py @@ -93,7 +93,9 @@ def build_flowline_details(flowline_data, input_point, nhd_version='nhdhr', sour label_nhd_version = f'{nhd_version} flowline measure' flowline_attributes.update({'meters from flowline': snap_distance_meters, - label_nhd_version: nhd_measure + label_nhd_version: nhd_measure, + 'snap lon nad83' : flowline_snap_point.x, + 'snap lat nad83' : flowline_snap_point.y, }) return flowline_attributes, terminal_node_points, flowline_geo