[R-sig-Geo] Plotting shapefiles on top of Google map tiles

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Mon Jan 18 09:40:05 CET 2010


On Mon, Jan 18, 2010 at 8:23 AM, milton ruser <milton.ruser at gmail.com> wrote:
> Hi prof. Hijmans,
>
> Its Cool!
> Is there a similar facility for google earth? Plotting from R on a google
> earth session?!
>

 To put data onto Google Earth then you need to make a KML file. You
can probably do this with writeOGR from the rgdal package, or the kml*
functions in maptools - but if you want to do anything fancy then you
need to write your own KML file from your data. I have found the
'brewer' package useful for writing templates to make KML files.

 You'll have to study the KML specification from Google as well.

Barry


-- 
blog: http://geospaced.blogspot.com/
web: http://www.maths.lancs.ac.uk/~rowlings
web: http://www.rowlingson.com/
twitter: http://twitter.com/geospacedman
pics: http://www.flickr.com/photos/spacedman



More information about the R-sig-Geo mailing list