Modelcore
Nine-intersection model
Also called Egenhofer 9-intersection, 9-IM.
Classifies the topological relation of two spatial objects by which of the nine intersections of their interiors, boundaries and exteriors are empty. For simple regions, 8 of 512 matrices occur.
The nine-intersection model of Egenhofer describes how two spatial objects and lie with respect to each other by a matrix of bits: for each part of (interior, boundary, exterior) and each part of , whether the two parts meet. There are matrices, but between two simple regions in the plane only 8 occur, and these are the eight base relations of RCC8. The model is the basis of the topological predicates of spatial databases and geographic information systems, such as "touches", "within" and "overlaps".
The machine
Let and be closed subsets of . Write for the interior, for the boundary and for the exterior, the complement of . The nine-intersection matrix is
with each entry replaced by 1 if the set is non-empty and 0 if it is empty. The relation of and is the matrix. The matrix is invariant under homeomorphisms of the plane, since they map interiors, boundaries and exteriors to the same parts of the images. The converse relation has the transposed matrix.
A simple region is a closed set homeomorphic to a closed disc: it is connected, has no holes, and its boundary is a simple closed curve. For two simple regions, the eight matrices that occur are these, with the rows and the columns :
| relation (RCC8) | Egenhofer name | row | row | row |
|---|---|---|---|---|
| DC | disjoint | 0 0 1 | 0 0 1 | 1 1 1 |
| EC | meet | 0 0 1 | 0 1 1 | 1 1 1 |
| PO | overlap | 1 1 1 | 1 1 1 | 1 1 1 |
| EQ | equal | 1 0 0 | 0 1 0 | 0 0 1 |
| TPP | coveredBy | 1 0 0 | 1 1 0 | 1 1 1 |
| NTPP | inside | 1 0 0 | 1 0 0 | 1 1 1 |
| TPPi | covers | 1 1 1 | 0 1 1 | 0 0 1 |
| NTPPi | contains | 1 1 1 | 0 0 1 | 0 0 1 |
The other 504 matrices cannot occur, for reasons such as these: is never empty for bounded sets, and if meets both and , then it meets , since is connected.
The 4-intersection. Egenhofer and Franzosa (1991) used only the four entries for interiors and boundaries, which give matrices. Between simple regions, 8 of them occur, and they separate the same eight relations. The exterior row and column are needed for objects of other kinds, such as lines and points.
What it counts
The model is a classification, not a reasoning system. One question is to compute the matrix for two given geometries. For two simple polygons with and edges, the matrix follows from the intersections of their boundaries and from a few point-in-polygon tests: a plane sweep finds the boundary intersections in time, and if the boundaries do not cross, one point of each polygon tested against the other decides the containment. A spatial join evaluates such a predicate for many pairs, first filtering by bounding boxes.
The other question is reasoning over relations, as in a qualitative constraint network: given the relation of and and of and , which relations are possible between and ? Egenhofer (1991) derived this composition table from the matrices; for simple regions it is the RCC8 table.
Relation to other models
- RCC8. For simple regions, the eight matrices are exactly the RCC8 base relations, as in the table. RCC8 is axiomatic, with one primitive, connection, while the nine-intersection model is defined by point-set topology; they agree on these objects. See RCC8 and RCC5.
- Lines and points. For an unbranched line and a simple region in the plane the 9-intersection gives 19 relations, and for two unbranched lines 33, where the 4-intersection gives fewer (Egenhofer, Mark and Herring 1994).
- Dimension. The dimensionally extended nine-intersection (DE-9IM) of Clementini and others records the dimension of each intersection (empty, 0, 1 or 2) in place of one bit. It is the basis of the relate predicate in the OGC Simple Features standard, where patterns such as "TFF" select a set of matrices.
- Regions with holes. For regions with holes, or with several pieces, more matrices occur and a single matrix no longer fixes the relation up to homeomorphism; extended models split the boundary into parts.
Known results in the model
| object types in the plane | realizable relations | source |
|---|---|---|
| simple region, simple region, 4-intersection | 8 of 16 | Egenhofer and Franzosa 1991 |
| simple region, simple region, 9-intersection | 8 of 512 | Egenhofer 1991 |
| unbranched line, simple region | 19 | Egenhofer, Mark and Herring 1994 |
| unbranched line, unbranched line | 33 | Egenhofer, Mark and Herring 1994 |
Composition. The composition of two region relations, computed from the matrices, is a set of matrices, and reasoning with these sets is reasoning in RCC8. So consistency of a network of such relations between regions is the RCC8 consistency problem, NP-complete in general and polynomial for the classes of the Renz-Nebel theorem; if the regions must be simple, connectedness and the absence of holes can add constraints that RCC8 alone does not express.
References
- Max J. Egenhofer and Robert D. Franzosa, Point-set topological spatial relations, International Journal of Geographical Information Systems 5(2), 1991, pages 161 to 174 (the 4-intersection of boundaries and interiors, its 16 combinations, and the 8 that occur between regions)
- Max J. Egenhofer, Reasoning about binary topological relations, SSD'91, Lecture Notes in Computer Science 525, Springer, 1991, pages 141 to 160 in Springer's listing (the 9-intersection with exteriors, and composition of topological relations)
- Max J. Egenhofer, David M. Mark and John Herring, The 9-intersection, formalism and its use for natural-language spatial predicates, NCGIA Technical Report 94-1, 1994, the 9-intersection for lines and regions, and the 19 relations between an unbranched line and a region
- David A. Randell, Zhan Cui and Anthony G. Cohn, A spatial logic based on regions and connection, Proceedings of KR'92, Morgan Kaufmann, 1992, pages 165 to 176 (the RCC8 base relations, which match the eight region relations)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag VRVN0C Edit this page History Report an error Markdown