Files
doris/docs/en/sql-reference/sql-functions/spatial-functions/st_linefromtext.md

1.5 KiB

title, language
title language
`ST_LineFromText`,`ST_LineStringFromText` en

ST_LineFromText,ST_LineStringFromText

Description

Syntax

'GEOMETRY ST LineFromText (VARCHAR wkt)'

Converting a WKT (Well Known Text) into a Line-style memory representation

example

mysql> SELECT ST_AsText(ST_LineFromText("LINESTRING (1 1, 2 2)"));
+---------------------------------------------------------+
| st_astext(st_geometryfromtext('LINESTRING (1 1, 2 2)')) |
+---------------------------------------------------------+
| LINESTRING (1 1, 2 2)                                   |
+---------------------------------------------------------+

##keyword ST_LINEFROMTEXT, ST_LINESTRINGFROMTEXT,ST,LINEFROMTEXT,LINESTRINGFROMTEXT