SQL/MM Spatial: The Standard to Manage Spatial Data in Relational Database Systems
July 17, 2026 · 170 KB
The "ST" in SQL/MM's spatial functions first meant "Spatial and Temporal," but time was dropped. This paper by an IBM developer explains and critiques the international standard for spatial data in SQL databases.
Overview
Every table, type and function in the SQL/MM spatial standard starts with "ST." The prefix first stood for "Spatial and Temporal." Planners later left time to a separate SQL standard but kept the prefix, which today might be read as "Spatial Type."
The Paper
This paper by Knut Stolze of Friedrich Schiller University Jena and IBM's DB2 Extenders development group in Böblingen, Germany, explains and critiques ISO/IEC 13249-3, the standard for storing, retrieving and processing spatial data with SQL. The first version appeared in 1999. A second was at the final draft stage when the paper was written.
The Standard
The standard grew out of the OpenGIS Simple Features Specification. It defines a family of types for points, curves, surfaces and collections in two dimensions, including circular and compound curves. Methods attach to each type; area, for example, applies to surfaces but not lines. An Information Schema lists spatial columns and the reference systems that give coordinates meaning. Products such as IBM's DB2 Spatial Extender, Informix's Spatial DataBlade and Oracle Spatial implement similar features.
Assessment
Stolze finds the type system suitable but says SQL's strict typing makes spatial processing awkward, and some methods duplicate each other with only minor differences. He notes gaps: no function to find the nearest object, such as the closest restaurant, few tools to edit geometries and no support for raster images. A Japanese proposal would add shortest-path calculation in a future version.
Why It Matters
The standard shapes how mapping and location data are handled inside mainstream databases.
