hana sps07 geospatial processing

32
What´s New? SAP HANA SPS 07 Geospatial Processing in SAP HANA (Delta from SPS 06 to SPS 07) SAP HANA Product Management November, 2013

Upload: sap-database-technology

Post on 16-May-2015

921 views

Category:

Technology


5 download

DESCRIPTION

What´s New? SAP HANA SPS 07 - Geospatial Processing in SAP HANA

TRANSCRIPT

Page 1: HANA SPS07 Geospatial Processing

What´s New? SAP HANA SPS 07 Geospatial Processing in SAP HANA(Delta from SPS 06 to SPS 07)

SAP HANA Product Management November, 2013

Page 2: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 2Public

Agenda

Introduction to Spatial Processing with SAP HANA

SAP HANA Spatial Architecture

Application Development in SAP HANA with XS Engine

SAP HANA Spatial Ecosystem

Customer Use Cases

Page 3: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 3Public

Supports any Device

Any AppsAny App Server

SAP Business Suite and BW ABAP App Server

JSONR Open ConnectivityMDXSQL

Other AppsLocationsReal-timeHADOOPMachineUnstructuredTransaction

SAP HANA Platform

SQL, SQLScript, JavaScript

Replication, Streaming and ETL Integration Services

Search/Text Mining

Business Function Library

Data Virtualization Geospatial

Predictive Analysis Library

DatabaseServices

Stored Procedure & Data Models

Planning Engine Rules Engine

Application & UI Services

SAP HANA Platform Converges Database, Data Processing and Application Platform Capabilities & Provides Libraries for Predictive, Planning, Text, Spatial, and Business

Analytics to enable business to operate in real-time.

SAP HANA PlatformMore than just a database

Page 4: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 4Public

What is a spatially enabled database?Key capabilities delivered in SAP HANA

• Store, process, manipulate, share, and retrieve spatial data directly in the database

• Process spatial vector data with spatial analytic functions:• Measurements –

distance, surface, area, perimeter, volume• Relationships –

intersects, contains, within, adjacent, touches• Operators –

buffer, transform• Attributes –

types, number of points

• Store and transform various 2D coordinate systems

• Process vector data

• Implements the ISO/IEC 13249-3 standard and Open Geospatial Consortium (1999 SQL/MM standard)

pointline

polygon Multi-polygon

Page 5: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 5Public

The challenge Silos of information create an incomplete picture…

Transactional data

Master data

Analytical data

Business Applications

Geographical data

Location-based data

Maps and topologies

Geographic Information Systems

(GIS)

Diagrams

2D/3D graphs

Animations

Engineering Systems

Page 6: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 6Public

i

Th

ird

-Par

ty M

ap

Co

nte

nt

& S

ervi

ces

The SolutionSpatial-enabled solutions on SAP HANA

Unified platform for enriching business data with spatial

Spatial-enabled Applications

Spatial in BI & Mobile

Visualize

Analyze

Embed

Transaction Data

Unstructured Data

Location Data

Machine Data

Real-timeData Management

Deliver

Process

Model

Real-timeInformation

Management

Geo-code

Cleanse

Integrate

Th

ird-P

arty GIS

(E

sri ArcG

IS)

Page 7: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 7Public

SAP HANA

Real Platform for real-time businessSpatial and

Text Analysis

Big Data & Data

Warehousing

Operational & Ad-hoc BI Database

Mobile

Cloud

Machine Learning

Planning & Optimization

Core Business Acceleration

SAP HANAA platform for a new class of real-time analytics and applications

SAP HANA

Real-time Replication Services

Data Services

In-Memory Database

Planning &Calculation Engine

R & Hadoop Integration

Predictive Analysis & Business Function Libraries

Information Composer & Modeling Studio

Spatial Processing

Text Search & Text Analysis

Page 8: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 8Public

SAP HANADevelop and deploy spatially-enabled analytics and applications

TransactionData

Unstructured Data

LocationData

MachineData

SAP HANA

Analytics Applications Visualization GISSAP Info Access

(HTML 5) Mobility

REAL-TIME DATA

SPATIAL DATA

BUSINESS DATA

OLTP Analytics Planning Predictive Text Spatial

Geo-Services

Geo-Content

Columnar Spatial

Processing

Calc Model / Views

Spatial Functions

Spatial Data Types

Real-time high-performancespatial processing

Store, process, manipulate, retrieve

and share spatial data

Unified modeling platform

Combine spatial with business data

Geo-contentand services

Page 9: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 9Public

Agenda

Introduction to Spatial Processing with SAP HANA

SAP HANA Spatial Architecture

SAP HANA Spatial Ecosystem

Application Development in SAP HANA with XS Engine

Customer Use Cases

Page 10: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 10Public

Spatial Processing Architecture

Introducing in SAP HANA SPS 06: New spatial data types (ST_POINT &

ST_GEOMETRY) Optimized data types for spatial Extended SAP HANA SQL with spatial functions Columnar storage of spatial data Native spatial engine as part of Index Server Access via SQL or Calculation Models/Views

Supports: 2D – Vector Types Points, line-strings, polygons, compound

polygons Spatial functions SRID (Spatial Reference ID’s) Application development on XS with geo-

content and mapping services

Page 11: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 11Public

Consumption – spatial SQL

location ST_POINT),

SELECTdescription

FROMlocation

WHERElocation.ST_Within(ST_FromText(‘ST_POLYGON(-1 -1, 2 -1, 2 2, -1 2)’))

1. table creation

CREATE COLUMN TABLE locations(

id INTEGER,description CHAR(100),

2. spatial SQL

Page 12: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 12Public

Sample usage of Spatial in HANA

Spatial data types

SQL Syntax to retrieve spatial data

Page 13: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 13Public

Consumption – calculation engine

1. spatial tablesCREATE COLUMN TABLE locations(

id INTEGER,description CHAR(100),location ST_POINT

),

2. calculation view

3. standard SQL

SELECTdescription

FROMcalculation view

© 2012 SAP AG. All rights reserved.

Page 14: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 14Public

SQL syntax for HANA Spatial

Or it could be a complex HANA ModelCREATE COLUMN VIEW NOKIA.OV_POI WITH PARAMETERS (indexType=5,

joinIndex=NOKIA.POI_DETAIL, joinIndexType=2, joinIndexEstimation=0,

joinIndex=NOKIA.POI_LOCATION, joinIndexType=2, joinIndexEstimation=0,

joinIndex=NOKIA.POI_TYPE, joinIndexType=2, joinIndexEstimation=0,

joinIndex=NOKIA.POI_POSTAL_CODE, joinIndexType=2, joinIndexEstimation=0,

joinIndex=NOKIA.SALES, joinIndexType=1, joinIndexEstimation=0,

joinCondition=('join1', NOKIA.SALES, "POI_DIM_ID", NOKIA.POI_LOCATION, "POI_ID", '', 256, 0),

joinCondition=('join2', NOKIA.POI_DETAIL, "POSTAL_CODE", NOKIA.POI_POSTAL_CODE, "POSTAL_CODE", '', 256, 1),

joinCondition=('join3', NOKIA.POI_DETAIL, "TYPE_ID", NOKIA.POI_TYPE, "TYPE_ID", '', 256, 2),

joinCondition=('join4', NOKIA.POI_LOCATION, "POI_ID", NOKIA.POI_DETAIL, "POI_ID", '', 256, 3),

joinPath=('path1','join1'),

joinPath=('path2','join1, join4'),

joinPath=('path3','join1, join4, join2'),

joinPath=('path4','join1, join4, join3'),

viewAttribute=('SHAPE', NOKIA.POI_POSTAL_CODE, "SHAPE", 'path3', '','', '', 'BW_POI_AV$SHAPE'),

viewAttribute=('LANGUAGE_CODE', NOKIA.POI_TYPE, "LANGUAGE_CODE", 'path4', '','','', 'BW_POI_AV$LANGUAGE_CODE'),

viewAttribute=('TYPE_NAME', NOKIA.POI_TYPE, "TYPE_NAME", 'path4', '', '', '', 'BW_POI_AV$TYPE_NAME'),

viewAttribute=('LOCATION', NOKIA.POI_LOCATION, "LOCATION", 'path1', '', '', '', 'BW_POI_AV$LOCATION'),

viewAttribute=('POI_ID', NOKIA.POI_LOCATION, "POI_ID", 'path1', '', '', '', 'BW_POI_AV$POI_ID'),

viewAttribute=('NAME', NOKIA.POI_DETAIL, "NAME", 'path2', '', '', '', 'BW_POI_AV$NAME'),

viewAttribute=('POSTAL_CODE', NOKIA.POI_DETAIL, "POSTAL_CODE", 'path2', '','','', 'BW_POI_AV$POSTAL_CODE'),

keyFigure=("SALES", 1, formula='', description='', unitConversionName='', expression='', expressionFlags=0, indexId=NOKIA.SALES, attribute="SALES"),

keyFigure=("QUANTITY",1, formula='', description='', unitConversionName='', expression='', expressionFlags=0, indexId=NOKIA.SALES, attribute="QUANTITY"),

'REGISTERVIEWFORAPCHECK'='1',

OPTIMIZEMETAMODEL=0);

Page 15: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 15Public

Sample Spatial functions in SAP HANA

ST_WITHIN(Geometry,Geometry)ST_EQUALS(Geometry,Geometry)ST_CONTAINS(Geometry,Geometry)ST_BUFFER(Geometry)ST_WITHINDISTANCE(Geometry,Geometry)ST_DISTANCE(Geometry,Geomety)ST_AREA(Geometry)ST_LENGTH(LineString)

Within Query

select * from mytable where point.ST_Within('POLYGON((0.0 0.0,2.0 0.0, 2.0 2.0, 0.0 2.0, 0.0 0.0))') = 1;

Window Query

select * from mytable where shape.ST_IntersectsRect(new ST_POINT(0.0, 0.0), new ST_POINT(100.0, 100.0)) = 1;

Spatial Reference Systems

Euclidian

WGS84

RD

Page 16: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 16Public

Page 17: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 17Public

Agenda

Introduction to Spatial Processing with SAP HANA

SAP HANA Spatial Architecture

Application Development in SAP HANA with XS Engine

SAP HANA Spatial Ecosystem

Customer Use Cases

Page 18: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 18Public

SAP HANA ScenariosExtended Scripting Services (XS)

What: Small footprint application / web server for application development inside SAP HANA

Rationale: Enable application development and deployment while minimizing architectural “layers”

Scope: From Lightweight small web-based applications to Complex enterprise business applications

Client: Browser or Mobile

SAP HANA

Front-end Technologies http/s HTML5 / SAPUI5 Client-side JavaScript

Control Flow Technologies OData Server-Side JavaScript XMLA

Data Processing Technologies SQL / SqlScript Calculation Engine

Functions Application Function Library

(AFL)

Presentation logic

Control flow logic

Data

XS

Calculation logic

Page 19: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 19Public

Capabilities: SAP HANA spatial application development

components include: Location Services (on-premises or cloud), Geo-Content, Application Interfaces, Services

Allows for visualization, interaction, and exploration of spatial data in SAP HANA via maps

Supports HTML5 deployments for browser or iPad Consumes SAP HANA models NOT a general purpose BI or GIS tool!

Benefits: Quick development and deployment time Low TCO & TCD and fast response times with 2-

tier architecture Components, content, and services included

with SAP HANA; can also use other map svcs

SAP HANA Spatial Application Development

Quickly develop and deploy SAP HANA based spatial applications withprovided geo-content and map services via the native XS engine

SAP HANA XS

iPad/Browser

SAP HANA

HTML5 Application

Location ServicesMaps

Geo-coding Services

Spatial Engine

Geo-content

Page 20: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 20Public

Building a Native Spatial Application in SAP HANA with XS and Mapping Content & Services

Configure App

Configure application UI and behavior

Create Model

Use HANA Studio to create spatial tables, define the data model, and create views (spatial and non-spatial)

Configure XS

Configure XS by connecting to map services and create query services

Load Spatial

Data

Load spatial data (geocoded / x y) and applicable spatial content (POI, road networks, and political boundaries)

DeployPerform real-time interaction with spatial and non-spatial data via map (zoom/pan, filter, drag, create polygons)

Page 21: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 21Public

Agenda

Introduction to Spatial Processing with SAP HANA

SAP HANA Spatial Architecture

Application Development in SAP HANA with XS Engine

SAP HANA Spatial Ecosystem

Customer Use Cases

Page 22: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 22Public

SAP HANA Spatial Ecosystem

Data Sources

Data Integration Tools Load tools:• SAP Data Services• SAP Event Stream Processor

Types & Functions:• Point• Linestring• Polygon• SRID metadata• Spatial function library

• Clustering• Spatial Joins

Engines:• Indexserver• Calc• Spatial• Attribute• XS

Analytics GISVisualization

Interfaces / Services

SQL / Calculation Models

SAP Info Access(HTML5)

Geo-Services:• Geoservices• Geocontent

odbc, jdbc, XS (InA, geoJSON, API, ODATA)

Views:• Analytical• Attribute• Calculation

Geospatial Import/Export:• Shapefile, csv, binary• WKT / WKB Support

Data Access

SAP HANA(OGC Compliant)

Applications

SAP Data Spatial DataNon-SAP Data Real-Time Data

Mobility

GIS

Page 23: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 23Public

SAP HANA and Esri InteroperabilityPlanned Integration Options & Vision

Real-Time Data

Spatial Data

Business DataSpatial Data

Types

Spatial Functions

Calc Model / Views

Geo-Content

Geo-Services

Columnar Spatial Storage

SAP HANA(SPS 06 & later) OLTP Analytics Planning Predictive Text Spatial

Esri API viaXS Engine

GIS SuiteEsri ArcGISLocation

Analytics & Geo-Services

Applications & Solutions

CVOM

Query Layers

WKT / WKB / Shapefile / GeoJSON

Import/Export

Planned Q1 2014

This is the current state of planning and may be changed by SAP at any time.

ODBC

SAP Lumira

Mapping Services &

Content

Supported Today

Esri Maps for

SAP Xcelsius

Page 24: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 24Public

Vector spatial data types and functions

Import/export capability

BI/GIS interoperability

Geo-content and services

Geo-application development platform using XS

Spatial Compliance

Advanced Spatial Capabilities

Geodatabase and 3D Support

SAP HANA Spatial Roadmap

Full OGC compliance

3D type and function support

Raster support and processing

SVG rendering

Non-Geo visualization tool support (Visual Enterprise)

Full integration of spatial data-types

User defined SRID

Space filing curve optimization

Advanced spatial functions

Spatial Join

Application enhancements to support and leverage spatial

Current Mid-Term Long-TermThis is the current state of planning and may be changed by SAP at any time.

Page 25: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 25Public

Agenda

Introduction to Spatial Processing with SAP HANA

SAP HANA Spatial Architecture

Application Development in SAP HANA with XS Engine

SAP HANA Spatial Ecosystem

Customer Use Cases

Page 26: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 26Public

Key Capabilities

Energy infrastructure company needed to perform pipeline integrity management analysis to identify high-risk transportation & distribution pipes that are close to structures. This required pre-processing and analyzing huge amounts of spatial data.

Previously, it took more than 3.5hours for this analysis on legacy architecture. SAP HANA PoC implementation brought the compute time to less than 2.5 seconds allowing the company to perform adhoc asset management and reduce potential outages, & avoid catastrophic failures. Additionally, geospatial visualization was used to estimate maintenance cost per year for electricity stations.

84,000x 3.5hours to less than 2.5seconds in PoC

New capabilities by combining geospatial with transactional data

Utilities Case StudyEuropean company providing energy infrastructure related services

Page 27: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 27Public

Key Capabilities

Premier tire manufacturing company enabled fleet managers to perform predictive maintenance by using SAP HANA to process 40 billion events per year per fleet on a real-time basis using tire temperature and pressure data measured by sensors installed on tires.

This helped to reduce fuel & tire cost and increased tire lifespan by almost 20% helping the company’s fleet management services improve customer satisfaction and increase competitiveness.

3%Fuel & Tire cost Reduction

> 40 billion Events Per Year

Up to 20% extended tire lifespan

Connected Car Case StudyPremier tire manufacturer delivers real-time insight

Page 28: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 28Public

60,000,000Position records streamed and stored in HANA

Key capabilities

TSG Hoffenheim is using SAP HANA to provide dynamic visual analysis of player and ball movement via sensor chips embedded in the ball and player shinguards.

This enables the analysis of player performance in real-time and provides an enriched game viewing experience to all their fans. Additionally, they plan to use SAP HANA’s powerful spatial processing to optimize dynamic premium ads placement based on on-the-field ball location.

Sports and Entertainment Case StudyTSG Hoffenheim enriches fan experiences and maximizes premium ads

Page 29: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 29Public

Disclaimer

This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP.

SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP’s strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice.

This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent.

Page 30: HANA SPS07 Geospatial Processing

Thank you

Contact information

Balaji KrishnaSAP HANA Product [email protected]

To get the best overview of what’s new in SAP HANA SPS 07, read this blog.

Page 31: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 31Public

© 2013 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

National product specifications may vary.

These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

Page 32: HANA SPS07 Geospatial Processing

© 2013 SAP AG. All rights reserved. 32Public

© 2013 SAP AG. Alle Rechte vorbehalten.

Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durch SAP AG nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.

Einige der von der SAP AG und ihren Distributoren vermarkteten Softwareprodukte enthalten proprietäre Softwarekomponenten anderer Softwareanbieter.

Produkte können länderspezifische Unterschiede aufweisen.

Die vorliegenden Unterlagen werden von der SAP AG und ihren Konzernunternehmen („SAP-Konzern“) bereitgestellt und dienen ausschließlich zu Informationszwecken. Der SAP-Konzern übernimmt keinerlei Haftung oder Gewährleistung für Fehler oder Unvollständigkeiten in dieser Publikation. Der SAP-Konzern steht lediglich für Produkte und Dienstleistungen nach der Maßgabe ein, die in der Vereinbarung über die jeweiligen Produkte und Dienstleistungen ausdrücklich geregelt ist. Keine der hierin enthaltenen Informationen ist als zusätzliche Garantie zu interpretieren.

SAP und andere in diesem Dokument erwähnte Produkte und Dienstleistungen von SAP sowie die dazugehörigen Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und verschiedenen anderen Ländern weltweit. Weitere Hinweise und Informationen zum Markenrecht finden Sie unter http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark.