Topology in the Geodatabase – an...

59
Topology in the Geodatabase – an Introduction Erik Hoel Doug Morgenthaler ESRI Super Secret Topology Laboratory, May 2012

Transcript of Topology in the Geodatabase – an...

Page 1: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology in the Geodatabase

– an Introduction

Erik Hoel Doug Morgenthaler

ESRI Super Secret Topology Laboratory, May 2012

Page 2: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Agenda

• ArcGIS Topology defined

• Validating a topology

• Editing a topology

• Geoprocessing tools

• Ephemeral topologies

• Data model design and performance

• Topology at 10.1

• Various cheesy demos

Page 3: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

ArcGIS Topology Defined

Page 4: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

ArcGIS Topology

• Fundamentally, topology is used to manage how a set of simple feature classes share geometry

Page 5: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

What Happens to the Features?

• Nothing

• No change to storage of features

• No change to behavior of features

• So, what changes?

Page 6: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

What Changes with a Topology?

• Topology tracks edits you make to the features

• Flags areas that have been modified

• Validate Topology command analyzes the edited areas and evaluates the rules

• If a rule is violated, a topology error feature is created

• You correct the errors or mark them as exceptions to the rule (or you may ignore the errors altogether)

Page 7: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology Rules

• Define integrity rules and constraints for the feature classes

• Can include point, line and polygon features

• Evaluated when the topology is validated

• Violations are expressed as topology errors

• 30+ different rule types - ~15 ArcGIS Topology rules can emulate coverage model - More may follow

• It is not possible to create custom rules

Page 8: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Rules to Model Coverage Topology

• Arc rules - Line must not have dangles - Line must not intersect or touch interior - Line must not have pseudos - Line must be single part - Line must not self-intersect

• Arc-Node rules - Line endpoint must be covered by point - Point must be covered by line endpoint

• Polygon rules - Polygon must not have gaps - Polygon must not have overlaps - Polygon must be covered by line - Line must be covered by boundary of polygon

• Region rules - Polygon must be covered by

boundary of polygon

• Route rules - Line must be covered by feature class

of line

• Label Rules - Point must be properly inside polygon

Page 9: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Dirty Areas

• Define locations where the spatial integrity of the topology is unknown

- I.e., validate has not been run following edits - Used to optimize the validate process

• May contain existing or undiscovered topology errors - A clean area does not contain any undiscovered errors

• Stored in the geodatabase

• Created as a byproduct of editing features in the topology

• Created when: - Geometry changes

- Subtype changes

Page 10: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Cluster Tolerances

• Cluster tolerance is a property of the topology - cannot be set on a per feature class basis

• Minimum cluster tolerance is the default

• Support separate cluster tolerances for XY and

Page 11: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Cluster Tolerances

• NOT an upper bound for point movement

• Instead, a lower bound for line to line and point to line separation

• Used during validation to ensure:

- No two points are closer than the cluster tolerance

- No point is closer than the cluster tolerance to a line of which it is not

an endpoint

- No two lines intersect except at their endpoints

Page 12: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology Ranks

• Each feature class has a rank

• Ranks are used to establish a priority ordering

• Vertex with the highest rank determines the cluster location

• Nothing is sacred

• Ranks supported for - XY - Z

Page 13: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Validating a Topology

Page 14: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Validation

• Integrates the geometries:

- Segmentize the geometries - Cracking and clustering

(this may update the geometries of the features)

• Evaluates topology rules

• Generates topology errors

• Deletes errors if rules are no longer violated

• Removes validated portions of dirty area

Page 15: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Cracking and Clustering

• Can go through a number of iterations - Maximum of six iterations

• In each iteration, a point may move no further than the cluster tolerance times the square root of two

- Maximum movement is 6 * tolerance * sqrt(2) - The probability of this occurring is completely negligible - Point movement should be considered a statistical parameter, much

like the standard deviation for a normal distribution

Page 16: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Validation

• Any part of the dirty area can be validated

• Not required to validate before saving changes or reconciling

• Users can define their own workflow - Validate after every edit operation

- Validate once prior to saving

- Validate once a week

Page 17: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Validation

• A vertex may move up to the square root of 2 (~1.4) times the cluster tolerance during each iteration of cracking and clustering

- Thus, two vertices that are separated by ~2.8 times the cluster tolerance may be clustered together

Cluster tolerance * 1.4 * 2 = 2.8

1.4 1.4

V1

V2 1

1

Cluster tolerance: 1

2.5

Page 18: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Validation Example

V2

V3

V5

V4

V2

V3

Three endpoint vertices and one line with specified priorities

V1 and new point V6 are not clustered (V1 is in feature class with higher rank) Cluster (snap) V2, V3, V4, V5 Crack (insert 2 new vertices in polyline)

V1

V4

V5 V6

Rank 1

Rank 2

Rank 2

Rank 2

Page 19: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Z-Aware Data

• Two different models based on Z-cluster tolerance

• “Terrain” model - All coincident vertices share a single elevation - Use a large Z-cluster tolerance

• “Building” model - Coincident vertices may or may not have common elevation value - Use a smaller Z-cluster tolerance

Page 20: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Clustering Z-Aware Features

If neither point moved farther than the cluster tolerance the cluster is formed

Because the two vertices were of the same rank we average the z-values

Z = 5

Z = 15

Z = 5

Z = 15

Z = 5

Z = 10 Z-Cluster tolerance = 5

Z-Rank = 1 Z-Rank = 2

Z = 10

Z = 5

Vertices of lower ranks never influence vertices of higher ranks, only the lower rank Z can be adjusted

Because the Z of the lower rank vertex did not have to move more than the tolerance, the cluster is formed and it inherits the

Z of the higher vertex

(note: sqrt(2) factor does not apply to z clustering process)

Page 21: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology Errors

• Created during validate when a topology rule is violated

• Contain information necessary to: - Understand the rule

violation - Draw the rule violation

• Have geometry based on violated rule type

Page 22: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology Errors

• Visible through the topology layer

• Cannot be deleted by the user

• User has three options: - Leave the error - Fix the error - Elevate the error to exception status

- E.g., rule applies everywhere except ‘here’

Page 23: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology Editing

Editing a Topology

Page 24: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Hopefully, another decent demo

Page 25: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Versioning

Versioning a Topology

Page 26: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Versioning

• Topology is fully supported in the versioned environment - Multiple simultaneous editors of same feature

• No restriction on reconciling and posting only fully validated topologies

- Dirty areas and errors correctly handled

• Reconcile will result in the areas containing new or updated features becoming dirty

- Subsequent validation is fast as integrate (cracking and clustering) typically does not need to update the feature geometries

Page 27: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Versioning Example

Validate the new dirty area in DEFAULT Example with the No Overlaps rule Create a child version off of DEFAULT Edit polygon P2 in the child version Edit DEFAULT – create new polygon P3 Validate the new dirty area in the child

P1 P2 DEFAULT version

P1 P2

child version

P2’ P1 P2

P3

DEFAULT version

P1 P2 P2’

P3

Reconcile child with DEFAULT

Validate dirty area – error detected

Page 28: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Versioning Workflow

• Workflow is critical with versioning

• Recommended workflow:

1. Load all the data 2. Define the topology 3. Validate the entire topology 4. Finally, register the topology as versioned

• Bonus question: Why?

Page 29: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Geoprocessing Tools

Page 30: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Easier Schema Management with GP Tools

• Improved topology management at 10.1 - Change the schema for a versioned

topology without un-versioning the topology

- New tool for exporting topology errors to a set of point, line, and polygon feature classes

• Like all Geoprocessing tools, these are scriptable in Python, and may be used with the GP Service

Page 31: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Geoprocessing Tools

• There is a variation of the Validate operation called “Integrate”, but only applies the cracking and clustering tolerance to a collection of feature classes

- It updates the geometry of every feature within each feature class as a result of running all of the features through the Topology Engine

• There are GP tools to perform bulk editing - These are basically the ARC/INFO capabilities

found within ArcEdit - Some of the more interesting are “Extend Line”

that extends undershoots, and “Trim Line” that removes overshoots (dangles)

Page 32: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Geoprocessing Tools

• These tools output new feature classes based upon basic topological operations:

- Feature To Line - Generates a planar output of the lines of a collection of input polygons

and/or lines (e.g., generating the Arcs)

- Feature To Polygon - Generates a planar output of the polygons of a collection of input

polygons and/or lines with a single point feature class providing the attributes (like ARC/INFO CLEAN)

- Polygon To Line - Generates the planar output of lines from a single polygon feature class

assigning the left and right of the polygon to the lines (like the Arcs of a Coverage)

Page 33: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Ephemeral Topologies

• Topologies that are short lived and intended to support QA/QC processes on data prior to incorporation into another controller dataset

- E.g., geometric networks

• Once data is considered good, the topology is deleted and the participant features are then incorporated into another dataset

Page 34: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Data Model Design

Good Ideas and Bad Ideas

Page 35: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Good Ideas

• Choose your spatial domain carefully - Resolution should be much smaller than data capture accuracy

• Use the default cluster tolerance

• Couple with network dataset for network routing

• Model only those relationships that are important

• Minimize class count and utilize subtypes - Cursors are expensive

Page 36: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Good Ideas

• Avoid classes containing small number of large features - Nation or state polygon

• Consider periodic GP tools for QA/QC - Avoidance of large polygons (e.g., nation or state)

• Always prototype the data model

Page 37: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Bad Ideas

• Using a topology with a very large cluster tolerance to clean up bad data

- Instead, use GP tools (e.g., Integrate)

• Coincident geometrically identical features

- Stack of polygons representing a multi-story condo with no-overlap rule

• Extremely small features - Approximately cluster tolerance

size

Page 38: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology at 10.1

• Support for schema changes to versioned topologies without having to un-version the feature dataset

- Add a feature class to or remove one from the topology - Add or remove a topology rule - Change tolerance or rank

• New GP tool (Export Topology Errors) that allows you to export topology errors as feature classes

• Improved editing tools for maintaining topological data - According to Doug, some users are stoked…

Page 39: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Topology Summary

Page 40: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Summary

• Very flexible - You pick the topology rules - You decide how to handle errors - You control the workflow - You can extend the functionality

• Easy to use - Wizard for defining - Topological editing tools - Error correction tools

Page 41: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Summary

• High performance - User controlled validation process - Incremental validation

• Scalable - Nationwide datasets - Versioned RDBMS

• Complete geodatabase integration - Versioning - Copy/paste, XML import/export - Replication - Distributed geodatabases - ArcGIS Server

Page 42: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Steps to Evaluate UC Sessions

• My UC Homepage > “Evaluate Sessions”

• Choose session from planner OR

• Search for session

• Offering IDs - Tuesday – 603 - Wednesday – 696

www.esri.com/ucsessionsurveys

Page 43: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for
Page 44: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Use Slides to Lead not to Read

• Tell a Story • Know Your Target Audience • Avoid Overloaded Content

Keep It Simple!

Page 45: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Guidelines

Color Swatches

Use Esri Branding Colors as theme colors (see presenter’s notes for the instruction of how to add the Esri theme and theme colors)

Projector Color Guidelines

Use the sRGB video mode on the projector. Most projectors have this setting.

For Help and Additional Resources http://arczone/resources/presentations.cfm

Page 46: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Technical Workshops |

Esri International User Conference San Diego, California

July __, 2012

Page 47: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for
Page 48: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for
Page 49: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for
Page 50: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Sample User Screens Layout

Railroads Oil Platform Building/Room

Utility Network University Underground Utilities

Switzerland Norway Panama

Germany Pennsylvania Texas

Page 51: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

ArcGIS 10.1 Themes

• Online • Desktop • Server • Mobile • Developer • Solutions

Cloud

Server Mobile

Desktop

Web

Page 52: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Arrows for Connecting Items

Arrows

Arrows for Connecting Large Concepts

Page 53: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Shapes for Diagrams

ArcGIS

ArcGIS

ArcGIS

ArcGIS

ArcGIS

ArcGIS ArcGIS

ArcGIS

ArcGIS

ArcGIS

ArcGIS

ArcGIS

Quick Style: Subtle Effect

Quick Style: Moderate Effect

DON’T APPLY EFFECTS from the Design tab

Page 54: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Shapes for Diagrams (continued)

Circle behind a group of objects

Content box for each tier (see sample diagrams)

Optional: Use as a frame around showcased screenshots

Cloud optimized for use behind diagrams

Cloud for general diagram

Page 55: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Access the Entire Icon Library

Over 110 items added in 2011 • 535 total icons available for Esri use

• Browse and search from any Microsoft Office application

New! Read-me PDF with complete instructions \\pizzabox.esri.com\space\•Diagrams\Elements\

Page 56: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

ArcGIS Desktop Mashups

Explorer Map

Map Map

Web Map

Open Standards

Web Map Web Map

Web Map

Browser

Web Blog Web Blog

ArcGIS Desktop Authors

Raster Files

Mashups

Raster Files Web Map Map Web Map Map Web Map

Map Web Map Map Web Map

Map

A Selection of Frequently Used Icons

ArcGIS Online

Web Map

Page 57: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Globes

Layers

CD/DVD

Files

Files

Models

Internet/Cloud

Databases

Table

Network Legend

Page 58: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Business Partner

Education

Professional Services

Professional Services

Designing & Planning

Situational Awareness

GIS User Mobile GIS User

Education

Page 59: Topology in the Geodatabase – an Introductionproceedings.esri.com/library/userconf/proc12/tech-workshops/tw_2002.pdfTopology Rules • Define integrity rules and constraints for

Data Appliance

Data Server

GIS Users

Mashups

Geodatabase Web GIS