How to extract the coordinates and names (labels) of a number of locations from a .kmz file in R
Clash Royale CLAN TAG#URR8PPP
How to extract the coordinates and names (labels) of a number of locations from a .kmz file in R
I need to extract the coordinates and names (labels) of a number of locations from a .kmz file in R. I already know how to get the latitude and longitudes using the getKMLcoordinates function but I do not know how to get their corresponding names.
1 Answer
1
A KML file is basically a XML file, therefore you could use any XML-package (e.g. xml2) to access all nodes within your KML-file.
If you provide your file or a snippet of the structure we could help you more specific.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I found the answer here posted by Clay
– Nile
Aug 13 at 7:03