trailheadlabs / transit-and-trails

Find, plan and share outdoor activities
http://www.transitandtrails.org
MIT License
2 stars 0 forks source link

download gis shapefile of trailheads and campgrounds #110

Open ryanbranciforte opened 11 years ago

ryanbranciforte commented 11 years ago

good one for jason?

the ability to download features into a GIS shapefile

this is something our Trailblazers want (Santa Clara, GGNPC) and will help to add to regional curated rec content.

I sent Greg's code in an email on 4/29/13

email from Greg at GIN: From: Greg Allensworth gregor@greeninfo.org Date: Mon, Dec 5, 2011 at 12:10 PM Subject: Re: Trailheads To: Ryan Branciforte ryan@openspacecouncil.org

I am wondering if you can export the TnT Trailheads as a shapefile again

This was not exactly straightforward, but yes see attached.

Explanation: I did a one-time data load of the TnT feed into our PostGIS database for use with parkinfo.org, and did not expect that this would be a recurring need. So this was not something I was prepared to do again.

I wrote a program in PHP which will read the TnT feed and generate a zipped shapefile. That is also attached. Though it is meant to be run from the command-line, I think that TnT could add some window dressing or make it into a cronjob and turn it into the "download trailheads as a shapefile" service, then make some simple changes to do the same for campgrounds.