kml generation web services
DESCRIPTION
This presentation describes a Web service that dynamically generates a KML from user-selected layers. The service, originally designed on the Alabama Resource Management System for Virtual Alabama, uses computational geometry to generate thematic layers on the fly. Users choose map layers of interest and a KML is then made available to them for download. This discussion will show how quickly a novice user can utilize a Web service to locate and visualize thematic data layers of interest without having to use anything more than their browser and KML displaying application.TRANSCRIPT
![Page 1: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/1.jpg)
By:
Steve McKinney, PhD
SICS Consultants, LLC
![Page 2: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/2.jpg)
Launch in 2009-Q1 Address.NET GeoMath.NET Demographics.NET GeoClipboard.NET
SOAP SDK REST SDK Plain Text
(HTTPService XML) SDK
![Page 3: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/3.jpg)
What are KML and KMZ? KML is a file format used to display
geographic data in an earth browser, such as Google Earth, ArcGIS Explorer, and Virtual Earth.
A KML file is processed in much the same way that HTML (and XML) files are processed by web browsers.
Like HTML, KML has a tag-based structure with names and attributes used for specific display purposes.
KMZ is a compressed version of KML.
![Page 4: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/4.jpg)
EXAMPLE IMPLEMENTATION #1
The Alabama Criminal Justice Information Center’s
AlaCop Mapping Application
![Page 5: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/5.jpg)
![Page 6: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/6.jpg)
![Page 7: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/7.jpg)
![Page 8: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/8.jpg)
![Page 9: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/9.jpg)
![Page 10: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/10.jpg)
![Page 11: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/11.jpg)
![Page 12: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/12.jpg)
![Page 13: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/13.jpg)
![Page 14: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/14.jpg)
EXAMPLE IMPLEMENTATION #2
The Alabama Resource Management System
![Page 15: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/15.jpg)
![Page 16: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/16.jpg)
![Page 17: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/17.jpg)
![Page 18: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/18.jpg)
![Page 19: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/19.jpg)
![Page 20: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/20.jpg)
![Page 21: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/21.jpg)
Implementation Components Geometry source
ArcGIS Server, SharpMap, or existing KML
Attribution sourceSQL Server, MySQL, Oracle, etc.
Code for parsing and writingASP.NET, PHP, or JSP
Web server with MIME specificationIIS or Apache
![Page 22: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/22.jpg)
Process
![Page 23: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/23.jpg)
Step #1: Prepare Geometry
![Page 24: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/24.jpg)
Step #2: Prepare Attribution
![Page 25: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/25.jpg)
Step #3: Write Code
![Page 26: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/26.jpg)
![Page 27: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/27.jpg)
![Page 28: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/28.jpg)
Step #4: Server Configuration
![Page 29: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/29.jpg)
References What Is KML? -
http://code.google.com/apis/kml/documentation/whatiskml.html
How do I create KML files? - http://code.google.com/support/bin/answer.py?answer=55210&topic=10032
Generic Handlers (ASHX Files) - http://www.brainbell.com/tutorials/ASP/Generic_Handlers_(ASHX_Files).html
Data Source Controls - http://www.asp.net/learn/moving-to-asp.net-2.0/module-05.aspx
Configure MIME Types (IIS 6.0) - http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cd72c0dc-c5b8-42e4-96c2-b3c656f99ead.mspx?mfr=true
![Page 30: Kml Generation Web Services](https://reader034.vdocument.in/reader034/viewer/2022042623/547d371bb47959ca508b489f/html5/thumbnails/30.jpg)
Steve McKinney, PhD
SICS Consultants, LLC
www.sicsconsultants.com
Blog: gisinnovations.blogspot.com