12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>214 / 310This will create a gaping hole inside the circle with prongs sticking outSELECT ST_BuildArea(ST_Collect(line,circle))FROM (SELECTST_Buffer(ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(190, 190)),5) As line,ST_Buffer(ST_GeomFromText(’POINT(100 90)’), 50) As circle) As foo;--this creates the same gaping hole--but using linestrings instead of polygonsSELECT ST_BuildArea(ST_Collect(ST_ExteriorRing(line),ST_ExteriorRing(circle)))FROM (SELECT ST_Buffer(ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(190, 190)),5) As line,ST_Buffer(ST_GeomFromText(’POINT(100 90)’), 50) As circle) As foo;See AlsoST_BdPolyFromText, ST_BdMPolyFromTextwrappers to this function with standard OGC interface7.9.3 ST_CollectST_Collect — Return a specified ST_Geometry value from a collection of other geometries.Synopsisgeometry ST_Collect(geometry set g1field);geometry ST_Collect(geometry g1, geometry g2);geometry ST_Collect(geometry[] g1_array);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!