1 copyright © 2011, oracle and/or its affiliates. all ... · management and analysis platform •...

51
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Upload: others

Post on 11-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 2: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

S15402 Google Maps, ESRI, Traffic, iPad: Bring it all Together With Oracle Spatial LJ Qian Jayant Sharma Sr. Mgr., FMW MapViewer Director, Spatial Prod. Mgmt.

ORACLE PRODUCT

LOGO

Page 3: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 4: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Latin America 2011 December 6–8, 2011 Tokyo 2012

April 4–6, 2012

Page 5: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle OpenWorld Bookstore

•  Visit the Oracle OpenWorld Bookstore for a fabulous selection of books on many of the conference topics and more!

•  Bookstore located at Moscone West, Level 2 •  All Books at 20% Discount

Page 6: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

Page 7: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

Outline

•  The basic mashup: maps in apps • What are Spatial and MapViewer •  External services and MapViewer • Demo (if possible) • Discussion

Page 8: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

THE BASIC MASHUP: MAPS IN APPS

Page 9: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Basic Mashup: Application Content and MapViewer •  Simplest form: a database query containing a spatial

column, aka a MapViewer theme • Or the result of a stored procedure which • Can be spatial (e.g. asset location) or non-spatial (e.g.

work orders) • Must have a location identifier (e.g. asset id) • Or contain the location

Page 10: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display  applica*on  content  from  a  local  database  

Page 11: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 12: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display spatial network analysis results

Page 13: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display  Results  of  Stored  Procedures  

Page 14: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 14

OTM  6.2  Order  Release  Ac;on  Map  Order  Release  Shipment  Routes  

Shipment Destination

Shipment Source

Destination of OUTBOUND Unplanned Order

Page 15: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Map  Views  in  Oracle  BIEE  11g    

Page 16: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

OBIEE 11g map view on an iPad

Page 17: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

TMC: Oracle SiteHub & Retail Analytics

Page 18: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

iConsulting: BI Spatial Analytics

Page 19: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

iConsulting: BI Spatial Analytics

Page 20: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

IMMCO Prototype: Linear Asset mgmt

Page 21: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

IMMCO Prototype: Linear Asset mgmt

Page 22: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

ORACLE SPATIAL & FMW MAPVIEWER

Page 23: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

“Points”

“Lines”

“Polygons”

Rasters

Topologies

3D

Oracle database

f1 f2 n1

n2

e1

e2 e3

e4 Networks

What is Oracle Spatial

Page 24: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Spatial Database Services Element 0

Element 1 (Hole) P1

P2

P3

P4

P5

P6

P7 P

8 H2

H3

H4

H1

Geometry Data Type

Indexing Rtree

Query/Analysis Select, join, buffer, within distance, nearest neighbor, intersection, union, convex hull, centroid, ...

ROADS RNAME ID TYPE LANES GEOMETRY

M40 M25

140 141

HWY HWY

6 4

X Y x1 y1

x2 y2

x3 y3

x4 y4

x5 y5

Abstract Data Type

Access: SQL (Structured Query Language)

Page 25: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

25 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

“Spatial” Tables

•  Just like regular tables • Contain a column of type SDO_GEOMETRY to store the

geometric shape of the objects

CREATE TABLE map_countries ( id NUMBER PRIMARY KEY, name VARCHAR2(30), geometry SDO_GEOMETRY);

Page 26: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Map data © NAVTEQ

Analyze

SELECT c.holding_company, c.location FROM competitor c, bank b WHERE b.site_id = 1604 AND SDO_WITHIN_DISTANCE( c.location, b.location, 'distance=2 unit=mile‘ ) = 'TRUE'

Find all competitors within 2 miles of Northport Branch

Page 27: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Analyze What percentage of Yellowstone is in each state ?

WITH p AS ( SELECT s.state,

sdo_geom.sdo_area ( sdo_geom.sdo_intersection ( s.geom, p.geom, 0.5),

0.5, 'unit=sq_km') area FROM us_states s, us_parks p WHERE SDO_ANYINTERACT (s.geom, p.geom) = 'TRUE' AND p.name = 'Yellowstone NP'

) SELECT state, area, RATIO_TO_REPORT(area) OVER () * 100 AS pct FROM p

ORDER BY pct DESC;

STATE AREA PCT

---------- ---------- ---------

Wyoming 8100.7515 91.0636012

Montana 640.296007 7.19780878

Idaho 154.659879 1.73859

Page 28: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Spatial 11g Enables

Geocoding & Routing

3D, Point Clouds, and LIDAR Scrollable, Interactive Maps Spatial Web Services

Oracle BI Dashboards Raster Imagery

Page 29: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Locator vs Spatial

Topology  Data  Model    Linear  Referencing  System  

Spa*al  Analy*c  Func*ons  

OGC  Web  Services  

Native Spatial datatype Native Spatial index

Basic spatial queries Full projection support

GeoRaster Geocoder Routing Engine 3D Misc advanced spatial analyses

Oracle Locator

Oracle Spatial Option

Oracle Database

Enumerated in detail in the online Locator doc

http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_locator.htm#i632018

Page 30: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Open and Interoperable

Data

Page 31: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Fusion Middleware MapViewer •  A J2EE component (.ear) for developing web mapping applications.

Usually deployed in WLS. •  Renders geospatial content stored in an Oracle database.

Background maps can be from 3rd party providers. •  Provides Java, Javascript, and XML request/response APIs.

Page 32: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

32 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Mapviewer

Mapviewer metadata

Mapviewer  applica*on  

Oracle Database

Styles – style definitions (markers, colors etc) Themes – association of style with data Base Maps – collection of themes Tilecaches – predefined base map tiles

build

build

build

OAS, WLS or other J2EE container Oracle  Maps  Javascript  API  

Spatial data

Page 33: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

33 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Mapviewer : architecture

Oracle Database

Mapviewer client side external map providers eLocation, Google, Bing

WebLogic or J2EE Container

MapViewer server components

map cache server

Oracle Maps server-side

Dynamic SQL queries rendering

engine

HTTP:

adapter HTTP

(map tiles and feature data) (Map interaction client lib)

(get map tiles)

Page 34: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

34 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Mapviewer facilitates different options

•  For content –  Local (Oracle database) – Online web services – Hybrid (local database + online content)

•  For development –  Java or javascript code embedded in application – Using ADF Faces (<dvt:map>)

Page 35: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

35 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

External Services and MapViewer • Can be spatial (e.g. weather) or non-spatial (e.g. BI

report) • Must have a location identifier (e.g. county name, or

region id) • Or contain the location (e.g. georss) • Can be an XML document (BI report, georss) or JSON or

embeddable content (e.g. media) • Or an OGC WebFeatureService 1.0 response (i.e. a

GML 2.11 feature)

Page 36: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

36 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display  Content  (XML)  from  External  Services    

Page 37: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

37 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display  Content  (GeoRSS)  from  External  Services    

Page 38: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

38 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display  Content  (JSON)  from  External  Services    

Page 39: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

39 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Display  Content  (media)  from  External  Services    

Page 40: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

40 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

External  Content  (StreetView)  on  MapViewer  Maps  

Page 41: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

41 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

ESRI basemap, NAVTEQ Traffic, fuel, incidents

Page 42: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

42 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

External Map Services and MapViewer

•  Built-in support for Google and Bing Maps – Purely for tiles not their full javascript API

•  Interface (MVCustomTileLayer) for accessing other online map services (e.g. ESRI or OpenStreetMap)

• OGC WebMapService and WebFeatureService interfaces are also supported

Page 43: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

43 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

MapViewer  also  renders  applica*on  content  on  background  maps  from  online  services  

Page 44: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

44 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

External  Map  Tiles  in  MapViewer  

Page 45: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

45 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

CustomTileLayer  Interface  and  OpenStreetMap  

Page 46: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

46 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

CustomTileLayer  Interface  and  ESRI  ArcGIS  Online  

Page 47: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

47 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Summary

•  An Oracle database is a powerful, robust geospatial data management and analysis platform

•  FMW MapViewer renders application content •  The content can be in an Oracle database, or • Can come from other platforms or services

– Such as OBIEE or web services like Weatherbug

•  The map data can be stored using Spatial, or •  The background maps can come from services

– E.g. ESRI, Bing or Google Maps

Page 48: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

48 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

Page 49: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

49 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Q&A

Page 50: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

50 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 51: 1 Copyright © 2011, Oracle and/or its affiliates. All ... · management and analysis platform • FMW MapViewer renders application content • The content can be in an Oracle database,

51 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.