ArticleslgStudy

mathematics

DE-9IM

DE-9IM is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DE-9IM rather than just read about it. In short: The Dimensionally Extended 9-Intersection Model (DE-9IM) is a topological model and a standard used to describe the spatial relations of two regions (two geometries in two-dimensions, R2), in geometry, point-set topology, geospatial topology, and fields related to computer spatial analysis. The spatial relations expressed by the model are invariant to rotation, translation and scaling transformations.

DE-9IM — main illustration
DE-9IM — illustration

Key takeaways

  • DE-9IM belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DE-9IM to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DE-9IM from memory before moving on to harder problems.

Reference excerpt

The Dimensionally Extended 9-Intersection Model (DE-9IM) is a topological model and a standard used to describe the spatial relations of two regions (two geometries in two-dimensions, R2), in geometry, point-set topology, geospatial topology, and fields related to computer spatial analysis. The spatial relations expressed by the model are invariant to rotation, translation and scaling transformations. The matrix provides an approach for classifying geometry relations. Roughly speaking, with a true/false matrix domain, there are 512 possible 2D topologic relations, that can be grouped into binary classification schemes. The English language contains about 10 schemes (relations), such as "intersects", "touches" and "equals". When testing two geometries against a scheme, the result is a spatial predicate named by the scheme. The model was developed by Clementini and others based on the seminal works of Egenhofer and others. It has been used as a basis for standards of queries and assertions in geographic information systems (GIS) and spatial databases.

Matrix model The DE-9IM model is based on a 3×3 intersection matrix with the form:

where ⁠dim⁠ is the dimension of the intersection (∩) of the interior (I), boundary (B), and exterior (E) of geometries a and b. The terms interior and boundary in this article are used in the sense used in algebraic topology and manifold theory, not in the sense used in general topology: for example, the interior of a line segment is the line segment without its endpoints, and its boundary is just the two endpoints (in general topology, the interior of a line segment in the plane is empty and the line segment is its own boundary). In the notation of topological space operators, the matrix elements can be expressed also as

The dimension of empty sets (∅) are denoted as −1 or F (false). The dimension of non-empty sets (¬∅) are denoted with the maximum number of dimensions of the intersection, specifically 0 for points, 1 for lines, 2 for areas. Then, the domain of the model is {0,1,2,F}. A simplified version of ⁠dim⁡(x)⁠ values are obtained mapping the values {0,1,2} to T (true), so using the boolean domain {T,F}. The matrix, denoted with operators, can be expressed as

The elements of the matrix can be named as shown below:

Both matrix forms, with dimensional and boolean domains, can be serialized as "DE-9IM string codes", which represent them in a single-line string pattern. Since 1999 the string codes have a standard format. For output checking or pattern analysis, a matrix value (or a string code) can be checked by a "mask": a desired output value with optional asterisk symbols as wildcards — that is, "*" indicating output positions that the designer does not care about (free values or "don't-care positions"). The domain of the mask elements is {0,1,2,F,*}, or {T,F,*} for the boolean form. The simpler models 4-Intersection and 9-Intersection were proposed before DE-9IM for expressing spatial relations (and originated the terms 4IM and 9IM). They can be used instead of the DE-9IM to optimize computation when input conditions satisfy specific constraints.

Illustration Visually, for two overlapping polygonal geometries, the result of the function DE_9IM(a,b) looks like:

This matrix can be serialized. Reading from left-to-right and top-to-bottom, the result is II=2, IB=1, IE=2, BI=1, BB=0, BE=1, EI=2, EB=1, EE=2. So, in a compact representation as string code is '212101212'.

Spatial predicates Any topological property based on a DE-9IM binary spatial relation is a spatial predicate. For ease of use "named spatial predicates" have been defined for some common relations, which later became standard predicates. The spatial predicate functions that can be derived from DE-9IM include:

Predicates defined with masks of domain {T,F,*}:

Predicates that can be obtained from the above by logical negation or parameter inversion (matrix transposition), as indicated by the last column:

Predicates that utilize the input dimensions, and are defined with masks of domain {0,1,T,*}:

Notice that:

The topologically equal definition does not imply that they have the same points or even that they are of the same class. The output of ⁠DE-9IM⁡(a,b)⁠ have the information contained in a list of all interpretable predicates about geometries a and b. All predicates are computed by masks. Only Crosses and Overlaps have additional conditions about ⁠dim⁡(a)⁠ and ⁠dim⁡(b)⁠. All mask string codes end with *. This is because EE is trivially true, and thus provides no useful information. The Equals mask, T*F**FFF*, is the "merge" of Contains (T*****FF*) and Within (T*F**F***): (II ∧ ~EI ∧ ~EB) ∧ (II ∧ ~IE ∧ ~BE). The mask T*****FF* occurs in the definition of both Contains and Covers. Covers is a more inclusive relation. In particular, unlike Contains it does not distinguish between points in the boundary and in the interior of geometries. For most situations, Covers should be used in preference to Contains. Similarly, the mask T*F**F*** occurs in the definition of both Within and CoveredBy. For most situations, CoveredBy should be used in preference to Within. Historically, other terms and other formal approaches have been used to express spatial predicates; for example region connection calculus was introduced in 1992 by Randell, Cohn and Cohn.

Properties The spatial predicates have the following properties of binary relations:

Reflexive: Equals, Contains, Covers, CoveredBy, Intersects, Within Anti-reflexive: Disjoint Symmetric: Equals, Intersects, Crosses, Touches, Overlaps Transitive: Equals, Contains, Covers, CoveredBy, Within

Interpretation

The choice of terminology and semantics for the spatial predicates is based on reasonable conventions and the tradition of topological studies. Relationships such as Intersects, Disjoint, Touches, Within, Equals (between two geometries a and b) have an obvious semantic:

… excerpt ends here. Continue reading the full article.

Illustrations

DE-9IM illustration
DE-9IM illustration
DE-9IM illustration
DE-9IM illustration
DE-9IM illustration

Worked examples

Example 1 — a first encounter with DE-9IM

Start with the simplest possible case. Write down what DE-9IM claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DE-9IM before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DE-9IM ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DE-9IM

In research
DE-9IM appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DE-9IM in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DE-9IM is common in secondary-school and first-year university syllabi. It links to neighbouring topics Binary operations, Geographic data and information, Geometric intersection, so understanding it makes those chapters shorter.
In everyday life
Look for DE-9IM outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DE-9IM” →

How to study DE-9IM in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DE-9IM means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DE-9IM out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DE-9IM in simple terms?

The Dimensionally Extended 9-Intersection Model (DE-9IM) is a topological model and a standard used to describe the spatial relations of two regions (two geometries in two-dimensions, R2), in geometry, point-set topology, geospatial topology, and fields related to computer spatial analysis. The spa…

Why does DE-9IM matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DE-9IM?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DE-9IM.

Tags

  • Binary operations
  • Geographic data and information
  • Geometric intersection
  • Geometric topology
  • Matrices (mathematics)

Keep exploring