Thursday, December 18, 2008
Oops. Where did the entire fall go? Can't believe the holiday season is on our doorstep and I haven't found time to post on the blog for over a month. There, now I've done it: I have committed the cardinal sin of blogging. I've blogged about not blogging. You are just not supposed to do that...
On a more happy note, I was very excited to see the recent update of the 3D building database in Google Earth that adds tons of photo-realistic building images for several major US cities. This is a view of Boston from above the harbor, with Faneuil Hall on the right:
If you have an iPhone, make sure to also try the Google Earth app for the iPhone, which is pretty amazing, too.
So what does this have to do with XML, you ask? All the buildings are encoded in KML, which is an open XML-based standard for geo-spatial information. And Google has created a huge 3D Warehouse of building images that are available in KML as well as other formats. To learn more about KML, take a look at this tutorial or the KML reference.
For example, this image on the left is a rendition of the Faneuil Hall model from the 3D Warehouse that was used in the above image on Google Earth. If you download the KML file from the warehouse, it comes in a KMZ archive, which is a ZIP-compressed package file. To explore this file in the XMLSpy XML Editor, all we have to do is add the KMZ file extension under Tools/Options and specify that it is a ZIP conformant file format.
Similarly, add the KML extension and specify that it is XML conformant. Now you can open all KMZ files in XMLSpy, see the files contained in the package, and directly open the KML file to view the XML markup it contains (this is just the beginning of the file):
More info on the new 3D buildings and a few screenshots of New York can be found on the Google Earth Blog. So get yourself a copy of Google Earth and start exploring...