Online Mapping - KML and Google Earth Flashcards
What does KML stand for?
- Keyhole Markup Language
What is the definition of KML?
- XML based format
- Stores and models geospatial data
- Can store descriptors like text, polygons, points, lines, images and 3D models
What is XML?
- Flexible way to story data
- Data is categorized by user defined tags
- Data can be organized to custom specification and yet remain machine-readable
How does google describe KML?
- Tag-based file format used to display geographic data in an Earth Browser
What act as browsers for KML files? Why is the browsing function important?
- Google Earth and Maps
- Browsing function enables sharing of data and maps freely
What is a Tag?
- Simply and intuitive code that tells the software what to do
- Describes the manner in which certain features and text are displayed
What can we do with KML?
- Take locations and specify the manner in which the labels display
- Ground and image overlays with georeferenced data
- Screen overlays (click and drag image to fit
- Change/apply styles
- Use HTML to define the way text looks, embed pictures and/or videos
- Paths, points, polygons
- Incorporate time tags and animate
What is the breakdown of a basic Placemark script?
Placemark name /name Description /description Point Coordinates /Coordinates /Point /Placemark
What is necessary to open and close a KML script?
The opening and closing tags
What differentiates a KML script from a text file?
- The opening xml and mL tags
What is the purpose of indentations in a script?
- To help organize a script, but are not necessary
- To keep track of what is happening in a script
What does decimal degrees for the west require, especially in a script?
A - in front of the West coordinate
Which comes first for a coordinate in a script, latitude or longitude?
- Longitude, followed by Latitude
What must a KML script end with?
/kml
What is the purpose of the 3rd number in a coordinate string?
- The 3rd number is the elevation of the point
0 sits on the ground
> 0 floats above
What does a CDATA! tag do? Why is this useful in KML?
- The KML treats the text as characters
- Useful because simpler HTML text can be used inside the CDATA!
- Can change text, add website links, videos, photos etc.
What is one of the biggest advantages of using a CDATA! tag?
- Anything that can be defined in HTML can be added to the map
- Ability to write a web address simply as it is without an a href=”www….”
- Web links are far more complicated to use in KML without CDATA!
Why should a script be written in a text editor like Notepad ++ or Text Wrangler and not word?
- Word can have hidden code that will affect a script
What are some common HTML elements?
- <h1> h1 makes a heading sized font</h1>
- <p> p is a paragraph break</p>
- <i> i is italics</i>
- <b> b is bold</b>
- change font colour, use hexadecimal
What format should colors be referenced in?
Hexadecimal
How can videos be embedded in KML?
- Youtube videos come with an embed code that allows a video to be played directly in the mapping application without having to leave it
- Place rich web content directly into the description balloon with CDATA!