Keyhole Markup language: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 9: Line 9:
See also: [[Google Sketchup tutorial]]
See also: [[Google Sketchup tutorial]]


== KMZ integration and software ==
== Using sketchup for most of the work ==
 
You can place a Sketchup model in the right place with very little work.
 
; Requirements
* Google Earth must be installed on your Computer
 
; Procedure
 
* Open Menu Window->Model Info
* Select Geo-Location and click on the '''Add location button'''
* Search the right location (e.g. enter and address) and then '''grab''' when you are happy
* Sketchup now added a layer to your model (that you later can delete if you like)
 
Now do the following adjustements
* Rotate
* Scale
 
The export as Google Earth model
* File->Export Model
* Select 3Model
* Select Export type = ''Google Earth'' (kmz)
 
Open in Google Earth, clicking on the file should do. Else use ''File->Open''
 
If the position and the view isn't right, adjust what you can do in Sketchup, then do some KML surgery (see below)
 
== KMZ format and software ==


Google Earth files are Zip 2.0 archives that use the *.kmz extensions. At its root, the doc.kml specifying contents for display.
Google Earth files are Zip 2.0 archives that use the *.kmz extensions. At its root, the doc.kml specifying contents for display.

Revision as of 20:59, 10 April 2011

Draft

Introduction

According to Wikipedia (retrieved April 10, 2011), “Keyhole Markup Language (KML) is an XML schema for expressing geographic annotation and visualization within Internet-based, two-dimensional maps and three-dimensional Earth browsers. KML was developed for use with Google Earth, which was originally named Keyhole Earth Viewer. It was created by Keyhole, Inc, which was acquired by Google in 2004. The name "Keyhole" is an homage to the KH reconnaissance satellites, the original eye-in-the-sky military reconnaissance system first launched in 1976. KML is an international standard of the Open Geospatial Consortium.”

KML version 2.2 is one of the many Open Geospatial Consortium (OGC) standards. OGC is “is an international industry consortium of 420 companies, government agencies and universities participating in a consensus process to develop publicly available interface standards. OGC® Standards support interoperable solutions that "geo-enable" the Web, wireless and location-based services and mainstream IT.” (retrieved April 10 2011).

See also: Google Sketchup tutorial

Using sketchup for most of the work

You can place a Sketchup model in the right place with very little work.

Requirements
  • Google Earth must be installed on your Computer
Procedure
  • Open Menu Window->Model Info
  • Select Geo-Location and click on the Add location button
  • Search the right location (e.g. enter and address) and then grab when you are happy
  • Sketchup now added a layer to your model (that you later can delete if you like)

Now do the following adjustements

  • Rotate
  • Scale

The export as Google Earth model

  • File->Export Model
  • Select 3Model
  • Select Export type = Google Earth (kmz)

Open in Google Earth, clicking on the file should do. Else use File->Open

If the position and the view isn't right, adjust what you can do in Sketchup, then do some KML surgery (see below)

KMZ format and software

Google Earth files are Zip 2.0 archives that use the *.kmz extensions. At its root, the doc.kml specifying contents for display.

KML in Google KMZ files

A KMZ archive includes at least:

  • A doc.kml file that defining the features for display in a a 3D Earth browser like Google Earth
  • Subdirectories that includes assets, typically a Collada file representing a 3D model. For example, Sketchup creates a models directory with a Collada model and a texture subdirectory.

KML software

Important tags

The KML reference guide is well done

First things you may need to fix:

A simple example:

Links

At Google
Other introductions
Websites
Examples