입력 GeoJSON
입니다.
Optional
options: { convex 함수에서 사용할 옵션입니다.
Optional
concavity?: number숫자가 낮을수록 얇은 모양의 hull
이 반환되고, 값이 Infinity인 경우 convex hull
의 결과가 출력됩니다.
Infinity
Optional
properties?: Object생성되는 Polygon
Feature에 부여할 속성값입니다.
{}
모든 점을 포함하는 (Multi)Polygon
Feature가 반환됩니다. 계산할 수 없는 경우 null
이 반환됩니다. ex)point 2개 입력
const points = analysis.helper.featureCollection([
new ktGms.geometry.PointGeo([127.015522, 37.49044],{}),
new ktGms.geometry.PointGeo([127.02222, 37.49144],{}),
new ktGms.geometry.PointGeo([127.015522, 37.49294],{}),
new ktGms.geometry.PointGeo([127.01312, 37.48755],{}),
new ktGms.geometry.PointGeo([127.02, 37.4935],{}),
new ktGms.geometry.PointGeo([127.018, 37.4965],{}),
new ktGms.geometry.PointGeo([127.019, 37.49],{}),
])
const hull = analysis.transformation.convex(points);
Generated using TypeDoc
GeoJSON
을 입력받아convex hull Polygon
을 생성해주는 함수입니다. *