Name

ST_Extrude — 표면을 관련 입체로 돌출시킵니다.

Synopsis

geometry ST_Extrude(geometry geom, float x, float y, float z);

설명

2.1.0 버전부터 사용할 수 있습니다.

This method needs SFCGAL backend.

This function supports 3d and will not drop the z-index.

This function supports Polyhedral surfaces.

This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).

예시

PostGIS ST_AsX3D 를 통해 3차원 영상을 생성한 다음 X3Dom HTML 자바스크립트 렌더링 라이브러리 를 이용해서 HTML로 렌더링합니다.

SELECT ST_Buffer(ST_GeomFromText('POINT(100 90)'),
  50, 'quad_segs=2'),0,0,30);

버퍼를 적용한 포인트에서 생성된 원본 팔각형

ST_Extrude(ST_Buffer(ST_GeomFromText('POINT(100 90)'),
 50, 'quad_segs=2'),0,0,30);

Z축을 따라 30단위만큼 돌출된 육각형이 다면체 표면 Z(PolyhedralSurfaceZ)을 생성합니다.

SELECT ST_GeomFromText('LINESTRING(50 50, 100 90, 95 150)')

원본 라인스트링

SELECT ST_Extrude(
 ST_GeomFromText('LINESTRING(50 50, 100 90, 95 150)'),0,0,10));

Z축을 따라 돌출된 라인스트링이 다면체 표면 Z(PolyhedralSurfaceZ)을 생성합니다.

참고

ST_AsX3D