Exporting KML from R

January 2, 2011
By

(This article was first published on Spatial Analysis » R, and kindly contributed to R-bloggers)

Google Earth has become a popular way of disseminating spatial data. KML is the data format required to do this. It is possible to load almost any type of spatial data format into R and export it as a KML file. In my experience R seems much quicker at doing this than many well-known GIS platforms, such as ArcGIS. The worksheet below explains how.

Data and Package Requirements:

London Sport Participation Shapefile. Download (requires unzipping)

Install the following packages (if you haven’t already done so):

maptools, rgdal (Mac users may wish to see here first).

Click here to view the tutorial code.

To leave a comment for the author, please follow the link and comment on his blog: Spatial Analysis » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , , , ,

Comments are closed.