분해할 Polygon
FeatureCollection 입니다.
Optional
options: { 필터링 기준이 되는 propertyName
입니다.
Optional
property분해된 Polygon
Feature들을 포함하는 Polygon
FeatureCollection이 반환됩니다.
const polygon1: ktGms.geometry.Polygon = new ktGms.geometry.Polygon(
[
[
[126.9795470621487, 37.57520655422071],
[126.9750838663474, 37.57491744562108],
[126.9752769853963, 37.57270657804507],
[126.9790964510346, 37.57199228372285],
[126.9795470621487, 37.57520655422071],
],
],
{ flag: "true" }
);
const polygon2: ktGms.geometry.Polygon = new ktGms.geometry.Polygon(
[
[
[126.97700432235615, 37.57605019879898],
[126.97214608947786, 37.575858743873866],
[126.97195820201864, 37.57413562740092],
[126.97662854743771, 37.57217845909456],
[126.98057418408416, 37.57305068175859],
[126.97700432235615, 37.57605019879898],
],
],
{ flag: "true" }
);
const polygon3: ktGms.geometry.Polygon = new ktGms.geometry.Polygon(
[
[
[126.98722890876707, 37.575393623892694],
[126.98317340873803, 37.57510451601934],
[126.98325923942645, 37.57231541771728],
[126.98832325004645, 37.57219636851373],
[126.98722890876707, 37.575393623892694],
],
],
{ flag: "false" }
);
const features = analysis.helper.featureCollection([polygon1, polygon2, polygon3]);
const dissolved = analysis.transformation.dissolve(features, {propertyName: 'flag'});
// features의 길이가 2인 FeatureCollection 반환 (polygon1과 polygon2가 병합 / polygon3 따로 존재)
Generated using TypeDoc
Polygon
FeatureCollection을 입력받아 같은propertyName
을 가진 Feature끼리 묶어주는 함수입니다.