Google Earth KMZ File Merging?
-
GoogleEarthFilter: How can I merge the contents of multiple point-data KMZ/KML files? Long-winded explanation inside. The engineering company for which I work is shifting from paper-based maps to Google Earth for site location records. There are a lot of old records to enter. I've been tasked with creating the procedure for multiple persons, during their non-project-scheduled time, to enter site locations and job names. These will all be point data, with a name and no description. The problem: 90% of my office is functionally computer illiterate. If Joe Employee is tasked to enter data directly into the kmz file which contains all previously entered points, and then save it again, he will manage to save one single point over the entire file. This happened during our first trial run. The solution I've come up with is to have each person save their edits to a seperate kmz file, which I or the other computer-savvy individual can later merge into the main database. I know you can drag and drop kmz files to create multiple nested sub-folders of points within Google Earth, but I don't -want- multiple nested sub-folders. I want all the points in one file. Google Earth will let you drag points from one folder to another, but only one at a time. How do I just rip all the points out of one file and stuff them into another?
-
Answer:
The API that describes the http://code.google.com/apis/kml/documentation/kml_tut.html suggests that Google Earth files are XML. This means you can parse the DOM, or structure, of a KML/KMZ file and manipulate it with any XML parser â you would pull out the nodes of interest from each KMZ file and pipe them into another file, for example. There are XML parsers for many scripting languages, such as http://www.xml.com/pub/a/1999/12/xml99/python.html or http://www.xml.com/pub/a/2000/04/05/feature/.
Phineas Rhyne at Ask.Metafilter.Com Visit the source
Other answers
It looks like you first need to unzip KMZ â KMZ looks like a zip-compressed version of KML. Just run unzip -p filename.kmz > filename.kml to get to the XML data.
Blazecock Pileon
http://www.gpsbabel.org/ can merge many types of geodata, and even filter out duplicate (or near duplicate) points.
scruss
what you need to do is open the kmz in google earth, save it as a kml. then you can open the kml to read the XML style of recording data with notepad or whatever. Reading then combining files to create one is a pretty simple process using python.
figTree
GPSBabel appears not to function properly with Google Earth data. At least, I keep losing points when I merge files, and they aren't near-duplicates. That said, I will be keeping a copy for myself and my geocaching, so thanks much scruss. Ugh. It appears I'm going to have to learn python. This will be a dubious process at best, but at least I know that's the right answer. If I manage to write something that doesn't make me cringe in pain, I'll post a link here, unless someone else wants the honor, in which case feel free!
Phineas Rhyne
Merging KML files is as simple as creating NetworkLink tags NetworkLink --> name --> link --> /
mastermindg
Related Q & A:
- When was Google Earth last updated?Best solution by Yahoo! Answers
- How do I find the address on Google Earth?Best solution by Yahoo! Answers
- What is the difference between Google earth and Google earth plus?Best solution by Yahoo! Answers
- What is the Spatial Resolution on Google Earth?Best solution by Geographic Information Systems
- How is google earth better than google map?Best solution by news.softpedia.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.