Robotron Datenbank-Software GmbH Geographical visualization in APEX Bianca Böckelmann DOAG, Nürnberg 17.11.2015
Facts and Figures Robotron Datenbank-Software GmbH Year of formation 1990 Legal form GmbH Number of employees 365 (Status 10/2015) Capital stock Turnover 2014 Turnover 2015 2,4 Mio. EUR 31,2 Mio. EUR 32,8 Mio. EUR Headquarters Oracle-Partner ISO 9001 certified Congress and Training center
The Range of Services of Robotron Methodical and technological responsibility Comprehensive expertise of industry-specific business processes
Agenda Predefined maps in APEX Maps with Oracle MapViewer MapViewer architecture Creating the map Configuration of MapViewer Map integration in APEX
Predefined maps in APEX Integration of AnyChart AnyMap Interactive Maps
Predefined maps in APEX APEX 5.0
Predefined maps in APEX APEX 5.0
Predefined maps in APEX
Predefined maps in APEX Necessary columns: link, name, value
Predefined maps in APEX
Predefined maps in APEX Defining measure intervals by creating several series SELECT 'f?p=&app_id.:5:::::p5_state:' geo_name link, geo_name label, value FROM demo_data where value < 500000 where value between 500000 and 1000000 where value > 1000000 < and > are HTML-encoded
Predefined maps in APEX Defining colours for map
Predefined maps in APEX Available map data http://6.anychart.com/products/anychart/docs/users-guide/index.html
Maps with Oracle MapViewer MapViewer architecture [1]
Maps with Oracle MapViewer MapViewer architecture Oracle Locator (Oracle DB 12.1) Available with all Oracle Database editions Object type SDO_GEOMETRY und its object type methods 2D geometry support Spatial index SDO_GEOM package subprograms Spatial utility functions (SDO_UTIL package) Spatial aggregate functions Coordinate system transformation subprograms (SDO_CS package) Oracle Spatial (Oracle DB 12.1) Available only with Oracle Database Enterprise Edition (includes all Locator features and additional) Network and topology data model 3D geometry support Web Feature Services (WFS) OpenLS: Routing, Geocoding, Yellow Pages GeoRaster support... [3]
Maps with Oracle MapViewer Creating the map Layers in a map [1] Theme based layers Web Map Service (WMS) Theme Open Street Map, Google Maps, Web Feature Service (WFS) Theme JDBC Theme table with spatial column of type SDO_GEOMETRY [2]
Maps with Oracle MapViewer Creating the map Creating a JDBC theme free of charge Shape-files of Germany: Open Data from BKG (Bundesamt für Kartographie und Geodäsie) administrative regions [4] topographical map [4]
Maps with Oracle MapViewer Creating the map Creating a JDBC theme 1. Importing geodata into table 2. Editing geodata Oracle Map Editor Database functions e.g. SDO_GEOM.SDO_UNION 3. Inserting metadata into USER_SDO_GEOM_METADATA Geo table and column Minimum bounding rectangle SRID (SDO_COORD_REF_SYS) Importing ESRI Shapefile with Oracle Map Builder CREATE TABLE GEO ( GEO_NAME VARCHAR2(100 CHAR), GEO_KEY VARCHAR2(12 CHAR), LEVEL VARCHAR2(10 CHAR), GEOMETRY SDO_GEOMETRY );
Maps with Oracle MapViewer Creating the map Creating a JDBC theme 4. Creating spatial index 5. Creating the theme (USER_SDO_THEMES) CREATE INDEX GEO_IDX ON GEO (GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX; <?xml version="1.0" standalone="yes"?> <styling_rules> <rule> <features style="c.state"> (LEVEL = STATE ) </features> <label column="geo_name" style="t.state"> 1 </label> </rule> <rule> <features style="l.state"> (LEVEL = STATE ) </features> </rule> </styling_rules> XML definition of theme
Maps with Oracle MapViewer Configuration of MapViewer MapViewer administration http://<host>:<port>/mapviewer Adding permanent database source in mapviewerconfig.xml
Maps with Oracle MapViewer Map integration in APEX 1. Creating a new HTML-Region 2. Adding MapViewer JavaScript library (V2) and own JavaScript code referencing region by id
Maps with Oracle MapViewer Map integration in APEX
Maps with Oracle MapViewer Demos MapViewer 12c Samples http://slc02okf.oracle.com/mvdemo/ demo/oracle_maps_demo_v2.jsp
Literature [1] Oracle, Chuck Murray: Fusion Middleware User's Guide for Oracle MapViewer, 12c Release 2 (12.2), E60152-01, October 2015 [2] Oracle, Chuck Murray: Fusion Middleware User's Guide for Oracle MapViewer 11g Release 1 (11.1.1), E10145-08, March 2013 [3] Oracle, Chuck Murray: Spatial and Graph, Developer's Guide 12c Release 1 (12.1), E49172-04, November 2014 [4] Bundesamt für Kartographie und Geodäsie: Open Data, last accessed 12.11.2015 http://www.geodatenzentrum.de/geodaten/gdz_rahmen.gdz_div? gdz_spr=deu&gdz_akt_zeile=5&gdz_anz_zeile=1&gdz_unt_zeile=14&gdz_user_id=0
Further presentations at DOAG Conference 2015 Java EE Security für APEX mit Oracle REST Data Services Rico Haupt - 17.11.2015, 11 am, Room Prag Focus: Middleware MS WPF Entwicklung unter Verwendung von Oracle Technologien Torsten Bartuschk - 17.11.2015, 1 pm, Room Budapest Focus: Development Erfolgreich konsolidieren auf der Oracle Database Appliance Marco Mischke - 17.11.2015, 4 pm, Conference room on the ground floor Focus: Infrastructure BI Publisher-Praxis: Komplexe Reports und Apex-Dokugenerator Frank Effenberger - 17.11.2015, 4 pm, Room Helsinki Focus: BI & DWH Erfahrungsbericht einer Migration nach Oracle 12c Thomas Lehmann - 18.11.2015, 10 am, Room Kiew Focus: Oracle ODA virtualisiert: Erfahrungen aus der Praxis Marco Friebe - 18.11.2015, 1 pm, Room Budapest Focus: Infrastructure Integration von C++-Legacy-Anwendungen mit Java via JNI Matthias Müller - 19.11.2015, 10 am, Room Krakau Focus: Java Tipps und Tricks bei der Nutzung von EclipseLink (JPA) Falko Steglich - 19.11.2015, 1 pm, Room Budapest Focus: Java
Further information Visit us at Robotron-booth (Level 2, booth 226) Robotron Oracle Support Engineered Systems Business Intelligence and Data Warehouse solutions Own products like BIArchitect
Bianca Böckelmann Project Manager BI/DWH Robotron Datenbank-Software GmbH Stuttgarter Straße 29 01189 Dresden Fon: +49 351 25859-2463 Fax: +49 351 25859-3699 bianca.boeckelmann@robotron.de www.robotron.de Questions?