Using KML, XML, and XSL to Create Google Earth Applications: A Tutorial Betsy Page Sigman and William Garr Georgetown University Southeast Decision Sciences.

Slides:



Advertisements
Similar presentations
Office Links - Sharing Data in Microsoft Office A Mixed Bag of Treasures Chester N. Barkan Registrar Long Island University, C.W.Post Campus.
Advertisements

Customizing the MOSS 2007 Search Results November 2007 Rafael Perez.
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
Online Collaboration Applications ADE100- Computer Literacy Lecture 28.
Managing Grades with Excel Viewing Help To view Help 1.Open Excel on your computer. 2.In the top right hand corner of the Excel Screen type in the.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Creating a Web Page HTML, FrontPage, Word, Composer.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
Refworks Presented by Margaret Clark, Reference Librarian FSU College of Law Library September 20, 2005.
Building and managing class pages on our new Web site School Wires Training.
A guide for UICET for using Wikispaces.  A wiki is a web page or collection of web pages that can be linked together as a website.  Wikis are often.
USING REFWORKS Fall What is RefWorks? A web-based bibliographic and database manager Creighton University faculty, students, and staff have access.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
Importing your Own Data To display in GIS Lab 4a: (Table Join) Mapping By State, County, or Nation.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
An Introduction to Grants.gov Sponsored Programs Office February 22,
A Step by Step Guide How to add your own pages to the website.
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Getting Started with. EndNote Basic: It allows you to: Collect references from online sources or enter them manually Access your references from any computer.
Martin Dodge Practical 2, 24th March 2004, pm Social Science Research Methodologies.
1. 2 Introductions  Name?  What do you want to get out of this session?  To follow along with this presentation go to
1 Committed to Shaping the Next Generation of IT Experts. Chapter 8 Exchanging Data Between Access and Other Applications Exploring Microsoft Office Access.
Downloading and Installing Autodesk Revit 2016
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
Click your mouse for next slide Dreamweaver – Inserting and Formatting Text Inserting text is just as easy as inserting pictures If you wish to type text.
Moodle with Style Integrating new technologies to empower learning and transform leadership.
Foxbright – Smarter Education Websiteswww.foxbright.com Foxbright Training Foxbright Teacher Pages
Sports Website Creation. In this project you will design and produce your own website.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Instructions.  Open up the letter that Adam has given to you  Format it so it look professional.
Mapping local community assets online Read this if you want to learn how to: 1)Create online maps of local community assets using Google Maps 2)Allow other.
XP Foundation year Lec.4: Lec.4: Word Processing Software Using Microsoft Office 2007 Lecturer: Dalia Mirghani Year : 2014/2015.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Creating a Google Site For a Digital Portfolio Purpose.
Instructional Design Center Embedding Google Documents in Blackboard.
This work is licensed under a Creative Commons 3.0 Attribution License Wikispaces for Teachers A Guide to Using Them in Your Classroom.
TechKnowlogy Conference August 2, 2011 Using GoogleDocs for Collaboration.
Mind Mapping with Bubbl.us. The Bubbl.us Homepage Click to create a bubbl.us account Sign in or, To access, type
GETTING STARTED WITH. EndNote allows you to: Access your references from any computer with internet Collect references from online sources Drop citations.
Mail Merge Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter.
Jacynthe Touchette, MSI JGH Health Sciences Library
Intro to Google Docs 2014.
Group work Create your Wiki with Wikispaces.com.
Weebly Elements, Continued
Registering for Easy Bib and Creating a Works Cited Page
Weebly Elements, Continued
Dreamweaver MX Lesson 14: Using Find and Replace.
Data Virtualization Tutorial: XSLT and Streaming Transformations
Mail Merge Instructions (Yanick’s Version)
Adding Assignments and Learning Units to Your TSS Course
Collaboration with Google Docs
GDSS – Digital Signature
Introduction to Google Maps
Microsoft Office Access 2003
Microsoft Office Access 2003
Introduction to Database Programs
HOW TO MAKE PAGES FOR A WEB SITE
Tutorial 7 – Integrating Access With the Web and With Other Programs
Introduction to Database Programs
Executive Reports, Instructions and Documentation
Chloe Riley | Research Commons Librarian |
Presentation transcript:

Using KML, XML, and XSL to Create Google Earth Applications: A Tutorial Betsy Page Sigman and William Garr Georgetown University Southeast Decision Sciences Institute Conference Orlando, Florida February 22, 2008

Overview 1.The benefits of displaying data using Google Earth/Google Maps (GE/GM) 2.KML and the creation of placemarks in Google Earth/Google Maps 3.Use an Access database to create many placemarks simultaneously 4.Create different styles of placemarks based on the value of an attribute.

Why Use Google Earth/Maps to Show Data 1) Allows the viewer to understand the data more fully. 2) Can enable the viewer to use the data more easily. 3) Gives a more comprehensive view about how the data presented relate to each other. 4) Can aid in decision support, due to the properties discussed above.

Getting Information from a Placemark 1.From information listed on the placemark (i.e. Address, Contact person, Phone, , etc.) 2.From the geographic location of the placemark. 3.From an attribute of the icon used (i.e. shape, color)

XML XML stands for “eXtensible Markup Language.” Extensible means that it can be extended to create whatever tags you want.

How it differs from HTML XML holds data HTML presents data XML is about what data is HTML is about how data looks XML is for data description HTML is for data display

Example of XML Rebecca Donald Remember Don’t forget your MIS final Right now, this doesn’t do anything. You’d have to send it or display it.

Simple KML File Washington, D.C. 4. Washington, D.C , ,

Ways to Create a KML File 1) Use Google Earth’s placemark creator. 2) Use a plain text editor such as Notepad or an XML editor. Output data from a database in the correct format. Later, we show how to do this with an Access database and an XSL transform.

Creating a Placemark Open up Google Earth. Click on yellow pushpin icon. Cursor over yellow box until cursor turns into a pointing finger. Now move the box where you want to put the placemark. Fill in a description. Click “OK.” Look over at sidebar on left; you should see a label with whatever you called your placemark.

Creating a Placemark (cont.) Click on the link on the left to go to the placemark. Right click and go to “Properties.” Click on icon in upper right corner of box to select a different icon.

Creating a Placemark (cont.) Experiment with changing the following: –Shape –Color of placemark –Scale –Opacity –Color, Scale and Opacity of Label –View –Altitude

Examine the KML After you’ve changed the settings, close out of the placemark by clicking “OK.” Now find your file over on the left, right click, select “Copy” and paste it into a Notepad file. You will see the KML for the placemark you just created.

KML Placemark (Page 1) KmlFile normal #sn_ylw-pushpin2

KML Placemark (Page 2) highlight #sh_ylw-pushpin Test Placemark One Here is where test placemark one is located.

KML Placemark (Page 3) e #msn_ylw-pushpin , ,0

Changing an Access Database to XML Pick fields from the Access database to include in your placemarks. Rename fields if they have spaces and characters such as underscores (that don’t translate well to XML). Create and save a query using those fields. Export that query to a XML file, by going to the “External Data” tab, then going to the “Export” tab, and going to “More,” then selecting “XML File.” Notice that each record becomes an element encompassed by tags bearing the name of the query. This above has just been to show you how to change the data to XML. To create KML you’ll need an XSL stylesheet.

XSL XSL stands for eXtensible Style Language. XSL gives instructions for how data should be displayed. Since KML is a subset of XML, we can use XSL to transform KML to look the way we want.

Using XSL with Access As you output the Access records to XML, you can transform them by selecting an XSL stylesheet. You can use this to: –Choose elements –Make decisions about elements based on values – Embed HTML to structure the data the way you wish –Automatically create placemarks formatted the way you like.

Steps to Creating an XSL Transform Include information on the XML version and encoding: Call the xml namespace for xsl transforms: Say go to the root element: Indicate the version of kml that will be used: Put in document and name tags: KmlFile

Steps to Creating an XSL File (cont.) Add formatting for the pushpin icon. You can copy and paste from creating one by clicking on the yellow icon and reformatting it the way you like.

Steps to Creating an XSL File (cont.) normal #sn_ylw-pushpin highlight #sh_ylw-pushpin

Steps to Creating an XSL File (cont.) Next, we will set out a statement that will select every data record. Notice that here the exported KML file was built from a query called “ExportQuery.” Then we give instructions on how to structure the placemarks. For the name element, we select each value of “Organization”.

Steps to Creating an XSL File (cont.) Then we start the description tags. The xsl:value-of tag tells to select the value of “Community.” Notice how we use CDATA to create breaks. ]]> ]]>

Steps to Creating an XSL File (cont.) ]]> What is going on here?

Steps to Creating an XSL File (cont.) Below, we’ve asked the program to create placemarks circling the equator. These can then be moved by hand into appropriate positions. Another, more exact, way to position placemarks is to merge your Access file with latitude and longitude positions for places, towns, and cities. There are free and paid sources available for latitude and longitude.,0,5 After you’ve completed your xsl stylesheet, save it in Notepad with a.xsl extension.

Using an XSL Transform To export your Access data to KML in Microsoft Access 2007 by using an XSL transform, carry out the following steps: 1) Select table or query to export; 2) Click “External Data” tab; 3) Under Export, click “More” to show more export options, then “XML File”; 4) Browse to find the location you want to export the data to (being sure that it will be saved as an XML file), click “OK”; 5) Be sure that the “Data” box is checked; 6) Click “More Options” and then click “Transforms.” 7) Click “Add” and find the.xsl file where you stored the code to transform your data into XML. Click “OK.” 8) Be sure that “Export Data” is checked and under “Records to Export”, the “All Records” radio button is selected. 9) Click “OK” to transform the data set to XML.

Creating a KML file The file you just created will be output as an XML file. You will need to change it to a KML file by: Finding the file (using Windows Explorer) and selecting it. Right clicking and renaming it as a.kml file.

Open the file in Google Earth Be sure that Google Earth is installed on your computer. Select the KML file you created. Right click and select “Open with” and “Google Earth.” Your placemarks should appear. This file can be posted on a web site and downloaded so that others can make use of the KML file you’ve created.

Creating Different Placemark Styles and Assigning Them Based on an Attribute Often there is a need to create different types of placemarks to differentiate between types of organizations, places, etc. This can be done using an xsl:choose statement in combination with xsl:when test statements. An example of an xsl spreadsheet that was used to create blue ranger station icons (that look similar to schoolhouses) to represent high schools and red ranger station icons to represent colleges is shown below.

STAND

ffff

normal #sn_ranger_station highlight #sh_ranger_station

ffff ng

normal #sn_ranger_station_copy1 highlight #sh_ranger_station_copy1

ff0000ff ion.png

ff0000ff ion.png

#sn_ranger_station ]]> ]]> ]]> ]]>

,,0 #sn_ranger_station_copy1 ]]> ]]> ]]> ]]>

,,0

Conclusion There are many ways to use Google Earth and Google maps to portray information easily. We are just beginning to see the ways that this application will be able to more easily convey information. For more information on Google Earth and KML, go to dex.html and kml_tut.html dex.html kml_tut.html

Thank you! Please contact me at: Betsy Page Sigman McDonough School of Business Georgetown University 412 Old North Washington, D.C