File: polygonize.sql

package info (click to toggle)
postgis 3.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 70,052 kB
  • sloc: ansic: 162,204; sql: 93,950; xml: 53,121; cpp: 12,646; perl: 5,658; sh: 5,369; makefile: 3,434; python: 1,205; 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));