Geometries

This topic provides an overview of the geometries that are supported by IBM® Spatial Support for Db2® for z/OS®.

Webster's Revised Unabridged Dictionary defines geometry as That branch of mathematics which investigates the relations, properties, and measurement of solids, surfaces, lines, and angles; the science which treats of the properties and relations of magnitudes; the science of the relations of space. The word geometry has also been used to denote the geometric features that, for the past millennium or more, cartographers have used to map the world. An abstract definition of this new meaning of geometry is a point or aggregate of points representing a feature on the ground.

In IBM Spatial Support for Db2 for z/OS, the operational definition of geometry is a model of a geographic feature. The model can be expressed in terms of the feature's coordinates. The model conveys information; for example, the coordinates identify the position of the feature with respect to fixed points of reference. Also, the model can be used to produce information; for example, the ST_Overlaps function can take the coordinates of two proximate regions as input and return information as to whether the regions overlap or not.

The coordinates of a feature that a geometry represents are regarded as properties of the geometry. Several kinds of geometries have other properties as well; for example, area, length, and boundary.

IBM Spatial Support for Db2 for z/OS supports seven distinct geometry types. Six of these geometry types are instantiable, and one is non-instantiable.

The instantiable geometries include:
Point
A single point. Points represent discrete features that are perceived as occupying the locus where an east-west coordinate line (such as a parallel) intersects a north-south coordinate line (such as a meridian). For example, suppose that the notation on a world map shows that each city on the map is located at the intersection of a parallel and a meridian. A point could represent each city.
Linestring
A line between two or more points. It does not have to be a straight line. Linestrings represent linear geographic features (for example, streets, canals, and pipelines).
Polygon
A polygon or surface within a polygon. Polygons represent multisided geographic features (for example, welfare districts, forests, and wildlife habitats).
Multipoint
A multiple point geometry type. Multipoints represent multipart features whose components are each located at the intersection of an east-west coordinate line and a north-south coordinate line (for example, an island chain whose members are each situated at an intersection of a parallel and meridian).
Multilinestring
A multiple curve geometry type with multiple strings. Multilinestrings represent multipart features that are made up (for example, river systems).
Multipolygon
A multiple surface geometry type with multiple polygons. Multipolygons represent multipart features made up of multisided units or components (for example, the collective farmlands in a specific region, or a system of lakes).

The non-instantiable geometry type is:

Geometry
Geometry is an abstract data type that you can use for parameter passing in spatial functions. Geometry does not have a corresponding constructor function; therefore, it is not supported as an instantiable spatial data type.