Posts

Showing posts with the label Google Earth

Interactive KML Placemarks using HTML/JavaScript

My colleague stopped by this morning and asked me to see if there is any way to  implement combo box / drop-down list in KML file for dynamically selecting the Placemarks' information. Few hour of googling come up with a quick and dirty KML (adding custom data) using HTML/JavaScript in <ExtendedData>  tag with combo box selection and pasted it here for our future reference. It may helps others as well. If there are any alternatives feel free to chime in. <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Style id="MyBalloonStyle"> <BalloonStyle> <text> <![CDATA[ <b>Example extended data template</b> <div style="width:350px;" id="tree"></div> <table id="table" border="1...

pyKML - a Python library for generating and parsing KML

Image
pyKML   is an open source Python library for generating, parsing, and modifying   KML , the geo-spatial data language used by Google Earth, Google Maps and a number of other GIS platforms. pyKML helps working with large and complex KML documents by leveraging the use of basic programming constructs (looping, branching, etc.). In this regard pyKML is similar to   libkml , Google’s open source C++ library, but takes advantage of the highly readable syntax of the   Python   programming language and the processing capabilities of the popular   lxml   Python library. pyKML v0.1.0 documentation :  http://packages.python.org/pykml/ Source: Google Geo Developers Blog

Geographic Visualization for the Web : Book Review

Image
“ This book is an attempt to share the knowledge I've gained from the experts at Google. When I joined it, the KML team consisted of two engineers: Bent Hagemark and Michael Ashbridge ("Mash"). Bent and Mash's mission was to corral the existing KML into a formal XML schema, to create compelling examples that would represent good coding style, and to shepherd the language to its new and deserved status as an international standard. I was to create a website for KML and expand the existing documentation. I managed to complete that task, but it always felt as though I'd exposed only the tip of the iceberg. Well, here's The Iceberg.”          – Author "KML Handbook :Geographic Visualization for the Web" is primarily targeted for people who are curious about how to create customized presentations for an Earth browser such as Google Earth but have little or no experience with computer programming. It has step by step guidelines to create...

Instructions for Creating KMZ Image Overlays from ArcGIS in Google Earth and Google Map

Image
Creating a kmz image overlay  1. Make sure the dataset you are working with has a geographic coordinate system (unprojected) with WGS84 as the datum. If not, you will need to reproject your data. If the coordinate system of your datasets is defined you can change the projection “on-the-fly”. To reproject on-the-fly, go to Layers then Click Properties and specify geographic with WGS84 datum as the coordinate system. However, I recommend reprojecting the actual GIS datasets (shapefiles, grids, etc.) because project-on-the-fly is not always very precise, particularly when dealing with datum transformations. 2. Switch to the layout view. Select a layout that matches the dimensions of your map as closely as possible. To keep the file sizes of your images small, try to leave as little empty space around the edges as possible. Right-click on the layout and select Page and Print Setup to change the layout size. 3. Right-click on the map and select Properties. Go to the Size and Posit...