STConvexHull (veri türü geometri)
Dışbükey olan hull temsil eden bir nesnesi bir geometry Örnek.
.STConvexHull ( )
Dönüş Türleri
SQL Server döndürme türü: geometry
CLR dönüş türü: SqlGeometry
Remarks
STConvexHull() returns the smallest convex polygon that contains the given geometry instance.Points or co-linear LineString instances will produce an instance of the same type as that of the input.
Örnekler
The following example uses STConvexHull() to find the convex hull of a non-convex Polygongeometry instance.
DECLARE @g geometry;
SET @g = geometry::STGeomFromText('POLYGON((0 0, 0 2, 1 1, 2 2, 2 0, 0 0))', 0);
SELECT @g.STConvexHull().ToString();