st_polyfromtext.sql 357 B

12345678910
  1. -- The polygon_test table is created with a single ST_Polygon column.
  2. CREATE TABLE polygon_test (pl1 ST_Polygon);
  3. -- The INSERT statement inserts a polygon into
  4. -- the polygon column using the ST_PolyFromText function.
  5. INSERT INTO polygon_test VALUES(
  6. ST_PolyFromText('polygon((10.01 20.03,10.52 40.11,30.29 41.56,31.78 10.74,10.01 20.03))',1000)
  7. );