• Point FeatureCollection을 입력받아 concave hull Polygon을 생성해주는 함수입니다.

    Parameters

    • feature: FeatureCollection<Point, {
          [name: string]: any;
      }>

      입력 Point FeatureCollection 입니다.

    • Optional options: {
          maxEdge?: number;
          units?: Unit;
      }

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

      • Optional maxEdge?: number

        concave hull로 판별할 수 있는 변의 길이입니다.

        Default

        Infinity
        
      • Optional units?: Unit

        maxEdge를 계산할 거리의 단위입니다.

    Returns Feature<Polygon | MultiPolygon, {
        [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.concave(points, {units:"kilometers"});

    See

    Generate a polygon by connecting vertices 모든 점들을 둘러싸는 다각형을 생성하는 예제

Generated using TypeDoc