• GeoJSON을 입력받아 convex hull Polygon을 생성해주는 함수입니다. *

    Parameters

    • feature: GeoJSON | Geometry

      입력 GeoJSON 입니다.

    • Optional options: {
          concavity?: number;
          properties?: Object;
      }

      convex 함수에서 사용할 옵션입니다.

      • Optional concavity?: number

        숫자가 낮을수록 얇은 모양의 hull이 반환되고, 값이 Infinity인 경우 convex hull의 결과가 출력됩니다.

        Default

        Infinity
        
      • Optional properties?: Object

        생성되는 Polygon Feature에 부여할 속성값입니다.

        Default

        {}
        

    Returns Feature<Polygon, {
        [name: string]: any;
    }>

    모든 점을 포함하는 (Multi)Polygon Feature가 반환됩니다. 계산할 수 없는 경우 null이 반환됩니다. ex)point 2개 입력

    Example

    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