AnalysisFloodSimulation

침수 분석 클래스. Flood simulation analysis class. 분석 영역 내의 건물들을 대상으로 침수(피해) 건물 수를 산출합니다.

new Ditap.AnalysisFloodSimulation(analysisOptions)

Name Type Description
analysisOptions Object 분석 옵션.
Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
positions Array.<Cartesian3> 분석할 영역의 좌표 배열.
floodLevel number 침수 분석 수위 (물 높이).
latitude string 피처에 입력된 위도 속성명.
longitude string 피처에 입력된 경도 속성명.
Example:
const viewer = new Ditap.DitapViewer("ditapContainer");
const positions = [
  Cartesian3.fromDegrees(126.977384, 37.566130),
  Cartesian3.fromDegrees(126.977288, 37.569107),
  Cartesian3.fromDegrees(126.982652, 37.568639),
  Cartesian3.fromDegrees(126.982534, 37.566156)
];

const analysisFloodSimulation = new AnalysisFloodSimulation({
   viewer: viewer,
   latitude: "LATITUDE",
   longitude: "LONGITUDE",
   positions: positions,
   floodLevel: 50  // 예: 50미터 수위
});

Methods

getFloodPosition(position)Cartesian3

지정된 위치에 침수 수위를 적용한 Cartesian3 좌표 반환.
Name Type Description
position Cartesian3 원래 좌표.
Returns:
수위(floodLevel)를 높이로 적용한 좌표.

identifyBuildingsInPolygon(allFeatures)Array

다각형 내부에 있는 건물 피처들을 반환합니다.
Name Type Description
allFeatures Array 전체 건물 피처들.
Returns:
영역 내부에 있는 건물 피처들.

identifyFloodedBuildings(buildingFeatures)Array

침수 분석 조건: 건물 위치의 고도가 침수 수위보다 낮은 경우 침수 건물로 판단합니다.
Name Type Description
buildingFeatures Array 분석할 건물 피처들.
Returns:
침수(피해) 건물 피처들.