Skip to content
Prev 20658 / 29559 Next

How to read or import a kml file in R

Ya, there are some exceptions. ie Styling is not really supported,
though work on the OGR side is in progress on that. Also there are some
kml files that merely have urls to some web server where the kml really
is (ie exports from Google maps). These notoriously don't work with OGR
or other kml engines.

The hack is to use google earth to open them and then save them back out
to yet another kml that actually has the data (I'm oversimplifying the
steps).

http://gdal.org/ogr/ogr_formats.html

FYI, if you use the Libkml driver you might get more details than the
traditional OGR kml drivers. Libkml behaves more like google earth,
since it's also written by google.

Thanks,
Alex
On 03/24/2014 11:38 AM, Hodgess, Erin wrote: