Skip to content

reading kmz file in R

3 messages · Heuvelink, Gerard, Hans-Jörg Bibiko

#
On Jun 7, 2010, at 1:36 PM, Heuvelink, Gerard wrote:

            
Here only my first thoughts:
kmz files are nothing else then zipped kml files. You can save your polygon in Google Earth by choosing "kml" as format, or unzip your kmz file and rename it to *.kml, or read the kmz as zip connection in R and process the data coming from that connection.

I hope it helps a bit.

Cheers and het beste,
--Hans
#
On Jun 7, 2010, at 2:23 PM, Hans-J?rg Bibiko wrote:
Here a tiny R example:

library(maptools)
getKMLcoordinates(textConnection(system("unzip -p /Users/foo/test.kmz", intern = TRUE)))

--Hans