SlideShare una empresa de Scribd logo
1 de 29
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

Más contenido relacionado

La actualidad más candente

GIS application in Natural Resource Management
GIS application in Natural Resource ManagementGIS application in Natural Resource Management
GIS application in Natural Resource ManagementAchal Gupta
 
Change detection analysis in land use / land cover of Pune city using remotel...
Change detection analysis in land use / land cover of Pune city using remotel...Change detection analysis in land use / land cover of Pune city using remotel...
Change detection analysis in land use / land cover of Pune city using remotel...Nitin Mundhe
 
The importance of map
The importance of mapThe importance of map
The importance of maparceyes
 
Integrated coastal zone management
Integrated coastal zone managementIntegrated coastal zone management
Integrated coastal zone managementLoretta Roberson
 
Application of gis in urban traffic air quality
Application of gis in urban traffic air qualityApplication of gis in urban traffic air quality
Application of gis in urban traffic air qualitySAMITINJAY SHARMA
 
c,c++,java and python in gis development
c,c++,java and python in gis developmentc,c++,java and python in gis development
c,c++,java and python in gis developmentSakthivel R
 
Google earth power point
Google earth power pointGoogle earth power point
Google earth power pointLisa Campbell
 
Estuaries in Bangladesh
Estuaries in BangladeshEstuaries in Bangladesh
Estuaries in BangladeshMd. Abu Zafar
 
Remote Sensing And GIS Application In Wetland Mapping
Remote Sensing And GIS Application In Wetland MappingRemote Sensing And GIS Application In Wetland Mapping
Remote Sensing And GIS Application In Wetland MappingSwetha A
 
GEE Intro 2018.pptx
GEE Intro 2018.pptxGEE Intro 2018.pptx
GEE Intro 2018.pptxGorgorGIS
 
Plugins in QGIS and its uses
Plugins in QGIS and its usesPlugins in QGIS and its uses
Plugins in QGIS and its usesMayuresh Padalkar
 
Assignment on fisheries management of baor
Assignment on fisheries management of baorAssignment on fisheries management of baor
Assignment on fisheries management of baorRajan Saha
 
Status and Perspectives of GIS Application in BANGLADESH
Status and Perspectives of GIS Application in BANGLADESHStatus and Perspectives of GIS Application in BANGLADESH
Status and Perspectives of GIS Application in BANGLADESHBayes Ahmed
 

La actualidad más candente (20)

GIS application in Natural Resource Management
GIS application in Natural Resource ManagementGIS application in Natural Resource Management
GIS application in Natural Resource Management
 
Change detection analysis in land use / land cover of Pune city using remotel...
Change detection analysis in land use / land cover of Pune city using remotel...Change detection analysis in land use / land cover of Pune city using remotel...
Change detection analysis in land use / land cover of Pune city using remotel...
 
The importance of map
The importance of mapThe importance of map
The importance of map
 
GIS data analysis
GIS data analysisGIS data analysis
GIS data analysis
 
Integrated coastal zone management
Integrated coastal zone managementIntegrated coastal zone management
Integrated coastal zone management
 
Application of gis in urban traffic air quality
Application of gis in urban traffic air qualityApplication of gis in urban traffic air quality
Application of gis in urban traffic air quality
 
c,c++,java and python in gis development
c,c++,java and python in gis developmentc,c++,java and python in gis development
c,c++,java and python in gis development
 
Behavioral perspective in geography
Behavioral perspective in geographyBehavioral perspective in geography
Behavioral perspective in geography
 
Influence of geographical environment (rivers) on rural livelihood by syekat
Influence of geographical environment (rivers) on rural livelihood by syekatInfluence of geographical environment (rivers) on rural livelihood by syekat
Influence of geographical environment (rivers) on rural livelihood by syekat
 
Google earth power point
Google earth power pointGoogle earth power point
Google earth power point
 
INDIAN FISHERIES OVERVIEW
INDIAN FISHERIES OVERVIEWINDIAN FISHERIES OVERVIEW
INDIAN FISHERIES OVERVIEW
 
Geodatabases
GeodatabasesGeodatabases
Geodatabases
 
Estuaries in Bangladesh
Estuaries in BangladeshEstuaries in Bangladesh
Estuaries in Bangladesh
 
Air Quality Mapping Using GIS
Air Quality Mapping Using GISAir Quality Mapping Using GIS
Air Quality Mapping Using GIS
 
Aquatic biodiversity – threats, conservations, conventions
Aquatic biodiversity – threats, conservations, conventionsAquatic biodiversity – threats, conservations, conventions
Aquatic biodiversity – threats, conservations, conventions
 
Remote Sensing And GIS Application In Wetland Mapping
Remote Sensing And GIS Application In Wetland MappingRemote Sensing And GIS Application In Wetland Mapping
Remote Sensing And GIS Application In Wetland Mapping
 
GEE Intro 2018.pptx
GEE Intro 2018.pptxGEE Intro 2018.pptx
GEE Intro 2018.pptx
 
Plugins in QGIS and its uses
Plugins in QGIS and its usesPlugins in QGIS and its uses
Plugins in QGIS and its uses
 
Assignment on fisheries management of baor
Assignment on fisheries management of baorAssignment on fisheries management of baor
Assignment on fisheries management of baor
 
Status and Perspectives of GIS Application in BANGLADESH
Status and Perspectives of GIS Application in BANGLADESHStatus and Perspectives of GIS Application in BANGLADESH
Status and Perspectives of GIS Application in BANGLADESH
 

Destacado

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 EnvironmentsDr. Edwin Hernandez
 
Internet-enabled GIS for Planners
Internet-enabled GIS for PlannersInternet-enabled GIS for Planners
Internet-enabled GIS for PlannersJohn 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.01Victor 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 DataPatrick 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 mappingBjorn Sandvik
 
Kml Basics Chpt 5 Overlays
Kml Basics Chpt  5   OverlaysKml Basics Chpt  5   Overlays
Kml Basics Chpt 5 Overlaystcooper66
 
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 Editorwang 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 FMESafe 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 MashupSafe Software
 
Java Koch Curves
Java Koch CurvesJava Koch Curves
Java Koch Curvestcooper66
 

Destacado (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 a 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 shapesAshok Peddi
 
Km lconversionprograms
Km lconversionprogramsKm lconversionprograms
Km lconversionprogramsWilly 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 2018Melissa Auclaire
 
Internet-enabled GIS - Spring 2011
Internet-enabled GIS - Spring 2011Internet-enabled GIS - Spring 2011
Internet-enabled GIS - Spring 2011John Reiser
 
Using KML for Thematic Mapping
Using KML for Thematic MappingUsing KML for Thematic Mapping
Using KML for Thematic MappingBjorn Sandvik
 
Mappetizer Web mapping software
Mappetizer Web mapping softwareMappetizer Web mapping software
Mappetizer Web mapping softwareRuthLang
 
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-mapAli 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.pdfRakesh Purbey
 
Web Mashup Slides For Lesson 1
Web Mashup Slides For Lesson 1Web Mashup Slides For Lesson 1
Web Mashup Slides For Lesson 1Alvin 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.pptxRamanathanSabesan
 
Creating a feature class
Creating a feature classCreating a feature class
Creating a feature classKU Leuven
 
Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Jake 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 designingprab5
 
Map visualisation
Map visualisationMap visualisation
Map visualisationSDIEDU
 

Similar a 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
 

Último

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 

Último (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

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.