SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Fish migration and fish passes
Fish migration and fish passesFish migration and fish passes
Fish migration and fish passes40024
 
2. Non Penaed Shrimp Fishery of India
2. Non Penaed Shrimp Fishery of India2. Non Penaed Shrimp Fishery of India
2. Non Penaed Shrimp Fishery of IndiaSaiprasad Bhusare
 
Economics of GIFT Tilapia Farming
Economics of GIFT Tilapia FarmingEconomics of GIFT Tilapia Farming
Economics of GIFT Tilapia FarmingSaiprasad Bhusare
 
Ganga dolphin ,sameer
Ganga dolphin ,sameerGanga dolphin ,sameer
Ganga dolphin ,sameersameervaish3
 
Geomorphic feature Identification at Saint Martin Island’s, Bangladesh
Geomorphic feature Identification at Saint Martin Island’s, BangladeshGeomorphic feature Identification at Saint Martin Island’s, Bangladesh
Geomorphic feature Identification at Saint Martin Island’s, BangladeshMinhaz Hasan
 
Tugas terjemahan survey hidrografi
Tugas terjemahan survey hidrografiTugas terjemahan survey hidrografi
Tugas terjemahan survey hidrografiAgita Herwanda
 
Presentation on remote sensing &amp; gis and watershed copy
Presentation on remote sensing &amp; gis and watershed   copyPresentation on remote sensing &amp; gis and watershed   copy
Presentation on remote sensing &amp; gis and watershed copydivya sahgal
 
Present Status of Floodplain in Bangladesh
Present Status of Floodplain in Bangladesh Present Status of Floodplain in Bangladesh
Present Status of Floodplain in Bangladesh Mohammad Rashidul Islam
 
Indikasi Program Kota dan Wilayah
Indikasi Program Kota dan WilayahIndikasi Program Kota dan Wilayah
Indikasi Program Kota dan Wilayahstudiopracimantoro
 
Fisheries and Aquaculture Profile of Bangladesh
Fisheries and Aquaculture Profile of BangladeshFisheries and Aquaculture Profile of Bangladesh
Fisheries and Aquaculture Profile of BangladeshAmir Hossain
 
Assignment on fisheries management of baor
Assignment on fisheries management of baorAssignment on fisheries management of baor
Assignment on fisheries management of baorRajan Saha
 
Topographic Map Presentation
Topographic Map PresentationTopographic Map Presentation
Topographic Map Presentationdwinter1
 
Makalah Geodesi Geometri II terkait Jaring Kontrol dan datum Geodesi
Makalah Geodesi Geometri II terkait Jaring Kontrol dan datum GeodesiMakalah Geodesi Geometri II terkait Jaring Kontrol dan datum Geodesi
Makalah Geodesi Geometri II terkait Jaring Kontrol dan datum GeodesiMega Yasma Adha
 

Was ist angesagt? (20)

Fish migration and fish passes
Fish migration and fish passesFish migration and fish passes
Fish migration and fish passes
 
2. Non Penaed Shrimp Fishery of India
2. Non Penaed Shrimp Fishery of India2. Non Penaed Shrimp Fishery of India
2. Non Penaed Shrimp Fishery of India
 
Economics of GIFT Tilapia Farming
Economics of GIFT Tilapia FarmingEconomics of GIFT Tilapia Farming
Economics of GIFT Tilapia Farming
 
Ganga dolphin ,sameer
Ganga dolphin ,sameerGanga dolphin ,sameer
Ganga dolphin ,sameer
 
Pengenalan ArcMap
Pengenalan ArcMapPengenalan ArcMap
Pengenalan ArcMap
 
Geomorphic feature Identification at Saint Martin Island’s, Bangladesh
Geomorphic feature Identification at Saint Martin Island’s, BangladeshGeomorphic feature Identification at Saint Martin Island’s, Bangladesh
Geomorphic feature Identification at Saint Martin Island’s, Bangladesh
 
Tugas terjemahan survey hidrografi
Tugas terjemahan survey hidrografiTugas terjemahan survey hidrografi
Tugas terjemahan survey hidrografi
 
Presentation on remote sensing &amp; gis and watershed copy
Presentation on remote sensing &amp; gis and watershed   copyPresentation on remote sensing &amp; gis and watershed   copy
Presentation on remote sensing &amp; gis and watershed copy
 
Matriks itbx 2
Matriks itbx 2Matriks itbx 2
Matriks itbx 2
 
Present Status of Floodplain in Bangladesh
Present Status of Floodplain in Bangladesh Present Status of Floodplain in Bangladesh
Present Status of Floodplain in Bangladesh
 
Indikasi Program Kota dan Wilayah
Indikasi Program Kota dan WilayahIndikasi Program Kota dan Wilayah
Indikasi Program Kota dan Wilayah
 
Datum
DatumDatum
Datum
 
Major Exploited Shellfish Fisheries in India
Major Exploited Shellfish Fisheries in IndiaMajor Exploited Shellfish Fisheries in India
Major Exploited Shellfish Fisheries in India
 
Fisheries and Aquaculture Profile of Bangladesh
Fisheries and Aquaculture Profile of BangladeshFisheries and Aquaculture Profile of Bangladesh
Fisheries and Aquaculture Profile of Bangladesh
 
Fish population dynamics and shock assesment(5th sem)
Fish population dynamics and shock assesment(5th sem)Fish population dynamics and shock assesment(5th sem)
Fish population dynamics and shock assesment(5th sem)
 
REMOTE SENSING IN MARINE CAPTURING FISHERIES
REMOTE SENSING IN MARINE CAPTURING FISHERIESREMOTE SENSING IN MARINE CAPTURING FISHERIES
REMOTE SENSING IN MARINE CAPTURING FISHERIES
 
Assignment on fisheries management of baor
Assignment on fisheries management of baorAssignment on fisheries management of baor
Assignment on fisheries management of baor
 
Inland fisheries 2nd sem (full sylabus)
Inland fisheries 2nd sem (full sylabus)Inland fisheries 2nd sem (full sylabus)
Inland fisheries 2nd sem (full sylabus)
 
Topographic Map Presentation
Topographic Map PresentationTopographic Map Presentation
Topographic Map Presentation
 
Makalah Geodesi Geometri II terkait Jaring Kontrol dan datum Geodesi
Makalah Geodesi Geometri II terkait Jaring Kontrol dan datum GeodesiMakalah Geodesi Geometri II terkait Jaring Kontrol dan datum Geodesi
Makalah Geodesi Geometri II terkait Jaring Kontrol dan datum Geodesi
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Kürzlich hochgeladen (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

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.