11.4.2.1 The Geometry Class Hierarchy几何体类层次结构

The geometry classes define a hierarchy as follows:几何图形类定义层次结构,如下所示:

It is not possible to create objects in noninstantiable classes. 不可能在不可实例化的类中创建对象。It is possible to create objects in instantiable classes. 可以在可实例类中创建对象。All classes have properties, and instantiable classes may also have assertions (rules that define valid class instances).所有类都有属性,可实例化类也可能有断言(定义有效类实例的规则)。

Geometry is the base class. Geometry是基类。It is an abstract class. 它是一个抽象类。The instantiable subclasses of Geometry are restricted to zero-, one-, and two-dimensional geometric objects that exist in two-dimensional coordinate space. Gemoetry的可实例化子类仅限于存在于二维坐标空间中的零、一和二维几何对象。All instantiable geometry classes are defined so that valid instances of a geometry class are topologically closed (that is, all defined geometries include their boundary).定义所有可实例化的几何体类,以便几何体类的有效实例在拓扑上是闭合的(即,所有已定义的几何体都包括其边界)。

The base Geometry class has subclasses for Point, Curve, Surface, and GeometryCollection:基类Geometry具有针对PointCurveSurfaceGeometryCollection的子类:

Geometry, Curve, Surface, MultiCurve, and MultiSurface are defined as noninstantiable classes. GeometryCurveSurfaceMultiCurveMultiSurface被定义为不可实例化的类。They define a common set of methods for their subclasses and are included for extensibility.它们为它们的子类定义了一组通用的方法,并包含在可扩展性中。

Point, LineString, Polygon, GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon are instantiable classes.PointLineStringPolygonGeometryCollectionMultiPointMultiLineStringMultiPolygon是可实例化的类。