st_linefromtext.sql 354 B

12345678910
  1. -- The linestring_test table is created with a single ln1 ST_LineString column.
  2. CREATE TABLE linestring_test (ln1 ST_LineString);
  3. -- The INSERT statement inserts a ST_LineString into the ln1 column
  4. -- using the ST_LineFromText function.
  5. INSERT INTO linestring_test VALUES(
  6. ST_LineFromText('linestring(10.01 20.03,20.94 21.34,35.93 19.04)',1000)
  7. );