Kml Generation Web Services

Post on 01-Dec-2014

6,201 views 0 download

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

By:

Steve McKinney, PhD

SICS Consultants, LLC

Launch in 2009-Q1 Address.NET GeoMath.NET Demographics.NET GeoClipboard.NET

SOAP SDK REST SDK Plain Text

(HTTPService XML) SDK

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.

EXAMPLE IMPLEMENTATION #1

The Alabama Criminal Justice Information Center’s

AlaCop Mapping Application

EXAMPLE IMPLEMENTATION #2

The Alabama Resource Management System

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

Process

Step #1: Prepare Geometry

Step #2: Prepare Attribution

Step #3: Write Code

Step #4: Server Configuration

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

Steve McKinney, PhD

SICS Consultants, LLC

www.sicsconsultants.com

Blog: gisinnovations.blogspot.com