ArcGIS Server Banner

ST_LineFromText

ST_LineFromText

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback

NOTE: Spatial type for 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)
);

See Also

  • An overview of SQL functions used with ST_Geometry types