12.17.5 MySQL-Specific Functions That Create Geometry Values创建几何值的特定于MySQL的函数

MySQL provides a set of useful nonstandard functions for creating geometry values. MySQL提供了一组有用的非标准函数来创建几何值。The functions described in this section are MySQL extensions to the OpenGIS specification.本节中描述的函数是OpenGIS规范的MySQL扩展。

These functions produce geometry objects from either WKB values or geometry objects as arguments. 这些函数从WKB值或几何体对象作为参数生成几何体对象。If any argument is not a proper WKB or geometry representation of the proper object type, the return value is NULL.如果任何参数不是正确的WKB或正确对象类型的几何表示形式,则返回值为NULL

For example, you can insert the geometry return value from Point() directly into a POINT column:例如,可以将Point()的几何体返回值直接插入到点列中:

INSERT INTO t1 (pt_col) VALUES(Point(1,2));