Bike maps

From Wildsong
Revision as of 23:34, 13 March 2012 by Brian Wilson (talk | contribs)
Jump to navigationJump to search

Oregon Bike Map

Proposed Tunison bike path

Google Maps

The finished page is here: http://alseageo.com/Maps/tunison.html

Google Earth

The finished page is here: http://alseageo.com/Maps/ge_tunison.html

Method

  • Digitized routes in ArcMap
  • Saved as shapefiles in Benton county projection
  • Reprojected to Web Mercator and convert to KML with ogr2ogr
  • Edited KML files in emacs to make them look good in Google Earth
  • Created web page on hostmonster.com hosted site

Note the backwards source and destination

for shp in *.shp
do
 b=`basename $shp .shp`
 ogr2ogr -f "KML" -t_srs EPSG:900913 $b.kml $shp
done

This creates KML files that can be loaded into a Google map (Google Earth or Google Maps).

After all the bother of creating and editing KML files, I ended up taking the linestrings and points out of the KML file and making a Google javascript program instead.

The KML looked good (after extensive edits) in Google Earth but the symbology did not come through in the Google Maps API.