File: polygonize.sql

package info (click to toggle)
postgis 3.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 74,680 kB
  • sloc: ansic: 163,427; sql: 95,196; xml: 54,290; cpp: 12,646; perl: 5,875; sh: 5,415; makefile: 3,492; python: 1,207; yacc: 447; lex: 151; pascal: 58
file content (13 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
SELECT 1, ST_AsText(ST_Polygonize(
'GEOMETRYCOLLECTION(
  MULTILINESTRING(
    (1656318.45 4833344.45,1656321.79 4833339.62,1656312.54 4833333.49),
    (1656312.54 4833333.49,1656309.68 4833337.07)
  ),
  LINESTRING(1656309.68 4833337.07,1656318.45 4833344.45)
)'::geometry));

-- See ticket #1602
SELECT 2, ST_AsEWKT(ST_Polygonize(
'MULTILINESTRING((0 0 0, 0 10 0, 10 10 0),(10 10 0, 10 0 5, 0 0 0))'
::geometry));