12.17.4 Functions That Create Geometry Values from WKB Values从WKB值创建几何图形值的函数

These functions take as arguments a BLOB containing a Well-Known Binary (WKB) representation and, optionally, a spatial reference system identifier (SRID). 这些函数将包含已知BLOB(WKB)表示和空间参考系统标识符(SRID)的BLOB作为参数。They return the corresponding geometry. 它们返回相应的几何图形。For a description of WKB format, see Well-Known Binary (WKB) Format.有关WKB格式的说明,请参阅众所周知的二进制(WKB)格式

Functions in this section detect arguments in either Cartesian or geographic spatial reference systems (SRSs), and return results appropriate to the SRS.本节中的函数检测笛卡尔坐标系或地理空间参考系(SRS)中的参数,并返回适合SRS的结果。

ST_GeomFromWKB() accepts a WKB value of any geometry type as its first argument. ST_GeomFromWKB()接受任何几何体类型的WKB值作为其第一个参数。Other functions provide type-specific construction functions for construction of geometry values of each geometry type.其他函数提供特定于类型的构造函数,用于构造每个几何图形类型的几何图形值。

Prior to MySQL 8.0, these functions also accepted geometry objects as returned by the functions in Section 12.17.5, “MySQL-Specific Functions That Create Geometry Values”. 在MySQL 8.0之前,这些函数还接受第12.17.5节,“创建几何值的MySQL特定函数”中函数返回的几何对象。Geometry arguments are no longer permitted and produce an error. 几何参数不再被允许并产生错误。To migrate calls from using geometry arguments to using WKB arguments, follow these guidelines:要将调用从使用geometry参数迁移到使用WKB参数,请遵循以下准则:

Unless otherwise specified, functions in this section handle their geometry arguments as follows:除非另有规定,否则本节中的函数按如下方式处理其几何参数:

These functions are available for creating geometries from WKB values:这些函数可用于从WKB值创建几何图形: