SlideShare a Scribd company logo
1 of 48
Bradley D. Brown, brad@intelivideo.com
InteliVideo, CTO
Agenda
Who am I?
Geospatial 101
How have I Used GeoSpatial Data?
Options Available – Mapping Solutions
Things I’ve Developed with Maps
How to Get Started
Technical Details
Spatial Queries
Who am I?
Bradley D. Brown                               Today
Founder                                        • Technical CTO (write code)
• TUSC in 1988                                 • Reglara and Enscicon Boards
  • Questor 1992                               • Rolta, Board Advisor
  • GUI Shootout 1994                          • Equifax employee
  • Sold to Rolta in 2008                      • InteliVideo in April 2012
• IntelliReal in 2005
                                                 • Video Monetization Platform
  • Sold to Equifax in 2011
                                                 • Built it to sell training online
• 10+ other companies, boards
                                                 • Focused on mid and long tail
Professor – DU                                     and corporate deals and DVD
Author – 6 technical books                         duplication guys
Mentor in Founders Institute

                 brad@intelivideo.com or http://bradleydbrown.blogspot.com
Geospatial 101
• Mapping Solutions
• Your data vs. mapping data
• Lat / Long vs. Polygon
• Uses and Advantages
• Address Normalization
Geospatial 101
Mapping Solutions – SaaS Solutions
Google Maps
• http://maps.google.com/
• MapsGL
Bing Maps
• http://www.bing.com/maps/
Google Earth
• KML File
Geospatial 101
Mapping Solutions – Spatial, Premise and SaaS

Oracle Spatial vs. Locator
Navtec, ESRI, etc. data in your own DB
Oracle ApEx Has Built-in Mapping
Other Hosted Solutions
• Open Street       Integraph
• Virtual Earth     Natural Earth
• ESRI              Maps for Free
Geospatial 101
Your data vs. mapping data

Your Data
• Customers
• Properties / Homes
• Inventory
Mapping Data
• Maps – Google, etc.
• Shape Files
• In / Nearest
Geospatial 101
Lat / Long vs. Polygon
Lat / Long
• Point on the map
Polygon/Shape
• Group of points
• Shape File
  • Shapes
  • Metadata
Can measure “in” for
polygons or “nearest” for
points
Geospatial 101
Uses and Advantages

Why Use?                       Using it to your
• Glitzy / Sexy / Looks good   advantage
• Intelligence about your      • Directions, Other
  customers, your data,          “Similar”
  etc.                           items, Connecting things
                               • Nearby Gas
                                 Stations, Railroad
                                 tracks, Boundaries
Geospatial 101
Address Normalization and Geocoding an Address

Address Normalization
• Zip+4
 • http://www.semaphorecorp.com/cgi/zp4.html
• CorrectAddress
 • http://www1.intelligentsearch.com/address-verification/correct-
   address.htm
• Google API
Geocoding an Address
• Google Geocoding API
 • https://developers.google.com/maps/documentation/geocoding/
• Web Service APIs
Hopefully something will spark ideas for you!
How Have I Used Geospatial Data

IntelliReal
• Considerable geo data, knowledge, etc.
TUSC
• Embedded into several apps at TUSC (ACT)
Independent Nation
• Political mapping solution
InteliVideo
• Where are people connecting from?
Heat Maps
A look at different neighborhood trends in home values
GeoSearch
Visual Slice and Dice – home type, bedrooms, bathrooms, price
Highlight and Visual Search
Find all homes that sold in this area for 20% less than their “value”
Test Scores within a radius
ACT scores
By Zip Code
Google API supports
– Heat Maps
  • Outlines
  • Polygons
– Circles
– Overlays
– Events
With Google Maps or Yahoo or…
Mapping Your Data

Do you have data in your Oracle database that
you would like to visually map?
All you really need is a lat and long (or an
address)
Easy integration Starts At:
• https://developers.google.com/maps/
Simple Pushpins:
Hello World Page
Static HTML page
Copied HTML from
Google page and
pasted here
Dynamic Generation
Data driven mapping
Properties in
Arapahoe County, CO
PL/SQL region with
onload function
True AJAX Mapping
Mapping that pulls
data dynamically
from an XML page
Lat / Long are
passed to XML page
Change the Icons
Any image
Add a Popup Windows on Click
Any information
can popup
Yahoo Pipes
http://pipes.yahoo.com
Yahoo API -YQL
Free Data and APIs from Yahoo
• http://developer.yahoo.com/yql/console/

Local Events
• select * from upcoming.events where woeid in (select woeid from geo.places where
  text="North Beach")

Local Places
• select * from local.search where zip='94085' and query='pizza'
Neighborhood Comp Boundaries

Create boundaries for a property
• Using roads, water features (lakes, rivers), landmarks (parks), military
  bases and rail roads
Created a function to return this info
• Input is lat/long, but we can change to prop id once we have parcels
  loaded up
• Other inputs – big roads (Y/N), distance (miles from property – 1), min
  distance (0), min length (.1 miles), band (1=1st, 2=2nd, etc.)
Get_Kml is in the notes…
• Will produce a KML file for Google Earth viewing
Boundary Example 1

Major streets
Lakes
Parks
Major features


Square vs. Polygon
Boundary Example 2
Powerful Boundaries
Tons of Free Data!
Tiger
• http://www.census.gov/geo/www/tiger/shp.html
• US Government Project – US Census
UK Census Data
• www.census.ac.uk/casweb
Open Street Maps
• http://www.openstreetmap.org/
• Open Source Collection Group
• It’s free! Maps are more detailed than Google too!
Getting OpenStreetMap Data
“Shape Files”
OpenStreetMap by State
• http://osmdata.thinkgeo.com/openstreetmap-data/north-america/us/
Map Features
Tiger
• http://www.census.gov/geo/www/tiger/tgrshp2012/documentation.html
• www.census.ac.uk/casweb - UK census data

OpenStreetMaps
• http://wiki.openstreetmap.org/wiki/Map_Features

Features
• Addresses, Landmarks (Point and Area), Water (Area and Linear),
  MSAs, Railways, Military Installations, Tab Blocks (Block Groups,
  Blocks), Census Tracts, County, State
Shape Files
• Points and Polygons
• Data (e.g. Road Name, Type)
Point to Point Comparison
Nearest                 “In” or “At”
Area Water (lake)       State

Linear Water (river)    County
                        MSA
Area Landmark (park)
                        City
Area Point (hospital)
                        Census Tract
Schools
                        Block Group
Military Installation
                        Block
Railroad                Latitude, Longitude
                        Address Range
Loading Data Visually using Oracle
MapBuilder
Download at
http://www.oracle.com/technetwork/middleware/mapviewer/downloads/index.htm

l   java –jar MapBuilder.jar
Import Shapefile
Loading Shape Files in Batch
Load Shape to Spatial Data Option (SDO)
http://download.oracle.com/otn/other/spatial/shp2sdo.zip
Creates file structure
If you have multiple files – run the creation only once and create the
spatial index, load the data…
• shp2sdo.exe Tiger DataADDRFEAT tl_2011_01001_addrfeat
  tl_2011_addrfeat -g geometry –f -x (-180,180) -y (-90,90) -s 8307 -t 0.000005 –
  v
• sqlplus username/password @ tl_2011_addrfeat.sql
• CREATE INDEX index_name ON table (geometry) INDEXTYPE IS
  MDSYS.SPATIAL_INDEX
• sqlldr username/password tl_2011_addrfeat
Water’s Distance from a Property
SELECT SDO_GEOM.SDO_DISTANCE(Geometry,
        sdo_cs.transform(SDO_GEOMETRY(2001, 4269,
        SDO_POINT_TYPE (-
104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance,
        SDO_GEOM.SDO_AREA(geometry, 0.005, 'unit=acre') area,
        SDO_GEOM.SDO_CENTROID(geometry, 0.005) centroid,
        t.*
FROM TL_2011_08031_AREAWATER t
order by 1;
Nearest x Objects (Address Ranges) to
Property
SELECT SDO_GEOM.SDO_DISTANCE(Geometry,
       sdo_cs.transform(SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL,
NULL),8307),.01,'unit=mile') distance,
       t.*
FROM TL_2011_08031_ADDRFEAT t
WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),
          'sdo_num_res=1 distance=1 unit=mile') = 'TRUE';
Nearest 5 Landmarks within 10 Miles
SELECT *
FROM TL_2011_08031_AREALM
WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269,
      SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),
          'sdo_num_res=5 distance=10 unit=mile') = 'TRUE';
What Block is this Property In?
SELECT *
FROM TL_2011_08_TABBLOCK
WHERE SDO_WITHIN_DISTANCE(Geometry,
      SDO_GEOMETRY(2001, 4269,
      SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),
      'distance=0 unit=mile') = 'TRUE';
Nearest 5 Schools, Churches and
Shopping Centers
SELECT SDO_GEOM.SDO_DISTANCE(Geometry,
       sdo_cs.transform(SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL,
NULL),8307),.01,'unit=mile') distance,
          t.*
FROM TL_2011_08031_POINTLM t
WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),
          'sdo_num_res=5 distance=5 unit=mile') = 'TRUE';
Nearest Hospitals in the County
select SDO_GEOM.SDO_DISTANCE(Geometry,
        sdo_cs.transform(SDO_GEOMETRY(2001, 4269,
        SDO_POINT_TYPE (-
104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance,
        t.*
FROM TL_2011_08031_POINTLM t
where mtfcc = 'K1231';
Nearest River, Creek, etc (Linear Water)
SELECT SDO_GEOM.SDO_DISTANCE(Geometry,
       sdo_cs.transform(SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-
104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance,
       t.*
FROM TL_2011_08031_LINEARWATER t
WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),
       'sdo_num_res=5 distance=5 unit=mile') = 'TRUE'
5 Nearest Railways
SELECT SDO_GEOM.SDO_DISTANCE(Geometry,
       sdo_cs.transform(SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL,
NULL),8307),.01,'unit=mile') distance,
       t.*
FROM TL_2011_US_RAILS t
WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269,
       SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),
       'sdo_num_res=5 distance=5 unit=mile') = 'TRUE';
Extracting KML for Google Earth
create or replace                                          </PolyStyle>
FUNCTION GET_KML (in_geometry sdo_geometry)               </Style>
RETURN CLOB AS                                            <Placemark>
                                                           <name>Entire</name>
v_output      clob := '';                                  <styleUrl>#transGreenPoly</styleUrl>
                                                           <Polygon>
cursor get_ordinates_cur(in_geometry sdo_geometry) is       <extrude>1</extrude>
SELECT t.x lat, t.y lng                                     <altitudeMode>relativeToGround</altitudeMode>
FROM TABLE(SDO_UTIL.GETVERTICES(in_geometry)) t;            <outerBoundaryIs>
                                                             <LinearRing>
BEGIN                                                         <coordinates>';
 v_output := '                                           for get_ordinates_rec in get_ordinates_cur(in_geometry)
<?xml version="1.0" encoding="UTF-8"?>                  loop
<kml xmlns="http://www.opengis.net/kml/2.2">               dbms_lob.append(v_output,get_ordinates_rec.lat || ',' ||
 <Document>                                             get_ordinates_rec.lng || ',17' || chr(13) || chr(10));
  <Style id="transBluePoly">                             end loop;
   <LineStyle>
    <width>1.5</width>                                   v_output := v_output || '</coordinates>
   </LineStyle>                                              </LinearRing>
   <PolyStyle>                                              </outerBoundaryIs>
    <color>7dff0000</color>                                </Polygon>
   </PolyStyle>                                           </Placemark>
  </Style>                                               </Document>
  <Style id="transGreenPoly">                           </kml>';
   <LineStyle>
    <width>1.5</width>                                   RETURN v_output;
   </LineStyle>
   <PolyStyle>                                          END GET_KML;
    <color>7f00ff00</color>
What Did We Cover?
•   Geospatial 101
•   Ideas on How you Might Use GeoSpatial Data
•   Mapping Solutions
•   How to Get Started
•   Technical Details
•   Spatial Queries


•   Now it’s your turn!
Questions?
Copyright Information

Neither InteliVideo nor the author guarantee this
document to be error-free. Please provide
comments/questions to brad@intelivideo.com.
InteliVideo © 2013. This document cannot be
reproduced without expressed written consent
from an officer of InteliVideo.

More Related Content

Similar to CTOs Perspective on Adding Geospatial and Location-based Information

Exploring Data Preparation and Visualization Tools for Urban Forestry
Exploring Data Preparation and Visualization Tools for Urban ForestryExploring Data Preparation and Visualization Tools for Urban Forestry
Exploring Data Preparation and Visualization Tools for Urban ForestryAzavea
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece CoLab Athens
 
LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...
LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...
LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...locloud
 
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsNTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsAzavea
 
Graphs fun vjug2
Graphs fun vjug2Graphs fun vjug2
Graphs fun vjug2Neo4j
 
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the MapTammy Bednar
 
Mobile data collection using odk
Mobile data collection using odkMobile data collection using odk
Mobile data collection using odkKARUMBA GATAMA
 
GNO Code: Geospatial Visualization in the Browser - An Overview
GNO Code: Geospatial Visualization in the Browser - An OverviewGNO Code: Geospatial Visualization in the Browser - An Overview
GNO Code: Geospatial Visualization in the Browser - An OverviewRob Schley
 
Enhance Location-Based Insights with Additional Geocoding Capabilities
Enhance Location-Based Insights with Additional Geocoding CapabilitiesEnhance Location-Based Insights with Additional Geocoding Capabilities
Enhance Location-Based Insights with Additional Geocoding CapabilitiesPrecisely
 
Askayworkshop
AskayworkshopAskayworkshop
Askayworkshopsconnin
 
Graph Database Use Cases - StampedeCon 2015
Graph Database Use Cases - StampedeCon 2015Graph Database Use Cases - StampedeCon 2015
Graph Database Use Cases - StampedeCon 2015StampedeCon
 
Graph database Use Cases
Graph database Use CasesGraph database Use Cases
Graph database Use CasesMax De Marzi
 
Oracle big data spatial and graph
Oracle big data spatial and graphOracle big data spatial and graph
Oracle big data spatial and graphdyahalom
 
How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...
How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...
How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...Amazon Web Services
 
MySQL 5.7 GIS
MySQL 5.7 GISMySQL 5.7 GIS
MySQL 5.7 GISMatt Lord
 
FIWARE: Cross-domain concepts and technologies in domain Reference Architectures
FIWARE: Cross-domain concepts and technologies in domain Reference ArchitecturesFIWARE: Cross-domain concepts and technologies in domain Reference Architectures
FIWARE: Cross-domain concepts and technologies in domain Reference ArchitecturesOPEN DEI
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLSohail Akbar Goheer
 
Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019Peter Horsbøll Møller
 
Open source Geospatial Business Intelligence in action with GeoMondrian and S...
Open source Geospatial Business Intelligence in action with GeoMondrian and S...Open source Geospatial Business Intelligence in action with GeoMondrian and S...
Open source Geospatial Business Intelligence in action with GeoMondrian and S...Thierry Badard
 

Similar to CTOs Perspective on Adding Geospatial and Location-based Information (20)

Exploring Data Preparation and Visualization Tools for Urban Forestry
Exploring Data Preparation and Visualization Tools for Urban ForestryExploring Data Preparation and Visualization Tools for Urban Forestry
Exploring Data Preparation and Visualization Tools for Urban Forestry
 
Data Science At Zillow
Data Science At ZillowData Science At Zillow
Data Science At Zillow
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
 
LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...
LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...
LoCloud Geolocation enrichment tools, Siri Slettvag, Asplan Viak Internet (Av...
 
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsNTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
 
Graphs fun vjug2
Graphs fun vjug2Graphs fun vjug2
Graphs fun vjug2
 
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
 
Mobile data collection using odk
Mobile data collection using odkMobile data collection using odk
Mobile data collection using odk
 
GNO Code: Geospatial Visualization in the Browser - An Overview
GNO Code: Geospatial Visualization in the Browser - An OverviewGNO Code: Geospatial Visualization in the Browser - An Overview
GNO Code: Geospatial Visualization in the Browser - An Overview
 
Enhance Location-Based Insights with Additional Geocoding Capabilities
Enhance Location-Based Insights with Additional Geocoding CapabilitiesEnhance Location-Based Insights with Additional Geocoding Capabilities
Enhance Location-Based Insights with Additional Geocoding Capabilities
 
Askayworkshop
AskayworkshopAskayworkshop
Askayworkshop
 
Graph Database Use Cases - StampedeCon 2015
Graph Database Use Cases - StampedeCon 2015Graph Database Use Cases - StampedeCon 2015
Graph Database Use Cases - StampedeCon 2015
 
Graph database Use Cases
Graph database Use CasesGraph database Use Cases
Graph database Use Cases
 
Oracle big data spatial and graph
Oracle big data spatial and graphOracle big data spatial and graph
Oracle big data spatial and graph
 
How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...
How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...
How Esri Optimizes Massive Image Archives for Analytics in the Cloud - ABD402...
 
MySQL 5.7 GIS
MySQL 5.7 GISMySQL 5.7 GIS
MySQL 5.7 GIS
 
FIWARE: Cross-domain concepts and technologies in domain Reference Architectures
FIWARE: Cross-domain concepts and technologies in domain Reference ArchitecturesFIWARE: Cross-domain concepts and technologies in domain Reference Architectures
FIWARE: Cross-domain concepts and technologies in domain Reference Architectures
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
 
Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019
 
Open source Geospatial Business Intelligence in action with GeoMondrian and S...
Open source Geospatial Business Intelligence in action with GeoMondrian and S...Open source Geospatial Business Intelligence in action with GeoMondrian and S...
Open source Geospatial Business Intelligence in action with GeoMondrian and S...
 

More from Bradley Brown

Video Anytime AnyWhere AnyDevice
Video Anytime AnyWhere AnyDeviceVideo Anytime AnyWhere AnyDevice
Video Anytime AnyWhere AnyDeviceBradley Brown
 
Anytime anywhere any device
Anytime anywhere any deviceAnytime anywhere any device
Anytime anywhere any deviceBradley Brown
 
InteliVideo Analytics Revised
InteliVideo Analytics RevisedInteliVideo Analytics Revised
InteliVideo Analytics RevisedBradley Brown
 
InteliVideo analytics
InteliVideo analyticsInteliVideo analytics
InteliVideo analyticsBradley Brown
 
Do you need a video platform?
Do you need a video platform?Do you need a video platform?
Do you need a video platform?Bradley Brown
 
A CTOs Perspective on Agile
A CTOs Perspective on AgileA CTOs Perspective on Agile
A CTOs Perspective on AgileBradley Brown
 
Building a Flexible UI with Oracle ApEx
Building a Flexible UI with Oracle ApExBuilding a Flexible UI with Oracle ApEx
Building a Flexible UI with Oracle ApExBradley Brown
 
Zero to Sixty with Oracle ApEx
Zero to Sixty with Oracle ApExZero to Sixty with Oracle ApEx
Zero to Sixty with Oracle ApExBradley Brown
 

More from Bradley Brown (8)

Video Anytime AnyWhere AnyDevice
Video Anytime AnyWhere AnyDeviceVideo Anytime AnyWhere AnyDevice
Video Anytime AnyWhere AnyDevice
 
Anytime anywhere any device
Anytime anywhere any deviceAnytime anywhere any device
Anytime anywhere any device
 
InteliVideo Analytics Revised
InteliVideo Analytics RevisedInteliVideo Analytics Revised
InteliVideo Analytics Revised
 
InteliVideo analytics
InteliVideo analyticsInteliVideo analytics
InteliVideo analytics
 
Do you need a video platform?
Do you need a video platform?Do you need a video platform?
Do you need a video platform?
 
A CTOs Perspective on Agile
A CTOs Perspective on AgileA CTOs Perspective on Agile
A CTOs Perspective on Agile
 
Building a Flexible UI with Oracle ApEx
Building a Flexible UI with Oracle ApExBuilding a Flexible UI with Oracle ApEx
Building a Flexible UI with Oracle ApEx
 
Zero to Sixty with Oracle ApEx
Zero to Sixty with Oracle ApExZero to Sixty with Oracle ApEx
Zero to Sixty with Oracle ApEx
 

Recently uploaded

UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesSHIVANANDaRV
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 

Recently uploaded (20)

UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 

CTOs Perspective on Adding Geospatial and Location-based Information

  • 1. Bradley D. Brown, brad@intelivideo.com InteliVideo, CTO
  • 2. Agenda Who am I? Geospatial 101 How have I Used GeoSpatial Data? Options Available – Mapping Solutions Things I’ve Developed with Maps How to Get Started Technical Details Spatial Queries
  • 3. Who am I? Bradley D. Brown Today Founder • Technical CTO (write code) • TUSC in 1988 • Reglara and Enscicon Boards • Questor 1992 • Rolta, Board Advisor • GUI Shootout 1994 • Equifax employee • Sold to Rolta in 2008 • InteliVideo in April 2012 • IntelliReal in 2005 • Video Monetization Platform • Sold to Equifax in 2011 • Built it to sell training online • 10+ other companies, boards • Focused on mid and long tail Professor – DU and corporate deals and DVD Author – 6 technical books duplication guys Mentor in Founders Institute brad@intelivideo.com or http://bradleydbrown.blogspot.com
  • 4. Geospatial 101 • Mapping Solutions • Your data vs. mapping data • Lat / Long vs. Polygon • Uses and Advantages • Address Normalization
  • 5. Geospatial 101 Mapping Solutions – SaaS Solutions Google Maps • http://maps.google.com/ • MapsGL Bing Maps • http://www.bing.com/maps/ Google Earth • KML File
  • 6. Geospatial 101 Mapping Solutions – Spatial, Premise and SaaS Oracle Spatial vs. Locator Navtec, ESRI, etc. data in your own DB Oracle ApEx Has Built-in Mapping Other Hosted Solutions • Open Street Integraph • Virtual Earth Natural Earth • ESRI Maps for Free
  • 7. Geospatial 101 Your data vs. mapping data Your Data • Customers • Properties / Homes • Inventory Mapping Data • Maps – Google, etc. • Shape Files • In / Nearest
  • 8. Geospatial 101 Lat / Long vs. Polygon Lat / Long • Point on the map Polygon/Shape • Group of points • Shape File • Shapes • Metadata Can measure “in” for polygons or “nearest” for points
  • 9. Geospatial 101 Uses and Advantages Why Use? Using it to your • Glitzy / Sexy / Looks good advantage • Intelligence about your • Directions, Other customers, your data, “Similar” etc. items, Connecting things • Nearby Gas Stations, Railroad tracks, Boundaries
  • 10. Geospatial 101 Address Normalization and Geocoding an Address Address Normalization • Zip+4 • http://www.semaphorecorp.com/cgi/zp4.html • CorrectAddress • http://www1.intelligentsearch.com/address-verification/correct- address.htm • Google API Geocoding an Address • Google Geocoding API • https://developers.google.com/maps/documentation/geocoding/ • Web Service APIs
  • 11. Hopefully something will spark ideas for you!
  • 12. How Have I Used Geospatial Data IntelliReal • Considerable geo data, knowledge, etc. TUSC • Embedded into several apps at TUSC (ACT) Independent Nation • Political mapping solution InteliVideo • Where are people connecting from?
  • 13. Heat Maps A look at different neighborhood trends in home values
  • 14. GeoSearch Visual Slice and Dice – home type, bedrooms, bathrooms, price
  • 15. Highlight and Visual Search Find all homes that sold in this area for 20% less than their “value”
  • 16. Test Scores within a radius ACT scores By Zip Code Google API supports – Heat Maps • Outlines • Polygons – Circles – Overlays – Events
  • 17. With Google Maps or Yahoo or…
  • 18. Mapping Your Data Do you have data in your Oracle database that you would like to visually map? All you really need is a lat and long (or an address) Easy integration Starts At: • https://developers.google.com/maps/ Simple Pushpins:
  • 19. Hello World Page Static HTML page Copied HTML from Google page and pasted here
  • 20. Dynamic Generation Data driven mapping Properties in Arapahoe County, CO PL/SQL region with onload function
  • 21. True AJAX Mapping Mapping that pulls data dynamically from an XML page Lat / Long are passed to XML page
  • 23. Add a Popup Windows on Click Any information can popup
  • 25. Yahoo API -YQL Free Data and APIs from Yahoo • http://developer.yahoo.com/yql/console/ Local Events • select * from upcoming.events where woeid in (select woeid from geo.places where text="North Beach") Local Places • select * from local.search where zip='94085' and query='pizza'
  • 26.
  • 27. Neighborhood Comp Boundaries Create boundaries for a property • Using roads, water features (lakes, rivers), landmarks (parks), military bases and rail roads Created a function to return this info • Input is lat/long, but we can change to prop id once we have parcels loaded up • Other inputs – big roads (Y/N), distance (miles from property – 1), min distance (0), min length (.1 miles), band (1=1st, 2=2nd, etc.) Get_Kml is in the notes… • Will produce a KML file for Google Earth viewing
  • 28. Boundary Example 1 Major streets Lakes Parks Major features Square vs. Polygon
  • 30. Tons of Free Data! Tiger • http://www.census.gov/geo/www/tiger/shp.html • US Government Project – US Census UK Census Data • www.census.ac.uk/casweb Open Street Maps • http://www.openstreetmap.org/ • Open Source Collection Group • It’s free! Maps are more detailed than Google too!
  • 31. Getting OpenStreetMap Data “Shape Files” OpenStreetMap by State • http://osmdata.thinkgeo.com/openstreetmap-data/north-america/us/
  • 32. Map Features Tiger • http://www.census.gov/geo/www/tiger/tgrshp2012/documentation.html • www.census.ac.uk/casweb - UK census data OpenStreetMaps • http://wiki.openstreetmap.org/wiki/Map_Features Features • Addresses, Landmarks (Point and Area), Water (Area and Linear), MSAs, Railways, Military Installations, Tab Blocks (Block Groups, Blocks), Census Tracts, County, State Shape Files • Points and Polygons • Data (e.g. Road Name, Type)
  • 33. Point to Point Comparison Nearest “In” or “At” Area Water (lake) State Linear Water (river) County MSA Area Landmark (park) City Area Point (hospital) Census Tract Schools Block Group Military Installation Block Railroad Latitude, Longitude Address Range
  • 34. Loading Data Visually using Oracle MapBuilder Download at http://www.oracle.com/technetwork/middleware/mapviewer/downloads/index.htm l java –jar MapBuilder.jar Import Shapefile
  • 35. Loading Shape Files in Batch Load Shape to Spatial Data Option (SDO) http://download.oracle.com/otn/other/spatial/shp2sdo.zip Creates file structure If you have multiple files – run the creation only once and create the spatial index, load the data… • shp2sdo.exe Tiger DataADDRFEAT tl_2011_01001_addrfeat tl_2011_addrfeat -g geometry –f -x (-180,180) -y (-90,90) -s 8307 -t 0.000005 – v • sqlplus username/password @ tl_2011_addrfeat.sql • CREATE INDEX index_name ON table (geometry) INDEXTYPE IS MDSYS.SPATIAL_INDEX • sqlldr username/password tl_2011_addrfeat
  • 36.
  • 37. Water’s Distance from a Property SELECT SDO_GEOM.SDO_DISTANCE(Geometry, sdo_cs.transform(SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (- 104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance, SDO_GEOM.SDO_AREA(geometry, 0.005, 'unit=acre') area, SDO_GEOM.SDO_CENTROID(geometry, 0.005) centroid, t.* FROM TL_2011_08031_AREAWATER t order by 1;
  • 38. Nearest x Objects (Address Ranges) to Property SELECT SDO_GEOM.SDO_DISTANCE(Geometry, sdo_cs.transform(SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance, t.* FROM TL_2011_08031_ADDRFEAT t WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL), 'sdo_num_res=1 distance=1 unit=mile') = 'TRUE';
  • 39. Nearest 5 Landmarks within 10 Miles SELECT * FROM TL_2011_08031_AREALM WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL), 'sdo_num_res=5 distance=10 unit=mile') = 'TRUE';
  • 40. What Block is this Property In? SELECT * FROM TL_2011_08_TABBLOCK WHERE SDO_WITHIN_DISTANCE(Geometry, SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL), 'distance=0 unit=mile') = 'TRUE';
  • 41. Nearest 5 Schools, Churches and Shopping Centers SELECT SDO_GEOM.SDO_DISTANCE(Geometry, sdo_cs.transform(SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance, t.* FROM TL_2011_08031_POINTLM t WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL), 'sdo_num_res=5 distance=5 unit=mile') = 'TRUE';
  • 42. Nearest Hospitals in the County select SDO_GEOM.SDO_DISTANCE(Geometry, sdo_cs.transform(SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (- 104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance, t.* FROM TL_2011_08031_POINTLM t where mtfcc = 'K1231';
  • 43. Nearest River, Creek, etc (Linear Water) SELECT SDO_GEOM.SDO_DISTANCE(Geometry, sdo_cs.transform(SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (- 104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance, t.* FROM TL_2011_08031_LINEARWATER t WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL), 'sdo_num_res=5 distance=5 unit=mile') = 'TRUE'
  • 44. 5 Nearest Railways SELECT SDO_GEOM.SDO_DISTANCE(Geometry, sdo_cs.transform(SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL),8307),.01,'unit=mile') distance, t.* FROM TL_2011_US_RAILS t WHERE SDO_NN(geometry, SDO_GEOMETRY(2001, 4269, SDO_POINT_TYPE (-104.958587,39.71464,NULL), NULL, NULL), 'sdo_num_res=5 distance=5 unit=mile') = 'TRUE';
  • 45. Extracting KML for Google Earth create or replace </PolyStyle> FUNCTION GET_KML (in_geometry sdo_geometry) </Style> RETURN CLOB AS <Placemark> <name>Entire</name> v_output clob := ''; <styleUrl>#transGreenPoly</styleUrl> <Polygon> cursor get_ordinates_cur(in_geometry sdo_geometry) is <extrude>1</extrude> SELECT t.x lat, t.y lng <altitudeMode>relativeToGround</altitudeMode> FROM TABLE(SDO_UTIL.GETVERTICES(in_geometry)) t; <outerBoundaryIs> <LinearRing> BEGIN <coordinates>'; v_output := ' for get_ordinates_rec in get_ordinates_cur(in_geometry) <?xml version="1.0" encoding="UTF-8"?> loop <kml xmlns="http://www.opengis.net/kml/2.2"> dbms_lob.append(v_output,get_ordinates_rec.lat || ',' || <Document> get_ordinates_rec.lng || ',17' || chr(13) || chr(10)); <Style id="transBluePoly"> end loop; <LineStyle> <width>1.5</width> v_output := v_output || '</coordinates> </LineStyle> </LinearRing> <PolyStyle> </outerBoundaryIs> <color>7dff0000</color> </Polygon> </PolyStyle> </Placemark> </Style> </Document> <Style id="transGreenPoly"> </kml>'; <LineStyle> <width>1.5</width> RETURN v_output; </LineStyle> <PolyStyle> END GET_KML; <color>7f00ff00</color>
  • 46. What Did We Cover? • Geospatial 101 • Ideas on How you Might Use GeoSpatial Data • Mapping Solutions • How to Get Started • Technical Details • Spatial Queries • Now it’s your turn!
  • 48. Copyright Information Neither InteliVideo nor the author guarantee this document to be error-free. Please provide comments/questions to brad@intelivideo.com. InteliVideo © 2013. This document cannot be reproduced without expressed written consent from an officer of InteliVideo.

Editor's Notes

  1. I’d also encourage you to check out Yahoo Pipes. Pipes allows you to prompt for information, use YQL, draw it in a map, overlay data and more. The maps you see here are 2 maps I created that show current traffic on a map. The map on the bottom of the page shows the culinary events that are in town. Again, I plan on merging this information with my “current” location and sending daily emails of maps and other items of interest. So let’s take a look at how you can do this with ApEx…
  2. create or replaceFUNCTION GET_KML (in_geometrysdo_geometry)RETURN CLOB AS  v_output          clob := &apos;&apos;;   cursor get_ordinates_cur(in_geometrysdo_geometry) is  SELECT t.xlat, t.ylng  FROM   TABLE(SDO_UTIL.GETVERTICES(in_geometry)) t;BEGIN  v_output := &apos;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;kmlxmlns=&quot;http://www.opengis.net/kml/2.2&quot;&gt;  &lt;Document&gt;    &lt;Style id=&quot;transBluePoly&quot;&gt;      &lt;LineStyle&gt;        &lt;width&gt;1.5&lt;/width&gt;      &lt;/LineStyle&gt;      &lt;PolyStyle&gt;        &lt;color&gt;7dff0000&lt;/color&gt;      &lt;/PolyStyle&gt;    &lt;/Style&gt;    &lt;Style id=&quot;transGreenPoly&quot;&gt;      &lt;LineStyle&gt;        &lt;width&gt;1.5&lt;/width&gt;      &lt;/LineStyle&gt;      &lt;PolyStyle&gt;        &lt;color&gt;7f00ff00&lt;/color&gt;      &lt;/PolyStyle&gt;    &lt;/Style&gt;    &lt;Placemark&gt;      &lt;name&gt;Entire&lt;/name&gt;      &lt;styleUrl&gt;#transGreenPoly&lt;/styleUrl&gt;      &lt;Polygon&gt;        &lt;extrude&gt;1&lt;/extrude&gt;        &lt;altitudeMode&gt;relativeToGround&lt;/altitudeMode&gt;        &lt;outerBoundaryIs&gt;          &lt;LinearRing&gt;            &lt;coordinates&gt;&apos;;  for get_ordinates_rec in get_ordinates_cur(in_geometry) loop      dbms_lob.append(v_output,get_ordinates_rec.lat || &apos;,&apos; || get_ordinates_rec.lng || &apos;,17&apos; || chr(13) || chr(10));  end loop;  v_output := v_output || &apos;&lt;/coordinates&gt;          &lt;/LinearRing&gt;        &lt;/outerBoundaryIs&gt;      &lt;/Polygon&gt;    &lt;/Placemark&gt;  &lt;/Document&gt;&lt;/kml&gt;&apos;;  RETURN v_output;END GET_KML;