Name

CG_GenerateFlatRoof — Generate a flat (box) roof from a footprint polygon.

Synopsis

geometry CG_GenerateFlatRoof(geometry geom, float8 height);

Beschreibung

Generate a flat (box-shaped) roof as a 3D PolyhedralSurface Z from a 2D footprint polygon. The roof height above the ground plane is given by height (default 3.0).

Availability: 3.7.0 - requires SFCGAL >= 2.3.0.

Diese Methode benötigt ein SFCGAL-Backend.

Diese Funktion unterstützt polyedrische Flächen.

Beispiele

SELECT ST_AsText(
  CG_GenerateFlatRoof(
    'POLYGON((0 0,5 0,5 4,0 4,0 0))',
    2.0));
-- POLYHEDRALSURFACE Z (...)