PostGIS 3.5 SFCGAL Cheatsheet

New in this release 1Enhanced in this release 2   Requires SFCGAL 1.5 or higher cg1.5Aggregate agg    Window function W   2.5/3D support 3d   SQL-MMmm  
SFCGAL Management Functions
postgis_sfcgal_version ()    실행중인 SFCGAL의 버전을 반환합니다.
postgis_sfcgal_full_version ()    Returns the full version of SFCGAL in use including CGAL and Boost versions

SFCGAL Accessors and Setters
CG_ForceLHR  1  3d (geom)    LHR(Left Hand Reverse; 시계 방향) 방향을 강제합니다.
CG_IsPlanar  1  3d (geom)    표면이 평면인지 아닌지 확인합니다.
CG_IsSolid  1  3d (geom1)    도형이 입체인지 테스트합니다. 어떤 유효성 검사도 수행하지 않습니다.
CG_MakeSolid  1  3d (geom1)    도형을 입체로 지정합니다. 어떤 확인 작업도 수행하지 않습니다. 유효한 입체를 얻으려면, 입력 도형이 닫힌 다면체 표면 또는 닫힌 TIN이어야만 합니다.
CG_Orientation  1  3d (geom)    표면의 방향(orientation)을 결정합니다.
CG_Area  1 (geom)    Calculates the area of a geometry
CG_3DArea  1  mm  3d (geom1)    3차원 표면 도형의 면적을 계산합니다. 입체일 경우 0을 반환할 것입니다.
CG_Volume  1  mm  3d (geom1)    3차원 입체의 부피를 계산합니다. 표면 도형을 입력하면 (닫힌 도형일지라도) 0을 반환할 것입니다.
ST_ForceLHR  3d (geom)    LHR(Left Hand Reverse; 시계 방향) 방향을 강제합니다.
ST_IsPlanar  3d (geom)    표면이 평면인지 아닌지 확인합니다.
ST_IsSolid  3d (geom1)    도형이 입체인지 테스트합니다. 어떤 유효성 검사도 수행하지 않습니다.
ST_MakeSolid  3d (geom1)    도형을 입체로 지정합니다. 어떤 확인 작업도 수행하지 않습니다. 유효한 입체를 얻으려면, 입력 도형이 닫힌 다면체 표면 또는 닫힌 TIN이어야만 합니다.
ST_Orientation  3d (geom)    표면의 방향(orientation)을 결정합니다.
ST_3DArea  mm  3d (geom1)    3차원 표면 도형의 면적을 계산합니다. 입체일 경우 0을 반환할 것입니다.
ST_Volume  mm  3d (geom1)    3차원 입체의 부피를 계산합니다. 표면 도형을 입력하면 (닫힌 도형일지라도) 0을 반환할 것입니다.

SFCGAL Processing and Relationship Functions
CG_Intersection  1 (geomA, geomB)    Computes the intersection of two geometries
CG_Intersects  1 (geomA, geomB)    Tests if two geometries intersect (they have at least one point in common)
CG_3DIntersects  1 (geomA, geomB)    Tests if two 3D geometries intersect
CG_Difference  1 (geomA, geomB)    Computes the geometric difference between two geometries
ST_3DDifference  mm  3d (geom1, geom2)    3차원 차이를 수행합니다.
CG_3DDifference  1  mm  3d (geom1, geom2)    3차원 차이를 수행합니다.
CG_Distance  1 (geomA, geomB)    Computes the minimum distance between two geometries
CG_3DDistance  1 (geomA, geomB)    Computes the minimum 3D distance between two geometries
ST_3DConvexHull  3d (geom1)    면 도형의 근사 중심축을 계산합니다.
CG_3DConvexHull  1  3d (geom1)    면 도형의 근사 중심축을 계산합니다.
ST_3DIntersection  mm  3d (geom1, geom2)    3차원 교차를 수행합니다.
CG_3DIntersection  1  mm  3d (geom1, geom2)    3차원 교차를 수행합니다.
CG_Union  1 (geomA, geomB)    Computes the union of two geometries
ST_3DUnion  mm  3d    Perform 3D union.
  1. geom1, geom2
  2. g1field agg
CG_3DUnion  1  mm  3d    Perform 3D union.
  1. geom1, geom2
  2. g1field agg
ST_AlphaShape (geom, alpha, allow_holes = false)    Computes an Alpha-shape enclosing a geometry
CG_AlphaShape  1 (geom, alpha, allow_holes = false)    Computes an Alpha-shape enclosing a geometry
CG_ApproxConvexPartition  1  cg1.5 (geom)    Computes approximal convex partition of the polygon geometry
ST_ApproximateMedialAxis  3d (geom)    면 도형의 근사 중심축을 계산합니다.
CG_ApproximateMedialAxis  1  3d (geom)    면 도형의 근사 중심축을 계산합니다.
ST_ConstrainedDelaunayTriangles  3d (g1)    Return a constrained Delaunay triangulation around the given input geometry.
CG_ConstrainedDelaunayTriangles  3d (g1)    Return a constrained Delaunay triangulation around the given input geometry.
ST_Extrude  3d (geom, x, y, z)    표면을 관련 입체로 돌출시킵니다.
CG_Extrude  1  3d (geom, x, y, z)    표면을 관련 입체로 돌출시킵니다.
CG_ExtrudeStraightSkeleton  1  cg1.5 (geom, roof_height, body_height = 0)    Straight Skeleton Extrusion
CG_GreeneApproxConvexPartition  1  cg1.5 (geom)    Computes approximal convex partition of the polygon geometry
ST_MinkowskiSum (geom1, geom2)    민코프스키 합계를 수행합니다.
CG_MinkowskiSum  1 (geom1, geom2)    민코프스키 합계를 수행합니다.
ST_OptimalAlphaShape (geom, allow_holes = false, nb_components = 1)    Computes an Alpha-shape enclosing a geometry using an "optimal" alpha value.
CG_OptimalAlphaShape  1 (geom, allow_holes = false, nb_components = 1)    Computes an Alpha-shape enclosing a geometry using an "optimal" alpha value.
CG_OptimalConvexPartition  1  cg1.5 (geom)    Computes an optimal convex partition of the polygon geometry
CG_StraightSkeleton  1  3d (geom, use_distance_as_m = false)    도형으로부터 직선 골격(straight skeleton)을 계산합니다.
ST_StraightSkeleton  3d (geom)    도형으로부터 직선 골격(straight skeleton)을 계산합니다.
ST_Tesselate  3d (geom)    폴리곤 또는 다면체 표면의 표면 다듬기(tesselation) 작업을 수행한 다음 TIN 또는 TIN 집합으로 반환합니다.
CG_Tesselate  1  3d (geom)    폴리곤 또는 다면체 표면의 표면 다듬기(tesselation) 작업을 수행한 다음 TIN 또는 TIN 집합으로 반환합니다.
CG_Triangulate  1 (geom)    Triangulates a polygonal geometry
CG_Visibility  1  cg1.5  3d    Compute a visibility polygon from a point or a segment in a polygon geometry
  1. polygon, point
  2. polygon, pointA, pointB
CG_YMonotonePartition  1  cg1.5 (geom)    Computes y-monotone partition of the polygon geometry