Integration of APPX Applications with Google Earth © John Selvage, Selvage Custom Software APPX Conference - October 2011
Integration of APPX Applications with Google Earth © Introduction to Google Earth Features KML Primer Acquisition of Earth Coordinates Generation of KML by APPX Applications Handoff of KML with File Association (.kml) and LOAD_URL_ON_CLIENT Applications APPX Conference - October 2011
Introduction to Google Earth Google Product 3D Extension of Google Maps Unlike Google Maps, requires client-side software other than a browser Fully interactive Complete data of Earth satellite imagery Includes other “Layers”, including Borders, Photos, 3D Buildings, Weather, and more APPX Conference - October 2011
Google Earth Features Allows user to define: – Locations (Placemarks) – Lines (LineStrings) – Metadata, supported by standard HTML 123 Adams Street Orlando, FL Balance Due: $350,000.00]]> – Standard Point-to-point representations are flat- earth, straight lines; I will demonstrate an enhancement that uses arches to better illustrate lines connecting points on Earth APPX Conference - October 2011
KML Primer XML derivative Short for Keyhole Markup Language Some basic elements include – Placemarks (“pushpins”) … – Lines / Geometric Patterns , 38.59, , 38.58, , 38.57, , 38.56, , 38.55, , 38.54, , 38.52, , , 38.45, , 38.44, , 38.43, , 38.42, , , 38.24, , 38.23, , 38.22,.01 – Attributes: color, width, time (!), icons, elevation, distance, camera angles, etc. Excellent on-line reference material at and many other locations KML is not limited to Google Earth: can be used with Google Maps, and other tools Demo of capabilities: APPX Conference - October 2011
Acquisition of Earth Coordinates Bundle address, city, state, ZIP, and country Feed this address information to a website, retrieve the corresponding latitude & longitude Data is stored with the CUSTOMER record (or whatever table you wish to associate it with) Coordinates can be updated whenever a change in any address component occurs APPX Conference - October 2011
Acquisition of Earth Coordinates Batch / -s maps.google.com/?q=%1 | tr "{" "\n" | grep "^lat" | grep ",span" | cut -f 1,1 -d "}" | uniq | tr ":" "\n" | tr "," "\n" | grep -vE "lat|lng“ APPX Conference - October 2011
Generation of KML by APPX Applications Use the previously acquired Latitude & Longitude Generate KML Header information Put the Name, Address, Balance, and other “Metadata” into the “Balloon” of a Placemark Add additional features, such as color, lines (linestrings), use of widths to encode data, etc. Apply any camera viewing adjustments, as desired Generate KML Trailer information APPX Conference - October 2011
Handoff of KML with File Association (.kml) and LOAD_URL_ON_CLIENT One-time setup: associate.kml extension with the Google Earth program Execute build of text file.kml Handoff from APPX to Google Earth with standard PASS SGE KML FILENAME FIELD SHARE? N SUBR --- LOAD URL ON CLIENT DETACHED END? N FAIL 0 File will immediately invoke, and be available in “Temporary Places”, where it can be moved to “My Places” for permanent storage Result of Mapping, with Arches Result of KML with Time Stamps APPX Conference - October 2011
Applications Management Reporting (dynamic generation of graphical output, nice complement to APPX Charts) Visual analysis of sales patterns Visual analysis of shipping patterns Concentration of Accounts Receivable by region Air traffic patterns for maintenance Facility / Branch / Franchise Management APPX Conference - October 2011