Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
根据文本表示构造多面。
NEW ST_MultiPolygon(text-representation[, srid])
text-representation
LONG VARCHAR
包含多面的文本表示的字符串。输入格式可以是任何支持的文本输入格式,包括 WKT 或 EWKT。
srid
INT
结果的 SRID。如果未指定,缺省值是 0。
根据字符串表示构造多面。数据库服务器通过检查提供的字符串确定输入格式。
SQL/MM (ISO/IEC 13249-3: 2006) 9.6.2
以下示例返回 MultiPolygon (((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 2, 2 2, 2 -2, -2 -2)), ((10 -5, 15 5, 5 5, 10 -5)))
SELECT NEW ST_MultiPolygon('MultiPolygon (((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 2, 2 2, 2 -2, -2 -2)), ((10 -5, 15 5, 5 5, 10 -5)))')