Dimension
A geometry can have a dimension of –1, 0, 1, or 2.
The dimensions are listed
as follows:
- –1
- Is empty
- 0
- Has no length and an area of 0 (zero)
- 1
- Has a length larger than 0 (zero) and an area of 0 (zero)
- 2
- Has an area that is larger than 0 (zero)
The point and multipoint subtypes have a dimension of zero. Points represent dimensional features that can be modeled with a single tuple of coordinates, while multipoint subtypes represent data that must be modeled with a set of points.
The linestring and multilinestring subtypes have a dimension of one. They store road segments, branching river systems and any other features that are linear in nature.
Polygon and multipolygon subtypes have a dimension of two. Features whose perimeter encloses a definable area, such as forests, parcels of land, and lakes, can be represented by either the polygon or multipolygon data type.