Data managing and Exchange GDB

63
Data managing and Data Exchange: Geodatabases and Interoperability Jaime Nieves Isaac Medel Esri Spain European User Conference Madrid 2011 esri

description

Presentation on Esri European User Conference 2011 by Jaime Nieves and Isaac Medel.

Transcript of Data managing and Exchange GDB

Page 1: Data managing and Exchange GDB

Data managing and Data Exchange: Geodatabases

and Interoperability Jaime Nieves Isaac Medel Esri Spain

European User Conference Madrid 2011 esri

Page 2: Data managing and Exchange GDB

Session highlights

• An Overview of the Esri Geodatabase - The basics about databases in ArcGIS - Data model and object types

• Geodatabase Workflows & Editing - Geodatabase levels - Versioning, replication and historics

• Database Administration - Database creation and managing

• Data storage and connection - Connection approaches: Clients and databases - Spatial types and interoperability

Page 3: Data managing and Exchange GDB

Geodatabase basic concepts

Page 4: Data managing and Exchange GDB

Geodatabase

• Geographic Data Store - Scalable, multi-user

• Core ArcGIS Data model

• Transactional model for

GIS workflows

• COM Components for data accesibility

Dimensions

Parcels

Networks Survey

Addresses

Annotations Vectors

3D Objects

Topology

CAD Raster

Terrain

Attributes

Cartography

Page 5: Data managing and Exchange GDB

Data management approach

• Geodatabase built on a table structure - Spatial Data Types & SQL - Relational Integrity - Scalability, Reliability, Flexibility - Support for continous, large datasets

• Based on the simple feature model - Points, Lines, Polygons - Open Access

Page 6: Data managing and Exchange GDB

Data on Geodatabases

• Esri System Tables - Advanced Business Logic

• Consolidated at 10.0 in 6 single tables. - Improved stability & fast data access - Uses XML columns - Same structure for all GDBs

• Sharing of data model - Schema & Data to XML

XML SQL type

System

Tables

User D

ata

Page 7: Data managing and Exchange GDB

Features and Feature Classes

• Builds on the Relational Model

• A feature is a spatial object

• A feature is an instance of a feature class

• Extended the relational model - Geometry attribute types

A feature class is a table of rows, where each row has a geographic column

Page 8: Data managing and Exchange GDB

Additional geodatabase elements Parcel fabrics Terrain datasets Representations Locators

Feature Classes

Behavior Attribute defaults Connectivity rules Attribute domains Relationship rules Split/merge policy Topology rules

Feature dataset Spatial reference

Relationship classes

Topology

Geometric networks

Raster Datasets

Toolboxes Tool Model Script

Network datasets

Tables

Polygon Route Line Dimension Point Annotation

Geodatabase Elements

Page 9: Data managing and Exchange GDB

Complex data in the Geodatabase

• Multi-part features - Many parts, one record in the table

• 3D Objects - Vertical lines

- Multipatches

• Measurements - M-Coordinate

- Dimensions

• Cartographic representations

• Geodatabase attachments

Topanga Canyon

Sacramento

Placerville

1 3/8"

Page 10: Data managing and Exchange GDB

Complex data in the Geodatabase

• Elevation data - Dynamic TINs (Terrain Datasets).

- LiDAR datasets

• Raster data - Imagery and continuous data

- Mosaic Datasets - Image processing & filtering

- Raster catalogs - Raster files inside a table field

Page 11: Data managing and Exchange GDB

Complex behavior in the Geodatabase

• Validation Rules - Attribute, connectivity and

relationships

• Domains - Ranged or coded values

• Subtypes - Defined as the class level

• Relationship classes - Association between objects

on different classes

Page 12: Data managing and Exchange GDB

Complex behavior in the Geodatabase

• Geometric Networks - Connectivity rules

• Network datasets - Multi-modal networks - Turns, restrictions, costs

• Topology - Set of rules that define spatial behavior - Ensure data integrity

• Parcel fabrics

Page 13: Data managing and Exchange GDB

Behavior: Summary

• You can: - Control the default value and acceptable values for any attribute

(Domains)

- Partition the objects into like groups (Subtypes)

- Instantiate classes with predefined behavior (Dimensions and Annotation)

- Control the general and network relationships in which an object can participate (Relationship Classes)

• Out of the Box in ArcGIS! - Configurable, no programming required

Page 14: Data managing and Exchange GDB

Geodatabase workflows Geodatabase editing

Page 15: Data managing and Exchange GDB

Geodatabase levels

Microsoft Access

2 GB

Windows

Single User

Files

1 to 256 TB per table

Multi-platform

Single User

RDBMS

Variable

Variable

Multi-user

ArcGIS Desktop

File Personal

ArcGIS Server

Workgroup Enterprise

Desktop

Capacity Number of Users

ArcSDE

- Storage

- Capacity

- Platform

- Users editing

Page 16: Data managing and Exchange GDB

Geographic data management

ArcGIS Server

Workgroup Enterprise

Desktop

Capacity Number of users

ArcSDE

Esri technology for managing and accessing geographic data on Relational Database Systems

Page 17: Data managing and Exchange GDB

Geographic data management

ArcGIS Server

Workgroup Enterprise

Desktop

ArcSDE

SQL Server Express

10 Gb Max

Windows

4 / 1

SQL Server Express

10 Gb Max

Windows

10 / 10

DB2, Informix, Netezza Oracle, PostgreSQL & SQL Server

Unlimited

Multi-platform

Unlimited

RDBMS

Capacity

Platorm

Users/Editing

Capacity Number of users

Page 18: Data managing and Exchange GDB

Editing Geodatabases

• ArcGIS datasets in the geodatabase are editable - Modify building footprints in parcel management - Add water mains to a water network - Update land owners information stored in a table - Etc…

• Transaction model for editing in ArcGIS - Edits are performed in an edit session

- Open session – edit – save edits / don’t save edits

- A series of edit operations constitutes a transaction - The transaction is either committed or rolled back

Page 19: Data managing and Exchange GDB

Editing Geodatabases…

• Personal Geodatabases - Mainly single user editing on small datasets - Multiple readers - Editing locks at geodatabase level

- Two editors cannot edit within the same geodatabase at same time

• File Geodatabase - Mainly single user editing small to very large datasets - Multiple readers - Editing locks at the dataset level

- Multiple editors cannot edit the same table or stand-alone feature class at the same time

- Multiple editors cannot edit feature classes in the same feature dataset at the same time

Page 20: Data managing and Exchange GDB

Editing Geodatabases…

• Enterprise Geodatabases - Extend the transaction model with Versions

- Multiuser editing without locking

- Unique isolated view of the geodatabase

• Benefits of versioned editing - Multiple editors, editing over long periods of time

- Undo / Redo

- Archiving

- Replication

Page 21: Data managing and Exchange GDB

Versioning

• Technology that allows multiple users to edit and view data at the same time

- Appears to users as if they have their own copy of a table - Does not apply locks or duplicate data

Version1 Version2

Default

Editor 1 Editor 2

Readers

Page 22: Data managing and Exchange GDB

Workflow in a multi-user editing environment

Version creation

Connect to the version

Editing

Reconcile: ¿conflicts?

Conflict resolution

Remove & Compress

Post

Page 23: Data managing and Exchange GDB

Replicas

• Geodatabase replication extends the concept of versioning to multiple databases.

DFLT

VR1 VR2

DFLT

V1 V2

DFLT

ArcSDE GDB

ArcSDE GDB

File GDB

Two way

One way

Parent Child

ArcSDE GDB

ArcSDE GDB

DFLT

VR1 VR2

DFLT

V1 V2 File GDB

check out check in

Parent

Child

ArcSDE GDB

- Versions in parent and child geodatabases are used as replica versions.

- Changes in this replica versions are transferred during synchronization

Page 24: Data managing and Exchange GDB

Replication types

• Checkout/Check-in replication: - Edits in child replica can be syncronized one single time with

parent replica.

- Uses: Disconected editing; File GDB as a requisite.

• One-way Replication: - Allows data changes to be sent multiple times in a single

direction (parent-to-child or child-to-parent)

- Data in origin GDB are editable; data in destination GDB are read-only.

- Changes in destination GDB are overwritten during syncronization if edits in origin GDB exist.

- Uses: development-staging-production models; data publishing

• Two-way replication: - Allows data changes to be sent multiple times, both ways.

- If the same row is edited in both replica geodatabases, it is detected as a conflict when the replicas are syncronized.

Parent Child

One time

Edit Read

Production Development

Edit A Edit B

Office A Office B

Conflict resolution

SDE SDE

PGDB FGDB

SDE SDE (child-to-parent)

PGDB FGDB

Persist

Persist

SDE SDE

Page 25: Data managing and Exchange GDB

New workflows

• New replication scenarios: - File GDBs can be used as one-way and

check-in/check-out replicas.

- One-way child-to-parent replicas - Multiple sendings from child to parent - Editable data on child GDB; read-only on parent GDB.

- One-way replicas using archiving

- Improved performance and easier management compared to versioning.

SDE FGDB

Page 26: Data managing and Exchange GDB

Resolving syncronization conflicts

• Conflict resolving using Replica Manager - Enables user to decide the geometry and attributes to keep

in case of a conflict. - Uses a visual environment - Merge geometries if there is a conflict on different areas on the same Shape.

Page 27: Data managing and Exchange GDB

Historical versions

• Geodatabase archiving. - Built on Geodatabase versions. - Enables recording and accessing changes made to a subset of data. - No need for storing snapshots for the entire database. - Archiving lives as long as the Version is alive. - Introduces a historical version. - Creation of historical markers possible.

Page 28: Data managing and Exchange GDB

Geodatabase compress

• Maintain database performance and health. - Delete all states that do not participate within a version's lineage.

- Collapse any candidate lineage of states into one state.

- Move rows from the delta tables into the business tables.

DEFAULT

0

v2

v1

v4

Before

0

v1

v2

DEFAULT

v4

After

Page 29: Data managing and Exchange GDB

Database administration

Page 30: Data managing and Exchange GDB

Geodatabase Data Management

• Schema is defined in ArcCatalog - Define feature classes, datasets, relationships, etc - Catalog window in ArcMap @ 10

• Import and convert data from other formats - Shapefile - Coverage - CAD - Raster

• Copy and Paste

• ArcGIS.com

- Import basemaps and layers from galleries, groups…

• Use an esri Data Model or Downloadable Template - Industry specific data models available - Download a geodatabase template from the resource centers

http://resources.arcgis.com

Page 31: Data managing and Exchange GDB

Create an enterprise geodatabase

• Enabling the advanced capabilities of the geodatabase in: - IBM DB2 - Informix - Microsoft SQL Server - Oracle - PostgreSQL

• Enable Enterprise Geodatabase Tool. - Adds the geodatabase to an existing

database and authorizes it

• Create Enterprise Geodatabase Tool. - Creates database and geodatabase

in PostgreSQL and SQL Server

• Python script

Page 32: Data managing and Exchange GDB

Geodatabase administration in 10.1

• New Geodatabase administration dialog box - Manage versions - View and remove connections - View and manage locks - Block new connections

• For system tables: - Rebuild indexes - Update statistics

Page 33: Data managing and Exchange GDB

Managing data in ArcGIS 10.1

• View and manage privileges • View locks on a version

or specific dataset • Rebuild indexes on multiple datasets • Update database statistics

on multiple datasets • Enable editor tracking • One-click spatial table registering

Page 34: Data managing and Exchange GDB

Isaac Medel

Database administration in 10.1

Page 35: Data managing and Exchange GDB

Database storage and connection

Page 36: Data managing and Exchange GDB

From Esri Geodatabases To Esri Clients

ArcSDE ArcGIS Desktop

Page 37: Data managing and Exchange GDB

Direct connect the database

• Client-DBMS connection with an SDE service in the way.

• Process load on the client side, not the server side - Improved CPU & Memory usage on the server. - Higher scalability. - Backwards compatibility. - No need for ArcSDE service

administrattion. - Enables operating system authentication

for your ArcGIS Connections in Oracle geodatabases.

Geodatabase

AppServer

GIS client

Application Server (three-tier)

Direct connect driver

GIS client

Direct Connect (two-tier)

Page 38: Data managing and Exchange GDB

Database compatibility

Page 39: Data managing and Exchange GDB

Geodata

• Geodatabase access through a web connection.

• Exposes remote capabilities for: - Replication.

- Copy (data extraction).

- Query.

Local GDB

Geodata Service

2-way

Internet

LAN

File GDB

SQL Server Express

SQL Server Express

File GDB

Enterprise GDB Enterprise

GDB

Page 40: Data managing and Exchange GDB

Forward compatibility in 10.1

• Updates in 10.1 datasets: - Python scripting with annotation & dimensions - Editor tracking in tables & feature classes - Netwok datasets improvements - Improved mosaic datasets

• Creation of new datasets in 10.0 geodatabases - No upgrade required - Still accesible by 10.0 clients. - 10.0 SP2 recommended

10.0 10.1

Page 41: Data managing and Exchange GDB

Query Layers

• A layer or stand alone table defined by a SQL query

• Provides direct, read-only access to spatial data independent of where it is stored

• Data does not need to be registered with the geodatabase

• Full power of SQL to create feature classes and Tables: - Joins, Spatial Types, Aggregation, Field Derivation

• New tool in 10.1: - Make Query Layer

SELECT Name, City, ShapePoint FROM Hospitals

Page 42: Data managing and Exchange GDB

Isaac Medel

Query Layers

Page 43: Data managing and Exchange GDB

From Any Database To Esri client

Anywhere ArcGIS Desktop

Page 44: Data managing and Exchange GDB

Work with databases in ArcGIS 10.1

• Database connection from Desktop - Work with databases without enterprise geodatabases - Copy & paste between databases and geodatabases - Create & query tables and features in a database - Create views in a database - Publish data to ArcGIS Server

• Database connection dialog box simplified

- Less inputs required - Sharing connection files - Create database connection

geoprocessing tool

Page 45: Data managing and Exchange GDB

Isaac Medel

Connection to databases

Page 46: Data managing and Exchange GDB

From Any Database To Any Client

Anywhere Anything

Page 47: Data managing and Exchange GDB

Feature Services

• Web access to feature geometry • RESTful capabilities:

- Geometry & attribute query - Database editing - Access related records and non-spatial tables

Feature Service Mobile

Desktop

Web

Desktop / Database ArcGIS Server

URL

Web

Page 48: Data managing and Exchange GDB

Spatial Data Server (SDS)

• Low-memory web server. • Exposes geometries, attributes, symbols and templates

from vector data in a database or geodatabase. • Uses feature services to access spatial data. • Available for IIS andJava

Spatial Data

Server

Database

Page 49: Data managing and Exchange GDB

Isaac Medel

Spatial Data Server

Page 50: Data managing and Exchange GDB

From Esri Geodatabases To Any client

ArcSDE Anything

Page 51: Data managing and Exchange GDB

Third-party clients concurrent editing

• Non-versioned Multi-user editing - Table-to-table edition - Short transactions - Simple features

• Versioned and non-versioned editing on the same data.

- “Move edits to base tables” option - Edit from ArcGIS and third-party

applications concurrently. - DEFAULT version stores changes in base tables.

SDE FGDB

Page 52: Data managing and Exchange GDB

Database accessing from third-party clients

GDB APIs

C# Java

ArcSDE GDB Client

Page 53: Data managing and Exchange GDB

GDB developing environments

• Geodatabase ArcObjects: - Application-level logic. - Geometry behavior and integrity. - Programming: C++, Java, .Net (C#, Java), Python

• ArcSDE SDK: - A set of independent libraries for database accessing

from third-party clients. - Programming: C, Java

• Features: - Connections and transactions.

- Geometry operations

- Table management.

- Raster management.

- Change or create the Schema.

- SQL access to Esri’s spatial type.

- Versioning.

- XML storage and search.

Page 54: Data managing and Exchange GDB

File Geodatabase API

• No ArcObjects (no licence).

• Access to File GDB from third-party clients.

• C++ API which enables developers to: - Create, access and delete FGDBs. - Read FGDB Schema - Create Schemas for simple objects. - Read/write data. - Perform alphanumeric and spatial queries - Navigate through relationships. - Work with geodatabase attachments.

http://resources.arcgis.com/content/geodatabases/10.0/file-gdb-api

Page 55: Data managing and Exchange GDB

GDB APIs

C# Java

ArcSDE GDB Client

Database accessing from third-party clients

SQL

SFS (OGC) ISO 19125

ST_GEOMETRY

Page 56: Data managing and Exchange GDB

About ST_Geometry

• UDT available for storage in all databases.

• OGC * and ISO** definition: • SFS (Binary Geometry) 1.1, SFS (Types and Functions) 1.1

• Implemented as OGC Compliant in ArcGIS since 2006.

• Install the ST_Geometry storage type in Oracle or PostgreSQL

• Create Spatial Type tool

* OpenGIS Implementation Specification for Geographic information - Simple feature access - Part 2: SQL option ** ISO/IEC 13249-3 SQL multimedia and application packages - Part 3: Spatial ISO 19125-2:2004 Geographic information -- Simple feature access -- Part 2: SQL option

Page 57: Data managing and Exchange GDB

OGC and Standards

OGC

OGC Client

Non-GIS Client

Page 58: Data managing and Exchange GDB

OGC support in ArcGIS

Category Standards

Map WMS 1.0, WMS 1.1.1, WMS 1.3.0, WMtS 1.0.0, KML 2.1.0, KML 2.2.0, GML 2.1.2, GML 3.0

Feature WFS 1.0.0, WFS 1.1.0, GMLsf 1.1.0, WFS(T) 1.0.0

Metadata CAT CS/W 2.0.1, CAT 1.0, CAT 1.1.1, CAT 2.0.2, GeoRSS 1.0.0, CAT2 AP eRIM 1.0.0, CAT2 ISO AP 1.0.0, CAT2 ebRIM part2 1.0.0

SQL SFS(BG) 1.1, SFS(TF) 1.1

Raster WCS 1.0.0, WCS 1.1.0, WCS 1.1.1

Symbology SLD 1.0

Processing WPS 1.0.0

Encoding Filter 1.0, Filter 1.1

OGC

http://www.esri.com/library/whitepapers/pdfs/supported-ogc-iso-standards.pdf

Any client

Page 59: Data managing and Exchange GDB

OGC support in ArcGIS

Page 60: Data managing and Exchange GDB

ArcGIS supports IT standards

OGC Client

REST / HTTP

Javascript Flash Silverlight

Android iOS WP7 C++

.Net (C#, VB) Java Python

XML UNICODE SQL IPv6

Geocoding Editing Routing Querying

Network analysis Image processing

Spatial Analysis Spatial Statistics Windows

UNIX Linux

WMWare MS Hyper-V Amazon EC2 MS Azure

Page 61: Data managing and Exchange GDB

Isaac Medel

Data for everyone

Page 62: Data managing and Exchange GDB

Thank You

Page 63: Data managing and Exchange GDB