Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparing data for OpenTrails: 1-to-many trailhead to trail segment relationships #85

Open
alanjosephwilliams opened this issue Aug 15, 2014 · 1 comment

Comments

@alanjosephwilliams
Copy link
Contributor

While the change from "trail_ids" (linking trailheads to named_trails.csv) to "segment_ids" (now linking them to trail_segments.geojson instead) has made associating trailheads with the trail network easier and more consistently accurate, there are still so non-trivial hurdles for those looking to create this association for the first time.

Our current recommendation for those "preparing input data" for the converter is to run a spatial join between their trailheads and trailsegments shapefiles. While a 1:1 spatial join is straightforward, the specification allows for, and many uses cases want to adopt, a 1:many relationship between trailheads and segments.

Currently, GIS users can run a one to many spatial join between TH & TS within a certain distance (say, ~25m). The resulting geodatabase can be exported to a shapefile. The hiccup is that the shapefile ends up with many records for each unique segment—one copy of the trailhead for each association.

The task then is getting the many "segment_ids" into one trailhead record (concatenating all the values, collapsing the records). It is not clear to the OpenTrails team at this point (Trailhead Lab + me) what ESRI/ArcMap tooling exists for this purpose.

Another approach would be to handle this sort of input data at the Converter level. We have sample data on hand if anyone is interested.

thoughts @migurski @ngoldman?

@ungoldman
Copy link
Contributor

sounds good to me 👍

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

No branches or pull requests

2 participants