ST_LineFromText

注意注意:

ST_Geometry in Oracle only; for spatial type for PostgreSQL, use ST_LineString.

Definition

ST_LineFromText takes a well-known text representation of type ST_LineString and a spatial reference ID and returns an ST_LineString.

Syntax

sde.st_linefromtext (wkt clob, srid integer)

Return type

ST_LineString

Example

The linestring_test table is created with a single ln1 ST_LineString column.

CREATE TABLE linestring_test (ln1 sde.st_geometry);

The INSERT statement inserts an ST_LineString into the ln1 column using the ST_LineFromText function.

INSERT INTO LINESTRING_TEST VALUES (
sde.st_linefromtext ('linestring (10.01 20.03, 35.93 19.04)', 0)
);

3/7/2012