SlideShare a Scribd company logo
KML
ASHOK BASNET (066BCT505)
BIKRAM THAPA (066BCT508)
SUPRITAM RAJ SHRESTHA (066BCT542)
What is KML?
 KML is type of markup language based off of XML.
 Stands for Keyhole Markup Language
 Developed by Keyhole Inc. Google
 KML files are very often distributed in KMZ files, which are zipped KML files
with a .kmz extension
Origin of KML
 KML was first known as Keyhole.
 KML originally developed for use with Google Earth.
 Its development was engineered by Keyhole, Inc which Google acquired
in 2004.
Definition
 Keyhole Markup Language (KML) is an XML notation for
expressing geographic annotation and visualization within
Internet-based, two-dimensional maps and three-
dimensional Earth browsers
In Other Words
 KML is a way of displaying geographical data in an Earth Browser such as,
KML Functions
KML includes features that allow it to display:
 place marks
 Images
 Polygons
 3D models
 Textual descriptions
Example
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Placemark>
<description>New York City</description>
<name>New York City</name>
<Point>
<coordinates>-74.006393,40.714172,0</coordinates>
</Point>
</Placemark>
</kml>
This is the previous script:
KML Applications:
KML file types are used by programs such as:
 ArcGIS Explorer
 Flickr
 Google Earth
 Google Maps
 Google Mobile
 Live Search Maps
 Microsoft Virtual Earth
 Marble (KDE)
 World Wind
 Yahoo Pipes
Google Maps and KML
KML Elements
 Everything is an “Object”. (Everything
inherits from the abstract “Object” KML
element).
 There are abstract elements
 Everything is a tag:
<Point>…</Point>
 The more advanced tags are (usually) for
Google Earth.
Google Maps supports a subset of
KML…
Google Maps supports…
 Placemarks
 Icons
 Folders
 Descriptive HTML
 KMZ (compressed KML, including attached images)
 Polylines and polygons
 Styles for polylines and polygons, including color, fill, and opacity
 Network links to import data dynamically
 Ground overlays and screen overlays
Structure
 KML is in XML format
 Usually everything contained in
Document tag
 Can have multiple Folder tags to
separate different kinds of data.
For example, one folder containing
KML to show locations of pictures
and another folder containing KML
to show your path through the day.
Placemarks/Points/Coordinates
 The easiest element in KML.
 A simple point on the map. It only needs a name and a location. You can
give it a description too.
 Placemark tag defines the place mark
 A Point tag within it defines where the Placemark will be.
 A “type” called coordinate defines the Point.
 Coordinates in KML are given long,lat. When typing in coordinates directly
into Google Maps, they are given lat,long. Be careful!
Contd.
Descriptive HTML
 You’ll probably want to do HTML within the description tag.
 You need to use the CDATA tag for this. If you don’t, your HTML’s tags
need to use entity references:
Paths
 Can define a path using the Placemark tag and the
LineString tag instead of the Point tag.
 Multiple coordinates. Again by long,lat,alt.
 “extrude” tag makes the line go down to the ground
 “tessellate” breaks each line into multiple pieces. Good
for long lines so they don’t end up underground.
 0 = false, 1 = true
Contd.
Advanced KML
Advanced KML
 MIME Types
 Styles
 Screen Overlays
 Network Links
MIME Type
 KML Servers must follow certain rules
 Must return response code of HTTP 200
 The type itself is:
application/vnd.google-earth.kml+xml
 Can set the type in PHP with:
header('Content-type: application/vnd.google-earth.kml+xml');
 Body must contain valid KML data and the XML declaration:
<?xml version="1.0" encoding="UTF-8"?>
Styles
 Similar to CSS/HTML styles.
 In a Style tag. Each style tag can have multiple styles within it: LineStyle,
PolyStyle, ColorStyle, etc.
 The tag has an “id” so it can be referenced within a file or from another. (A
Global KML Style file perhaps?)
 Add a styleUrl element to use a style.
 HW2 could have different icons based on content? A site that grabs all
the Google Map icons:
http://www.visual-case.it/cgi-bin/vc/GMapsIcons.pl
Contd.
Screen Overlays
 Add an image to the Google Maps/Earth window.
 Could be used for whatever purpose you like.
 ScreenOverlay tag.
 overlayXY and screenXY line up the image to the actual map
 In this example, (0,1) (in fractions) means 0% of x (all the way to the left)
and 100% of y (all the way to the top). The upper-left of the image is lined
up with the upper-left of the map. The unit can also be determined by
pixels.
 Size tag (obviously) controls size of the image. 0 means to maintain aspect
ratio, -1 indicate to use native dimension. Using some other value makes
the image that value. For example 0.2 with units on fraction makes the
image take up 20% of that dimension.
Contd.
Network Links
 Allows importing of KML, KMZ, and image files for ground/screen overlays.
 Local or remote file
 Uses a Link tag
 Good way to split up large KML file into much smaller KML files. More
manageable.
 More interesting feature: can use scripts to generate KML data on the fly.
(PHP, Perl, etc.)
 Usually uni-direction data flow (server to map) but when using
“viewRefreshMode”, the map can pass the script information on what is
being viewed (the LatLon box). Google Maps/Earth will call the script with
a BBOX parameter. Look at the KML Tutorial for more information.
Contd.
Sources
 http://en.wikipedia.org/wiki/Keyhole_Markup_Language
 http://code.google.com/apis/kml/documentation/kml_tut.html#placema
rks
THANK YOU

More Related Content

What's hot

STATE FISHES OF INDIA
STATE FISHES OF INDIASTATE FISHES OF INDIA
STATE FISHES OF INDIA
SHUBHAM PATIDAR FISHERIES ADDAA
 
Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...
Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...
Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...
lucianobb
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XMLyht4ever
 
RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)
RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)
RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)
Dimitris Kontokostas
 
GIS - Project Planning and Implementation
GIS - Project Planning and ImplementationGIS - Project Planning and Implementation
GIS - Project Planning and Implementation
Malla Reddy University
 
Spatial Database Systems
Spatial Database SystemsSpatial Database Systems
Spatial Database Systems
Asifuzzaman Hridoy
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Uday kumar Devalla
 
Principles of GIS unit 1
Principles of GIS unit 1Principles of GIS unit 1
Principles of GIS unit 1
SanjanaKhemka1
 
QGIS Tutorial 2
QGIS Tutorial 2QGIS Tutorial 2
QGIS Tutorial 2
niloyghosh1984
 
Application of remote sensing for environmental monitoring
Application of remote sensing for environmental monitoring Application of remote sensing for environmental monitoring
Application of remote sensing for environmental monitoring
Abdulla - Al Kafy
 
TOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKS
TOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKSTOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKS
TOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKS
iQHub
 
Components of GIS
Components of GISComponents of GIS
Components of GIS
Calcutta University
 

What's hot (13)

STATE FISHES OF INDIA
STATE FISHES OF INDIASTATE FISHES OF INDIA
STATE FISHES OF INDIA
 
Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...
Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...
Resumo MoReq-Jus - Modelo de Requisitos para Sistemas Informatizados de Gestã...
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)
RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)
RDFUnit - Test-Driven Linked Data quality Assessment (WWW2014)
 
GIS - Project Planning and Implementation
GIS - Project Planning and ImplementationGIS - Project Planning and Implementation
GIS - Project Planning and Implementation
 
Spatial Database Systems
Spatial Database SystemsSpatial Database Systems
Spatial Database Systems
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
Principles of GIS unit 1
Principles of GIS unit 1Principles of GIS unit 1
Principles of GIS unit 1
 
QGIS Tutorial 2
QGIS Tutorial 2QGIS Tutorial 2
QGIS Tutorial 2
 
Geodatabases
GeodatabasesGeodatabases
Geodatabases
 
Application of remote sensing for environmental monitoring
Application of remote sensing for environmental monitoring Application of remote sensing for environmental monitoring
Application of remote sensing for environmental monitoring
 
TOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKS
TOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKSTOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKS
TOOLS FOR OPTIMIZATION OF WATER DISTRIBUTION NETWORKS
 
Components of GIS
Components of GISComponents of GIS
Components of GIS
 

Viewers also liked

Kml Basics Chpt 4 Styles &amp; Icons
Kml Basics Chpt  4   Styles &amp; IconsKml Basics Chpt  4   Styles &amp; Icons
Kml Basics Chpt 4 Styles &amp; Iconstcooper66
 
Fading and Large Scale Fading
 Fading and Large Scale Fading Fading and Large Scale Fading
Fading and Large Scale Fadingvickydone
 
02 probabilistic inference in graphical models
02 probabilistic inference in graphical models02 probabilistic inference in graphical models
02 probabilistic inference in graphical modelszukun
 
Big Data Analytics in RF - LTE - 4G Environments
Big Data Analytics in RF - LTE - 4G EnvironmentsBig Data Analytics in RF - LTE - 4G Environments
Big Data Analytics in RF - LTE - 4G Environments
Dr. Edwin Hernandez
 
Internet-enabled GIS for Planners
Internet-enabled GIS for PlannersInternet-enabled GIS for Planners
Internet-enabled GIS for Planners
John Reiser
 
Alex optimization guidelines - retainability huawei - rev.01
Alex    optimization guidelines - retainability huawei - rev.01Alex    optimization guidelines - retainability huawei - rev.01
Alex optimization guidelines - retainability huawei - rev.01
Victor Perez
 
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial DataBecoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
Patrick Stotz
 
Kml Basics Chpt 3 Geometry
Kml Basics Chpt  3   GeometryKml Basics Chpt  3   Geometry
Kml Basics Chpt 3 Geometrytcooper66
 
Kml Basics Chpt 1 Overview
Kml Basics Chpt  1   OverviewKml Basics Chpt  1   Overview
Kml Basics Chpt 1 Overviewtcooper66
 
Using geobrowsers for thematic mapping
Using geobrowsers for thematic mappingUsing geobrowsers for thematic mapping
Using geobrowsers for thematic mapping
Bjorn Sandvik
 
radio propagation
radio propagationradio propagation
radio propagation
ATTO RATHORE
 
Kml Basics Chpt 5 Overlays
Kml Basics Chpt  5   OverlaysKml Basics Chpt  5   Overlays
Kml Basics Chpt 5 Overlaystcooper66
 
UMTS/WCDMA Call Flows for Handovers
UMTS/WCDMA Call Flows for HandoversUMTS/WCDMA Call Flows for Handovers
UMTS/WCDMA Call Flows for Handovers
Justin MA (馬嘉昌)
 
Create Your KML File by KML Editor
Create Your KML File by KML EditorCreate Your KML File by KML Editor
Create Your KML File by KML Editor
wang yaohui
 
Kml Basics Chpt 2 Placemarks
Kml Basics Chpt  2   PlacemarksKml Basics Chpt  2   Placemarks
Kml Basics Chpt 2 Placemarkstcooper66
 
Managing Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FMEManaging Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FME
Safe Software
 
Optimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth MashupOptimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth Mashup
Safe Software
 
Java Koch Curves
Java Koch CurvesJava Koch Curves
Java Koch Curves
tcooper66
 

Viewers also liked (20)

Kml Basics Chpt 4 Styles &amp; Icons
Kml Basics Chpt  4   Styles &amp; IconsKml Basics Chpt  4   Styles &amp; Icons
Kml Basics Chpt 4 Styles &amp; Icons
 
Fading and Large Scale Fading
 Fading and Large Scale Fading Fading and Large Scale Fading
Fading and Large Scale Fading
 
02 probabilistic inference in graphical models
02 probabilistic inference in graphical models02 probabilistic inference in graphical models
02 probabilistic inference in graphical models
 
Big Data Analytics in RF - LTE - 4G Environments
Big Data Analytics in RF - LTE - 4G EnvironmentsBig Data Analytics in RF - LTE - 4G Environments
Big Data Analytics in RF - LTE - 4G Environments
 
Internet-enabled GIS for Planners
Internet-enabled GIS for PlannersInternet-enabled GIS for Planners
Internet-enabled GIS for Planners
 
Alex optimization guidelines - retainability huawei - rev.01
Alex    optimization guidelines - retainability huawei - rev.01Alex    optimization guidelines - retainability huawei - rev.01
Alex optimization guidelines - retainability huawei - rev.01
 
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial DataBecoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
 
Kml Basics Chpt 3 Geometry
Kml Basics Chpt  3   GeometryKml Basics Chpt  3   Geometry
Kml Basics Chpt 3 Geometry
 
Kml Basics Chpt 1 Overview
Kml Basics Chpt  1   OverviewKml Basics Chpt  1   Overview
Kml Basics Chpt 1 Overview
 
Using geobrowsers for thematic mapping
Using geobrowsers for thematic mappingUsing geobrowsers for thematic mapping
Using geobrowsers for thematic mapping
 
radio propagation
radio propagationradio propagation
radio propagation
 
rf planning
rf planningrf planning
rf planning
 
Kml Basics Chpt 5 Overlays
Kml Basics Chpt  5   OverlaysKml Basics Chpt  5   Overlays
Kml Basics Chpt 5 Overlays
 
UMTS/WCDMA Call Flows for Handovers
UMTS/WCDMA Call Flows for HandoversUMTS/WCDMA Call Flows for Handovers
UMTS/WCDMA Call Flows for Handovers
 
Create Your KML File by KML Editor
Create Your KML File by KML EditorCreate Your KML File by KML Editor
Create Your KML File by KML Editor
 
Kml Basics Chpt 2 Placemarks
Kml Basics Chpt  2   PlacemarksKml Basics Chpt  2   Placemarks
Kml Basics Chpt 2 Placemarks
 
Managing Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FMEManaging Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FME
 
Optimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth MashupOptimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth Mashup
 
Rf planning umts with atoll1
Rf planning umts with atoll1Rf planning umts with atoll1
Rf planning umts with atoll1
 
Java Koch Curves
Java Koch CurvesJava Koch Curves
Java Koch Curves
 

Similar to Kml and Its Applications

Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)Jiří Šmída
 
Draw lines from shapes
Draw lines from shapesDraw lines from shapes
Draw lines from shapes
Ashok Peddi
 
Km lconversionprograms
Km lconversionprogramsKm lconversionprograms
Km lconversionprograms
Willy Ortega
 
Seeing your place in a new way - NodeconfEU 2018
Seeing your place in a new way -  NodeconfEU 2018Seeing your place in a new way -  NodeconfEU 2018
Seeing your place in a new way - NodeconfEU 2018
Melissa Auclaire
 
Internet-enabled GIS - Spring 2011
Internet-enabled GIS - Spring 2011Internet-enabled GIS - Spring 2011
Internet-enabled GIS - Spring 2011
John Reiser
 
Using KML for Thematic Mapping
Using KML for Thematic MappingUsing KML for Thematic Mapping
Using KML for Thematic Mapping
Bjorn Sandvik
 
Mappetizer Web mapping software
Mappetizer Web mapping softwareMappetizer Web mapping software
Mappetizer Web mapping software
RuthLang
 
3D Geo-standaarden workshop
3D Geo-standaarden workshop3D Geo-standaarden workshop
3D Geo-standaarden workshopLéon Berlo
 
Using google-earth-to-make-a-map
Using google-earth-to-make-a-mapUsing google-earth-to-make-a-map
Using google-earth-to-make-a-map
Ali Samari
 
How to create an interactive map with Leaflet.pdf
How to create an interactive map with Leaflet.pdfHow to create an interactive map with Leaflet.pdf
How to create an interactive map with Leaflet.pdf
Rakesh Purbey
 
Web Mashup Slides For Lesson 1
Web Mashup Slides For Lesson 1Web Mashup Slides For Lesson 1
Web Mashup Slides For Lesson 1
Alvin Chua
 
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
RamanathanSabesan
 
Creating a feature class
Creating a feature classCreating a feature class
Creating a feature class
KU Leuven
 
Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011
Jake Levitas
 
Petec Google Earth
Petec Google EarthPetec Google Earth
Petec Google Earthdamopsu
 
CHUG_presentation_Hope
CHUG_presentation_HopeCHUG_presentation_Hope
CHUG_presentation_HopeLara Juliusson
 
Ppt of web designing
Ppt of web designingPpt of web designing
Ppt of web designing
prab5
 
The 21st Century Harvard Map
The 21st Century Harvard MapThe 21st Century Harvard Map
The 21st Century Harvard Map
Harvard Web Working Group
 
Map visualisation
Map visualisationMap visualisation
Map visualisation
SDIEDU
 
Dvm
DvmDvm

Similar to Kml and Its Applications (20)

Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)
 
Draw lines from shapes
Draw lines from shapesDraw lines from shapes
Draw lines from shapes
 
Km lconversionprograms
Km lconversionprogramsKm lconversionprograms
Km lconversionprograms
 
Seeing your place in a new way - NodeconfEU 2018
Seeing your place in a new way -  NodeconfEU 2018Seeing your place in a new way -  NodeconfEU 2018
Seeing your place in a new way - NodeconfEU 2018
 
Internet-enabled GIS - Spring 2011
Internet-enabled GIS - Spring 2011Internet-enabled GIS - Spring 2011
Internet-enabled GIS - Spring 2011
 
Using KML for Thematic Mapping
Using KML for Thematic MappingUsing KML for Thematic Mapping
Using KML for Thematic Mapping
 
Mappetizer Web mapping software
Mappetizer Web mapping softwareMappetizer Web mapping software
Mappetizer Web mapping software
 
3D Geo-standaarden workshop
3D Geo-standaarden workshop3D Geo-standaarden workshop
3D Geo-standaarden workshop
 
Using google-earth-to-make-a-map
Using google-earth-to-make-a-mapUsing google-earth-to-make-a-map
Using google-earth-to-make-a-map
 
How to create an interactive map with Leaflet.pdf
How to create an interactive map with Leaflet.pdfHow to create an interactive map with Leaflet.pdf
How to create an interactive map with Leaflet.pdf
 
Web Mashup Slides For Lesson 1
Web Mashup Slides For Lesson 1Web Mashup Slides For Lesson 1
Web Mashup Slides For Lesson 1
 
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
 
Creating a feature class
Creating a feature classCreating a feature class
Creating a feature class
 
Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011
 
Petec Google Earth
Petec Google EarthPetec Google Earth
Petec Google Earth
 
CHUG_presentation_Hope
CHUG_presentation_HopeCHUG_presentation_Hope
CHUG_presentation_Hope
 
Ppt of web designing
Ppt of web designingPpt of web designing
Ppt of web designing
 
The 21st Century Harvard Map
The 21st Century Harvard MapThe 21st Century Harvard Map
The 21st Century Harvard Map
 
Map visualisation
Map visualisationMap visualisation
Map visualisation
 
Dvm
DvmDvm
Dvm
 

Recently uploaded

AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 

Recently uploaded (20)

AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 

Kml and Its Applications

  • 1. KML ASHOK BASNET (066BCT505) BIKRAM THAPA (066BCT508) SUPRITAM RAJ SHRESTHA (066BCT542)
  • 2. What is KML?  KML is type of markup language based off of XML.  Stands for Keyhole Markup Language  Developed by Keyhole Inc. Google  KML files are very often distributed in KMZ files, which are zipped KML files with a .kmz extension
  • 3. Origin of KML  KML was first known as Keyhole.  KML originally developed for use with Google Earth.  Its development was engineered by Keyhole, Inc which Google acquired in 2004.
  • 4. Definition  Keyhole Markup Language (KML) is an XML notation for expressing geographic annotation and visualization within Internet-based, two-dimensional maps and three- dimensional Earth browsers
  • 5. In Other Words  KML is a way of displaying geographical data in an Earth Browser such as,
  • 6. KML Functions KML includes features that allow it to display:  place marks  Images  Polygons  3D models  Textual descriptions
  • 7. Example <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.0"> <Placemark> <description>New York City</description> <name>New York City</name> <Point> <coordinates>-74.006393,40.714172,0</coordinates> </Point> </Placemark> </kml>
  • 8. This is the previous script:
  • 9. KML Applications: KML file types are used by programs such as:  ArcGIS Explorer  Flickr  Google Earth  Google Maps  Google Mobile  Live Search Maps  Microsoft Virtual Earth  Marble (KDE)  World Wind  Yahoo Pipes
  • 11. KML Elements  Everything is an “Object”. (Everything inherits from the abstract “Object” KML element).  There are abstract elements  Everything is a tag: <Point>…</Point>  The more advanced tags are (usually) for Google Earth.
  • 12. Google Maps supports a subset of KML… Google Maps supports…  Placemarks  Icons  Folders  Descriptive HTML  KMZ (compressed KML, including attached images)  Polylines and polygons  Styles for polylines and polygons, including color, fill, and opacity  Network links to import data dynamically  Ground overlays and screen overlays
  • 13. Structure  KML is in XML format  Usually everything contained in Document tag  Can have multiple Folder tags to separate different kinds of data. For example, one folder containing KML to show locations of pictures and another folder containing KML to show your path through the day.
  • 14. Placemarks/Points/Coordinates  The easiest element in KML.  A simple point on the map. It only needs a name and a location. You can give it a description too.  Placemark tag defines the place mark  A Point tag within it defines where the Placemark will be.  A “type” called coordinate defines the Point.  Coordinates in KML are given long,lat. When typing in coordinates directly into Google Maps, they are given lat,long. Be careful!
  • 16. Descriptive HTML  You’ll probably want to do HTML within the description tag.  You need to use the CDATA tag for this. If you don’t, your HTML’s tags need to use entity references:
  • 17. Paths  Can define a path using the Placemark tag and the LineString tag instead of the Point tag.  Multiple coordinates. Again by long,lat,alt.  “extrude” tag makes the line go down to the ground  “tessellate” breaks each line into multiple pieces. Good for long lines so they don’t end up underground.  0 = false, 1 = true
  • 20. Advanced KML  MIME Types  Styles  Screen Overlays  Network Links
  • 21. MIME Type  KML Servers must follow certain rules  Must return response code of HTTP 200  The type itself is: application/vnd.google-earth.kml+xml  Can set the type in PHP with: header('Content-type: application/vnd.google-earth.kml+xml');  Body must contain valid KML data and the XML declaration: <?xml version="1.0" encoding="UTF-8"?>
  • 22. Styles  Similar to CSS/HTML styles.  In a Style tag. Each style tag can have multiple styles within it: LineStyle, PolyStyle, ColorStyle, etc.  The tag has an “id” so it can be referenced within a file or from another. (A Global KML Style file perhaps?)  Add a styleUrl element to use a style.  HW2 could have different icons based on content? A site that grabs all the Google Map icons: http://www.visual-case.it/cgi-bin/vc/GMapsIcons.pl
  • 24. Screen Overlays  Add an image to the Google Maps/Earth window.  Could be used for whatever purpose you like.  ScreenOverlay tag.  overlayXY and screenXY line up the image to the actual map  In this example, (0,1) (in fractions) means 0% of x (all the way to the left) and 100% of y (all the way to the top). The upper-left of the image is lined up with the upper-left of the map. The unit can also be determined by pixels.  Size tag (obviously) controls size of the image. 0 means to maintain aspect ratio, -1 indicate to use native dimension. Using some other value makes the image that value. For example 0.2 with units on fraction makes the image take up 20% of that dimension.
  • 26. Network Links  Allows importing of KML, KMZ, and image files for ground/screen overlays.  Local or remote file  Uses a Link tag  Good way to split up large KML file into much smaller KML files. More manageable.  More interesting feature: can use scripts to generate KML data on the fly. (PHP, Perl, etc.)  Usually uni-direction data flow (server to map) but when using “viewRefreshMode”, the map can pass the script information on what is being viewed (the LatLon box). Google Maps/Earth will call the script with a BBOX parameter. Look at the KML Tutorial for more information.