ridesf code is checked into subversion

0 views
Skip to first unread message

John Roark

unread,
Dec 3, 2009, 1:33:32 PM12/3/09
to sf-bike-planner
All,

I uploaded the code for ridesf
(https://code.google.com/p/sf-bike-planner/source/browse/branches/#branches/ridesf).
There are three main sub dirs, www, src, and data (they should be self
explanatory. Under "src" the main cgi app is named "route" it connects
to the DB and performs the search as well as massages the data
returned from the pgRouting functions. I also uploaded several utility
programs that attempt to do various things from segmenting shapefiles
into two point line segments, to reverse geocode points along a line
segment in order to identify unnamed streets. Overall the code is not
very well commented and very much a work in progress. The front end
is, of course, in "www".

For all you GIS guys the data is a shapefile that I painstakingly
conflated by hand from the MTC data and Tiger. I don't know how
accurate it is at this point and it still doesn't contain one way
streets or elevation data (hint, hint).

Data wise, if you look at the shapefile I uploaded, it contains 7
attributes (FID, FULLNAME, DIVROAD, DECKROAD, BIKELANE, ELEVATION,
LENGTH). They should mostly be self explanatory, DIVROAD is boolean
attribute for a road with a median (like Dolores St.) and DECKROAD is
a boolean for roads that are stacked (like the bay bridge), neither of
these is used anywhere by me, I just thought they might be useful
eventually. It would be great to have some form of one way data (not
sure how best to add that data, perhaps an attribute with a radian
bearing?), bike lane class type (wish I'd taken the time to transfer
this info) and elevation (the field is there and I think my elevation
program will fill it out properly?).

If anyone would like shell access to the server, send me your pub ssh
key and I'll add you to the authorized_keys.

Let me know if you have any questions,
John

John Roark

unread,
Dec 4, 2009, 2:26:28 PM12/4/09
to Matthew Heberger, sf-bike...@googlegroups.com
Matt,

Probably the easiest way to use subversion and ssh in windows is with
cygwin (http://cygwin.com). Select subversion and openssh from the
packages list.

To check in your code:

svn checkout -N https://sf-bike-planner.googlecode.com/svn/
sf-bike-planner --username <your-username>
cd sf-bike-planner
svn -N up branches
mkdir <your-project-name>
cp -R /path/to/your/code <your-project-name>/
svn add <your-project-name>
svn ci -m "message describing your checkin"

To generate an ssh public key:

ssh-keygen

(should create two files /home/your-user-name/.ssh/id_rsa and
/home/your-user-name/.ssh/id_rsa.pub e-mail me the id_rsa.pub file)

This will give you shell access to my webserver

John

On Fri, Dec 4, 2009 at 11:05 AM, Matthew Heberger <mheb...@gmail.com> wrote:
> Hey John,
>
> Thanks for doing this. I'm going to try to figure out how to upload my code
> as well. (I've never used subversion before, but it seems straightforward
> enough.)
>
> Probably a dumb question, but is a "pub ssh key" something that is easily
> obtainable? I don't know what it is or how to get one... I briefly googled
> it, and the info seems very linux-centric. I have Windows...
>
> There is definitely a gulf between programmers and GIS types... you and Amar
> kept talking about "conflating" datasets. In ten years of using GIS, I've
> never heard anyone use that word, and I'm still not sure exactly what
> exactly you were trying to do!
>
> Matt
>
>
Reply all
Reply to author
Forward
0 new messages