{"id":19850236,"url":"https://github.com/trailbehind/usfstrailimport","last_synced_at":"2025-05-01T22:30:58.819Z","repository":{"id":52545567,"uuid":"91641495","full_name":"trailbehind/USFSTrailImport","owner":"trailbehind","description":"Coordinating USFS Trail data import into OpenStreetMap","archived":false,"fork":false,"pushed_at":"2021-04-26T16:03:18.000Z","size":14689,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-06T19:11:12.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailbehind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-18T02:46:41.000Z","updated_at":"2021-04-26T16:03:21.000Z","dependencies_parsed_at":"2022-09-01T20:22:14.916Z","dependency_job_id":null,"html_url":"https://github.com/trailbehind/USFSTrailImport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailbehind%2FUSFSTrailImport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailbehind%2FUSFSTrailImport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailbehind%2FUSFSTrailImport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailbehind%2FUSFSTrailImport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailbehind","download_url":"https://codeload.github.com/trailbehind/USFSTrailImport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251954836,"owners_count":21670887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T13:24:58.876Z","updated_at":"2025-05-01T22:30:56.801Z","avatar_url":"https://github.com/trailbehind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# USFS Trails import\nCoordinating USFS Trail data import into OpenStreetMap\n\n\n### Why are we doing this?\n\n### Where is the data from\nSource data: https://data.fs.usda.gov/geodata/edw/edw_resources/shp/S_USA.TrailNFS_Publish.zip\n\nSource Metadata: https://data.fs.usda.gov/geodata/edw/edw_resources/meta/S_USA.TrailNFS_Publish.xml \n\n\n### More on this project\nThese scripts generate an OSM file of trails per USFS ranger district,\nready to be used in JOSM for a manual review and upload to OpenStreetMap. This repository is based heavily on the [LA building import](https://github.com/osmlab/labuildings)\n\nThis README is about data conversion. See also the [page on the OSM wiki](https://wiki.openstreetmap.org/wiki/).\n\nSample .osm files (**not ready for import yet**) are in this [zip file](https://github.com/JesseCrocker/USFSTrailImport/raw/master/samples/selway/transform.osm.zip).\n\nBrowse a slippy map of the data [here](https://api.mapbox.com/styles/v1/jessecrocker/cj2ugplpf002u2ro8702qofb3.html?fresh=true\u0026title=true\u0026access_token=pk.eyJ1IjoiamVzc2Vjcm9ja2VyIiwiYSI6ImJHZ3BTQVUifQ.1m4Ny1SMveShHevw1orutw#6.94/38.483/-119.207)\n\n\n## Prerequisites\n\n    Python 2.7.x\n    pip\n    virtualenv\n    libxml2\n    libxslt\n    spatialindex\n    GDAL\n\n### Installing prerequisites on Mac OSX\n\n    # install brew http://brew.sh\n\n    brew install libxml2\n    brew install libxslt\n    brew install spatialindex\n    brew install gdal\n\n### Installing prerequisites on Ubuntu\n\n    apt-get install python-pip\n    apt-get install python-virtualenv\n    apt-get install gdal-bin\n    apt-get install libgdal-dev\n    apt-get install libxml2-dev\n    apt-get install libxslt-dev\n    apt-get install python-lxml\n    apt-get install python-dev\n    apt-get install libspatialindex-dev\n    apt-get install unzip\n\n## Set up Python virtualenv and get dependencies\n    # may need to easy_install pip and pip install virtualenv\n    virtualenv ~/venvs/usfstrails\n    source ~/venvs/usfstrails/bin/activate\n    pip install -r requirements.txt\n\n\n\n## Usage\n\nRun all stages:\n\n    # Download all files and process them a .osm file per ranger district.\n    make\n\nYou can run stages separately, like so:\n\n    # Download and expand all files, reproject\n    make download\n\n    # Chunk data by ranger district.\n    make chunks\n\n    # Generate importable .osm files.\n    # This will populate the osm/ directory with one .osm file per\n    # ranger district.\n    make osm\n\n    # Clean up all intermediary files:\n    make clean\n\n## Features\n\n\n\n## Attribute mapping\n\nSee the [ogr2osm translation script](https://github.com/JesseCrocker/ogr2osm-translations/blob/usfs-trails/usfs_trails.py) to see the implementation of these transformations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailbehind%2Fusfstrailimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailbehind%2Fusfstrailimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailbehind%2Fusfstrailimport/lists"}