note19 project


Note 19Today I created a Google project to place scripts that I create whilst learning about maps, gpx, … under source control. These scripts are of little use to anyone else (unless you too are a newbie to ruby, gpx and maps). I’m also new to subversion. I’ve used it to get the sources of a number of apache project, but have never used it to check in code. It took a number of iterations to get my environment set up for subversion:

  1. Create google project
  2. Create a root folder where you plan to store your sources, e.g., ~/myproject
  3. Create 3 subfolders under ~/myproject: ./branches, ./tags, and ./trunk
  4. cd ~/myproject/trunk
  5. Check out the empty subversion project from google. This will set the subversion environment for the ~/myproject/trunk folder:
    svn checkout https://myproject.googlecode.com/svn/trunk/ .
    --username your-id --password your-password
  6. Start copying your actual sources to ~/myproject/trunk folder and then use the svn add command to add the content of this folder to subversion: svn add .
  7. Now set your editor via the SVN_EDITOR environment variable, e.g.
    export SVN_EDITOR=emacs
  8. Use svn commit to check in your sources.

I created a small Ruby module to read GPX files and convert them to Google maps. Here is the latest data from my GPS device. The data needs to be filtered, some of the GPX tracks have 500 points and they are so close together and one could safely eliminate a large percentage of them and still have an accurate rendition of the route. But some, like track #8, cover a long range.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: