25
Keyhole Modeling Language – Chpt. 3 - Geometry Mr. Thomas Cooper Outdoor Technology The Walker School

Kml Basics Chpt 3 Geometry

Embed Size (px)

Citation preview

Page 1: Kml Basics Chpt  3   Geometry

Keyhole Modeling Language – Chpt. 3 - Geometry

Mr. Thomas Cooper

Outdoor Technology

The Walker School

Page 2: Kml Basics Chpt  3   Geometry

Adding Longitude and Latitude Grids

Directions1. Go to “View”2. Select “Grid”

Page 3: Kml Basics Chpt  3   Geometry

Point Element

<Point>

<coordinates>latitude,longitude,altitude

</coordinates>

</Point>

Page 4: Kml Basics Chpt  3   Geometry

Changing Color and Style

Directions1. Right click on a placemark in the Places panel and go to properties2. Click on Style and Color

Page 5: Kml Basics Chpt  3   Geometry

Measuring Tools

Directions1.Choose the measuring tool.2.Choose the type of measurement.3.Choose the unit of measurement.4.Click on the beginning point and the end point you want to measure.

NOTE: Only GE Pro has tools for measuring Polygons and Circles.

Page 6: Kml Basics Chpt  3   Geometry

Changing Altitude

Directions1.Right click on icon2.Choose “Properties”3.Go to “Altitude”4.Type in the altitude you want.

Page 7: Kml Basics Chpt  3   Geometry

Adding A Path

Directions

1. Choose “Path” from the tool bar.

3. Name Path

4. Choose “Style, Color” to change the color and style.

5. Choose “Altitude” to change the height of the path.

NOTE: The path goes through the mountain; we’ll fix this next.

Page 8: Kml Basics Chpt  3   Geometry

USGS Tectonic Plate Layer

http://earthquake.usgs.gov/regional/nca/virtualtour/kml/Earths_Tectonic_Plates.kmz

Page 9: Kml Basics Chpt  3   Geometry

Simple Line String

Page 10: Kml Basics Chpt  3   Geometry

Line String with Altitude

Tessellate set to 1 prevents line from going through the surface of the earth.

Page 11: Kml Basics Chpt  3   Geometry

Extruded Line String

Extruded set to 1 means line is extended to ground. Can be set to 0 or 1. Data type boolean.

Page 12: Kml Basics Chpt  3   Geometry

Line String with Style

Parent tag; part of <Style> tag along with <BalloonStyle>. Can change <color> and <width>.

Page 13: Kml Basics Chpt  3   Geometry

Adding a PolygonDirections

1. Choose “Polygon” from the tool bar.

2. Name your polygon.

3. Choose “Color, Style” tab to change the line color or thickness.

4. Choose “Color, Style” tab to change fill color.

5. Choose the “Altitude” to change the height of the polygon.

Page 14: Kml Basics Chpt  3   Geometry

Creating Buildings with Polygons

Directions

1. Use Earth to search for a vacant lot.

2. Draw your polygon.

3. Change the color and style.

4. Change the altitude to adjust the height of the building.

5. Click “Extend to Ground”.

Page 15: Kml Basics Chpt  3   Geometry

Simple Polygon

<Polygon><outerBoundaryIs><LinearRing><coordinates></LinearRing></outerBoundaryIs></Polygon>

<PolygonStyle><color>ffffffff</color><ColorMode>normal </ColorMode><fill>1</fill><outline>1</outline></PolygonStyle>

Page 16: Kml Basics Chpt  3   Geometry

Polygon with Holes

Inner

<Polygon><outerBoundaryIs><LinearRing><coordinates></LinearRing></outerBoundaryIs><innerBoundarIs><LinearRing><coordinates></LinearRing></innerBoundaryIs></Polygon>

Outer

Page 17: Kml Basics Chpt  3   Geometry

Making Letters in Earth

Use Polygons with <outerBoundaryIs> and <innerBoundaryIs tags>.

Page 18: Kml Basics Chpt  3   Geometry

MultiGeometry

Lets you add multiple geometric elements to a container, such as adding an icon over an polygon.

Page 19: Kml Basics Chpt  3   Geometry

3D Models

3D Buildings is a built-in layer in the Google Earth primary database.

Page 20: Kml Basics Chpt  3   Geometry

3D Wharehousehttp://sketchup.google.com/3dwarehouse/

Download other models from the 3D wharehouse.

Page 21: Kml Basics Chpt  3   Geometry

Search Models by Type or Decade

Major Categories1. Building Collections2. Featured

Collections3. Popular Models4. Recent Models

Page 22: Kml Basics Chpt  3   Geometry

Use Google Search, Advanced

1. Models have the file extension x.dae

2. Can search on the .dae extension in Google Search – http://search.google.com

3. Files are based on the COLLADA standard, which stands for Collaborative Design Activity.

4. More information on this standard can be found on Wikipedia - http://en.wikipedia.org/wiki/COLLADA .

Page 23: Kml Basics Chpt  3   Geometry

Online Documentationhttp://code.google.com/apis/kml/documentation/models.html

Page 24: Kml Basics Chpt  3   Geometry

Including Author and Source Information

<?xml version="1.0" encoding="utf-8"?><kml xmlns=http://www.opengis.net/kml/2.2 xmlns:atom="http://www.w3org/2005/Atom"> <Document> <atom:author> <atom:name>Thomas Cooper</atom:name></atom:author><atom:link href="http://… " /></Document></kml>

Page 25: Kml Basics Chpt  3   Geometry

Research Activity

Look through the Google Earth layers in the primary database or search online for other x.kml and x.kmz files and find an interesting use of a geometric object (e.g. arrow, line, etc.) that you could possible use for your project. Be prepared to explain: 1. …why you liked it. 2. …how you will use it to get a point across about your project. 3. …what code (<parent>, <child> tags) was used to create the object. 4. ..how you will have to change the code to meet your specifications.