17
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Using Spatial in Oracle Cloud with Developer Tools and Frameworks Spatial and Graph Summit 2018 David Lapp Product Manager Oracle Spatial and Graph Siva Ravada Senior Director of Development Oracle Spatial and Graph

Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Using Spatial in Oracle Cloud with Developer Tools and FrameworksSpatial and Graph Summit 2018

David LappProduct ManagerOracle Spatial and Graph

Siva RavadaSenior Director of DevelopmentOracle Spatial and Graph

Page 2: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Safe Harbor StatementThe 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 3: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Agenda

Using Spatial with…

• ORDS

• Python

• Application Container Cloud Service

Page 4: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

What is ORDS

• Java J2EE mid tier application– Also supports “Standalone” mode for development

• For input, maps/binds URI to SQL and PL/SQL• For output, transforms results to JSON and other formats

4

Oracle REST Data ServicesHTTP(S) client Oracle Database

SQLMap & BindURI

JSON Transform to JSON SQL Result Set

Page 5: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Oracle REST Data ServicesArchitecture

• Standard webserver layout• Implements Java Servlet• Deploys to WLS, Glassfish, or Tomcat• Embedded Jetty for standalone operation

Oracle Confidential – Internal/Restricted/Highly Restricted

WLS, Glassfish,Tomcat

ORDS

ApacheStatic Files-HTML, CSS, JS

/hr/empJSONBinaryHTML…

HTTP(s) Results

JDBC

Page 6: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Oracle REST Data ServicesHTTP(s) API App-Dev with Relational Tables in Oracle Database

{ “custno”: 1001,“name”: “Scott King”,“address”: “500 Main street, Innovation CA”,“orders”: [ { “orderno”: 404,

“orderdate”: “Feb 27, 2014”,“status”: “in process”} } }

{ “orderno”: 303,“orderdate”: “Feb 26, 2014”,“status”: “in process”} ] }

JSON

HTTP(s)

https://myhost/ords/hr/customerorders/1001Oracle REST

Data ServicesSQL

ORDS maps standard URI requests to corresponding relational SQL (not schemaless): e.g. SQL SELECT from customers and orders table.ORDS also transforms the SQL results into the highly popular JavaScript Object Notation (JSON), other formats include HTML, binary and CSV.

Fully committed to supporting any and all standards required by Fusion / SaaS / FMW; we are actively engaged in the ongoing dialog.

SQL result to JSON

transformation

URI Request or HTTP(s) post mapped to SQL request

JDBC Connection

Pool

Oracle Database

URI ModuleTemplateContext Root

Page 7: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Demo

Page 8: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

https://oracle.github.io/python-cx_Oracle/

https://github.com/oracle/python-cx_Oracle/blob/master/samples/InsertGeometry.py

Direct binding of Python objects to SQL objects including SDO_GEOMETRY

Page 9: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Oracle Application Container Cloud Service

Go

Ruby

NodeJava

Python.NETPHP

Page 10: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Oracle Application Container Cloud Service

• Self contained• Single launch point• Launch command in manifest.json

App packaged for ACCS (zip, .tgz, or tar.gz)

• Memory• # of instances• Bindings to other Oracle Cloud services

(can also set these in UI or REST API)

Deployment.json (optional)

Page 11: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Page 12: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Page 13: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Demo

Page 14: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

https://cloud.oracle.com/en_US/application-container-cloud/videos

Page 15: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

https://docs.oracle.com/en/cloud/paas/app-container-cloud

Page 16: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Other Wed/Thurs Spatial Sessions

Wednesday

• Easy To Use Self Service Maps in Oracle Database Cloud (C. Palmer, L. Qian) 4:30pm

Thursday

• Spatial analytics with Oracle DV, Analytics Cloud, and Database Cloud Service (D. Lapp) 12:00pm

• The Role of Master Data Management (MDM) for Data Centric Automation Strategies (Bechtel) 1:30pm

• Spatial Analytics with Spark & Big Data (S. Ravada) 2:30pm

• Using GeoJSON in the Oracle Database (A. Godfrind) 3:45pm

*All sessions in room 103 unless otherwise noted

Page 17: Using Spatial in Oracle Cloud with Developer Tools and ... · commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Thanks for attending!