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

trailheadlabs/MIDNRToOpenTrails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Michigan DNR to Open Trails Converter

A working python conversion script for Michigan DNR data to the Open Trail specification

Getting Started

  1. Clone the repo git clone git@github.com:trailheadlabs/MIDNRToOpenTrails.git
  2. Ensure you have Python 2.7+ installed by running python --version
  3. Install Python 2.7+ if not already installed.
  4. Install dependencies by running pip install -r requirements.txt
  5. Copy latest marquette_pilot_open_data.zip to input directory
  6. Run python MIDNRToOpenTrails.py
  7. A new MI_DNR_OpenTrails.zip will be placed in the output directory. Enjoy!

What this script does.

Order of operations

  1. Unzips input files (stewards.xls, named_trails.xls, trailheads and trail_segments shapefiles)
  2. Reads input files (into memory)
  3. Builds OpenTrails compliant data structures in memory
  4. Writes data structures to OpenTrails files (stewards.csv, named_trails.csv, trailheads.geojson, trail_segments.geojson)
  5. Creates simplified versions of the trail_segments.geojson file, using the rdp package.
  6. Zips files in output directory into MT_DNR_OpenTrails.zip

Dependencies

Notes

  • Does not include areas.geojson

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages