oracle spatial and arcgis

1

Upload: vukhanh

Post on 05-Jan-2017

241 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle Spatial and ArcGIS

Baltimore, MD

ESRI MUG Conference - 2015

Oracle Spatial and ArcGIS by

Yongmin Yan, Tracy McLane

Copyright © 2015 Bechtel

INFRASTRUCTURE

MINING & METALS

NUCLEAR, SECURITY &

ENVIRONMENTAL

OIL, GAS & CHEMICALS

ESRI MUG Conference – 2015 December 8, 2015

Photo: Ivanpah Solar Electric Generating Facility

35° 33' 51.000" N | 115°28' 22.000" W

Page 2: Oracle Spatial and ArcGIS

Top U.S. construction contractor by Engineering News-Record (ENR) for

17 straight years

Revenue of $37.2 billion in 2014

58,000 employees world-wide

Four Global Business Units (GBUs) ─ Infrastructure

─ Mining and Metals

─ Nuclear, Security & Environmental

─ Oil, Gas & Chemicals

Signature Projects: Hoover Dam, English Channel Tunnel, Hong Kong

International Airport, Ivanpah Solar Energy Site, Riyadh Metro Project

An Introduction to Bechtel

© 2015 Bechtel | 2 ESRI MUG Conference - 2015

Hoover Dam

Channel

Tunnel

Page 3: Oracle Spatial and ArcGIS

Established as a Center of Technical Excellence for the entire company in

March 2007, within the Geotechnical and Hydraulic Engineering Services

(G&HES) organization by GIS Discipline Lead, Tracy McLane

Develop GIS standards and procedures and best practices

Centrally manage GIS licenses and Enterprise GIS infrastructure

Cross-disciplinary support for 4 Global Business Units (GBUs):

Infrastructure

Mining and Metals

Nuclear, Security & Environmental

Oil, Gas & Chemicals

Bechtel GIS Center of Excellence

© 2015 Bechtel | 3 ESRI MUG Conference - 2015

Page 4: Oracle Spatial and ArcGIS

GIS Data Configuration Management Processes and Content Sharing (Retrievability)

Scalable, Multi-Tiered Data Security (System, Database, Feature)

Return on Investment (ROI) on GIS Software and Spatial Data

Prevent Duplicate Efforts on Data Purchase and Preparation between Data Stewards

GIS User-Specific Experience

GIS Data Model Standards Facilitate Automation

Interoperable Data Strategy

Enterprise Spatial Data Deployment Strategy with Oracle Spatial

© 2015 Bechtel | 4

Sources:

McLane, Tracy and Yongmin Yan. Enterprise Spatial Data Deployment Strategies in a Global

Engineering Environment – The Bechtel Experience. The 17th International Conference on

GeoInformatics 2009. Johnson Center, George Mason University, August 12th-14th, 2009 Fairfax, VA,

USA

McLane, Tracy, Yongmin Yan and Robin Benjamins. Interoperable Deployment Strategies for

Enterprise Spatial Data in a Global Engineering Environment. Bechtel Technology Journal,

An Independent Analysis of Current Technology Issues. Volume 2, No.1, December 2009.

ESRI MUG Conference - 2015

Page 5: Oracle Spatial and ArcGIS

ArcSDE System Tables SDE.*

Oracle MDSYS.USER_SDO_GEOM_METADATA

BecGIS GIS Layer and

Map Catalogs

Spatial Data Catalog

© 2015 Bechtel | 5 ESRI MUG Conference - 2015

Page 6: Oracle Spatial and ArcGIS

Build Index from SQL

Invalid Geometries

Oracle Spatial

Reference ID (SRID)

Spatial Index

© 2015 Bechtel | 6 ESRI MUG Conference - 2015

Page 7: Oracle Spatial and ArcGIS

ArcSDE DBTUNE – identify geometry and index Oracle tablespace storage

Oracle Spatial Geometry

Export/Copy Data from ArcGIS

Configuration Keywords

© 2015 Bechtel | 7 ESRI MUG Conference - 2015

GEOMETRY_STORAGE "SDO_GEOMETRY"

Page 8: Oracle Spatial and ArcGIS

Limit of Spatial Table (Feature Class) Name Length

Attribute Column Name Length

ObjectID

GlobalID

GUID

Table and Column

© 2015 Bechtel | 8 ESRI MUG Conference - 2015

Page 9: Oracle Spatial and ArcGIS

Filter Data

─ Filter Spatial Features/Records

─ Filter and Columns

─ Secure Underlying Data and Database Structure

User-based Access and Experience

─ Decode Attribute Values from Oracle Look-up Tables

DECODE (photograph_location_point.fld_wkr_d, d_fldwkr.domainvalu, d_fldwkr.domaindesc,'UNKNOWN') field_worker

─ Alias Columns

Performance Considerations: Temporary Tables

Spatial Views - Benefits

© 2015 Bechtel | 9 ESRI MUG Conference - 2015

Page 10: Oracle Spatial and ArcGIS

Bechtel

Enterprise

GIS

Oracle Spatial Data

Warehouse

Tabular Data

Spatial Data

A spatial view is a “window” into the

GIS database which gives users a

custom look at the geometries and

related information they need to use.

Spatial Views

GIS Client

Aggregated Data

Examples of Spatial Attributes &

Aggregation in Spatial Views:

SDO_GEOM.SDO_LENGTH

SDO_GEOM.SDO_AREA

SDO_GEOM.SDO_INTERSECTION

McLane, Tracy. The Use of Spatial Views for the Extension of Map Cube Operators in the Global Enterprise GIS Environment.

Association of American Geographers (AAG) Annual Meeting 2010. The Marriott Hotel and the Omni Shoreham Hotel.

April 14-18, 2010. Washington DC, USA.

Spatial Views – Oracle Spatial and Graph Data Delivery

Page 11: Oracle Spatial and ArcGIS

This SQL example creates an Oracle Spatial view

using SDO_INTERSECTION to assign field geometry

features to a geographic index. When combined with

other geographic indices, these attributes can be joined

back to the spatial features and commodity information

in a spatial view and be used as “GROUP BY” columns

for summarizing quantity statistics:

CREATE OR REPLACE VIEW VGIS_AN_FIELD_COLLECT_PT_GEO1

AS SELECT

input.OBJECTID OBJECTID,

input.FEAT_NAME FEAT_NAME,

input.FEAT_DESC FEAT_DESC,

target.GEOG1_INDEX TILE_CODE,

target.FEAT_NAME TILE_NAME,

SDO_GEOM.SDO_CENTROID(input.shape,0.001).SDO_POINT.X COORD_X,

SDO_GEOM.SDO_CENTROID(input.shape,0.001).SDO_POINT.Y COORD_Y,

SDO_GEOM.SDO_INTERSECTION(input.shape, target.shape, 0.005) SHAPE

FROM

SCPX.VGIS_IM_FIELD_COLLECT_PT input,

VGIS_GD_MAP_INDEX_AREA_GEO1 target

WHERE

SDO_GEOM.SDO_AREA(SDO_GEOM.SDO_INTERSECTION

(input.shape, target.shape, 0.005),0.005) is not null;

© 2015 Bechtel | 11

Spatial Views – Spatial Analytics

Tracy McLane. Innovative Approaches to Modeling GPS/GNSS Construction Data with

Oracle Spatial and Graph. Oracle BIWA and Oracle Spatial Summit 2015. January 27 - 29,

2015. San Francisco, California.

Page 12: Oracle Spatial and ArcGIS

I. Minimize the number of spatial records / features for the database (decreases storage size)

Dissolve on Layer name, using multipart option Break the features back into single part

**Densify features from CAD like roads, rivers, pond, basin or any features that is comprised of arcs, b-spline curves or other complex elements II. Use Identity to create more uniform size of features for the database

More uniform geometry allows Oracle R Tree spatial indexing to better improve performance and refresh times

III. Attribute indexing on:

Attributes used in attribute or spatial view criteria Attributes used as primary or foreign key Attributes used for map symbology

Preparing and Tuning Spatial Data

© 2015 Bechtel | 12 ESRI MUG Conference - 2015

McLane, Tracy. “Brown Bag: Tuning Spatial Data II, Enterprise Data Processes and

Packaging GIS Data with MXD Copier” GIS Brown Bag, July 29, 2008.

Page 13: Oracle Spatial and ArcGIS

SDO_GEOM package

SDO_RELATE

Analytical Functions

Transformation Function: SDO_UTIL.AffineTransforms

Spatial Functions & Operators

© 2015 Bechtel | 13

3-D 2-D

ESRI MUG Conference - 2015

Page 14: Oracle Spatial and ArcGIS

Pros & Cons

Data House

Web Viewer

Versioned or Non-versioned Data

© 2015 Bechtel | 14 ESRI MUG Conference - 2015

Page 15: Oracle Spatial and ArcGIS

Integration with other Database Functions

Performance

Flexibility

PL/SQL Scripting

Stored Procedures & Jobs

© 2015 Bechtel | 15 ESRI MUG Conference - 2015

Example of PL/SQL Cursor Loop for SDO_GEOMETRY Creation:

LOOP

FETCH <cursor> INTO iRecID,iCoordX,iCoordY,iCoordZ;

EXIT WHEN curRow%NOTFOUND;

INSERT INTO <SDO_GEOMETRY feature class>

(OBJECTID, COORD_X, COORD_Y, COORD_Z, UPLOAD_TIME, SHAPE)

VALUES

(iRecID ,iCoordX,iCoordY,iCoordZ, SYSTIMESTAMP,

SDO_GEOMETRY (3001,null,

SDO_POINT_TYPE (iCoordX,iCoordY,iCoordZ), null,null) );

iSDONum := iSDONum + 1;

END LOOP;

Source Coding: Tracy McLane

Page 16: Oracle Spatial and ArcGIS

© 2015 Bechtel | 16

Source: Yan, Yongmin, Tracy McLane

and Joe Betit. Survey and GIS

Integration for a Large Construction

Project Using ArcGIS Server. ESRI Mid-

Atlantic User Group (MUG)Conference,

December 6–7, 2011, Baltimore Marriott

Hunt Valley Inn in Hunt Valley, MD.

ArcGIS Server Web Services

Page 17: Oracle Spatial and ArcGIS

BecGIS Spatial Data Tool

BecGIS Feature-Level Based Metadata

Metadata for Maps

Map & Layer Relationship

Bechtel’s Own Tools

© 2015 Bechtel | 17 ESRI MUG Conference - 2015

Page 18: Oracle Spatial and ArcGIS

Spatial Data Tool Icons

• Windows Authentication

• Search both Bechtel Project & Public

(USGS, NOAA, NASA, etc.) Spatial Data Sources

Administration/Metadata Tool

Search Spatial Vector Data Search for Map Projects

Remap Project Database Connections

Help

About

Search by project/data source and theme/place keywords

BecGIS Spatial Data Tools for Enterprise GIS

ESRI MUG Conference - 2015

Page 19: Oracle Spatial and ArcGIS

Engineering Committee Meeting – May 20, 2009

• List of Layers

• Metadata Review of Data Pedigree

• Load the Layer into Client Software

© 2015 Bechtel | 19

BecGIS Spatial Data Tools - Metadata

ESRI MUG Conference - 2015

Page 20: Oracle Spatial and ArcGIS

Yongmin Yan [email protected]

Tracy McLane [email protected]

Questions?

© 2015 Bechtel | 20 ESRI MUG Conference - 2015