Geol 185

Downloading data from the Garmin GPS to Arcview
  and
    Rectifying ("georeferencing") an image to a coordinate system.

This process is made possible using

I found these searching for "garmin"   at the ESRI website, which pointed to the Calfiornia Dept of Game and Fish, who developed the AVGarmin software.  It can be download directly from the ESRI site ("a user script") or form the developers website.

Steps in the process include

  1. gathering "waypoints" using the GPS
  2. dumping them from the GPS to a PC as a "comma delimited text file"
  3. making an ArcView project and with a projected view
  4. importing the data file into Arcview using the AVGarmin extension
Your Assignment is


1.  Get the waypoint data into the GPS.

2.  Getting the data OUT of the GPS.

  • make sure that the GPS is in "garmin" mode.  Press menu twice to get the setup menu, toggle to the right to the last page, and make sure that "garmin" appears in the top box.
  • connect the cable to the PC (use COM1 port or change in in the GPS menu shown below)
  • turn on the GPS (when it barks about having to initialize a position, just say "no")
  • start the Waypoint program (an alias is on the desktop).

  • You have to make a few changes to options in the file menu
  • 3.  Make sure that you have an Arcview project with a View made into which you can put the data.  This view needs to be projected via the View Properties box.  Load the AVGarmin Extension (under the file menu). NOTE: you can unload the extension once you have entered the data, and in fact, it is dangerous to have too many home grown extensions loaded...makes Arcview unstable in my opinion.

      which adds a button to your menu 
     

    4.  Use AVGarmin to add in the data to your view.  Click  your new button and make the following changes.
     
    1. Change the input file format to "Waypoint+ optional" format
    2. Select the View
    3. If it isn't set to "Projections of the World; Geographic sphere" change it to that ouput projection by clicking the worldly button.


    4. (It MUST be this type of data if it will be projected in Arcview
    5. Hit "create" 
    6. You'll be asked for a name for your theme.

    Next tune

    Rectifying ("georeferencing") an image to a coordinate system.
    Steps in this process

    1. get or scan an air photo  or satellite image (e.g., www.terraserver.com) and import it into arcview (load the JPG extension via the file if it is a JPEG image)
    2. change the image to a grid (must have "Spatial Analyst" extension loaded)
    3. create a file of points that match on the photo and on the map
    4. "Warp" the image so that it has geographic coordinates.
    5. Reformat the grid(s) to image format if it is not B&W
    Acquiring the image
    1. get any type of aerial image in most any image format (TIFF, JPEG, etc)  Color images will be a bit more complicated than black and white
    2. create a new view with "raw" (unprojected) coordinates.  This will be a grid of cells.  Make sure you have a map open in a different view that has already been projected.
    3. From the image view, under the theme menu, choose "Save as grid"  If it is a color image, you'll have to save it as 3 superimposed images, one for each color red, blue and green.
    Setting up the rectification
    1. load the "Spatial Tools Extension via the file menu, which will add the Transformation menu
    2. under that menu, choose the "from view" (the image) and the "To View" (the map)  ("warping from this space to that)
    3. create a link table that will contain a pair coordinates from each view for comparable points on each view.
    4. set the link table to the one you just create.
    5. Go to the "from" view and click on the "S" button in the bottom row.  Then zoom in (right click and hold, or using the zoom button) to a place that you're sure you can find on the map.
    6. click the image, and then you'll be shifted to the "to" view, where you choose the same point.
    7. You'll need about 10 points to do this well.  Make sure that the cover the entire area you want to "warp" and that the are spaced around the image (not clustered in bunches).  Be as precise as possible.
    Warp the image
    1. Once you've got the ten or so points, select the grids that you want to warp and choose "warp" from the Transformation menu.
    2. you'll probably not need more than 2nd order and you should choose "nearest neighbor" so that no "averaging" takes place, just shifting.
    Recreate the image (if not just b&w)
    1. check out how well the image aligns with the map view once the warping is complete.
    2. if you're satisfied, change it back to an image (you don't need to for B&W, just set the legend to 256 levels of black (1) to white (256) ) using the options at the bottom of the Transformation menu



    Your assignment.
     
    1. Make a new polyline theme that you digitize from the screen image of the Lexington topo map that is a track starting at the science building and meanders around campus, including some part near the atheletic fields.
    2. Using the GPS, take that route on foot or bike and store lots of waypoints.
    3. Download those data into your Arcview project
    4. Rectify the color image of campus found on the L-drive (campus.jpg)
    5. Plot your waypoints on the rectified image along with the track from 1.
    6. Put that map, plus a copy of the table from the waypoints theme, onto your web page.


    David Harbor
    October 12, 2000