GeOnDT GeOnDT for JS

Class: UAnalySlope

UAnalySlope

~extends UAnaly
경사도 분석 클래스
두 점 사이의 지형 경사도를 계산하고 분석 결과를 제공한다.

new UAnalySlope(opt)

Name Type Default Description
opt UAnalySlope~UAnalySlopeCO {} optional
Example
const slope = app.getAnalysis('Slope');
slope.setStart(startVec3);
slope.setEnd(endVec3);
const result = slope.getSlope();

Methods

active()UAnalySlope

Returns:
Type Description
UAnalySlope

addIndicator(poi)UAnalySlope

인디케이터(POI)를 추가하는 함수

Name Type Description
poi U3dPOI
Returns:
Type Description
UAnalySlope

addVertex(geox, geoy)UAnalySlope

Name Type Description
geox number
geoy number
Returns:
Type Description
UAnalySlope

clear()UAnalySlope

Returns:
Type Description
UAnalySlope

deactive()UAnalySlope

Returns:
Type Description
UAnalySlope

getDivide()number

경사도 분할 수를 반환하는 함수

Returns:
Type Description
number

getEnd()Vector3|undefined

분석 끝점을 반환하는 함수

Returns:
Type Description
Vector3 | undefined

getIndicator()U3dPOI

인디케이터(POI)를 반환하는 함수

Returns:
Type Description
U3dPOI

getMeasureLength()number

측정 길이를 반환하는 함수

Returns:
Type Description
number

getSlope(divide)Array.<{position: Vector3, height: number}>|undefined

경사도 분석 결과를 반환하는 함수

Name Type Description
divide number optional

경사도 분할 수 (설정 시 divide 값 갱신)

Returns:
Type Description
Array.<{position: Vector3, height: number}> | undefined

getStart()Vector3|undefined

분석 시작점을 반환하는 함수

Returns:
Type Description
Vector3 | undefined

removeIndicator()UAnalySlope

인디케이터(POI)를 제거하는 함수

Returns:
Type Description
UAnalySlope

setDivide(divide)UAnalySlope

경사도 분할 수를 설정하는 함수

Name Type Description
divide number

분할 수

Returns:
Type Description
UAnalySlope

setEnd(point)UAnalySlope

분석 끝점을 설정하는 함수입니다.

Name Type Description
point WorldPositionVector3

끝점 3D 좌표 (월드 좌표, EPSG:3857)

Returns:
Type Description
UAnalySlope

setPoints(start, end)UAnalySlope|undefined

시작점과 끝점을 직접 설정하는 함수입니다.

Name Type Description
start WorldPositionVector3

시작점 좌표 (월드 좌표, EPSG:3857)

end WorldPositionVector3

끝점 좌표 (월드 좌표, EPSG:3857)

Returns:
Type Description
UAnalySlope | undefined

setStart(point)UAnalySlope

분석 시작점을 설정하는 함수입니다.

Name Type Description
point WorldPositionVector3

시작점 3D 좌표 (월드 좌표, EPSG:3857)

Returns:
Type Description
UAnalySlope

update(drawArg)UAnalySlope

Name Type Description
drawArg UDrawArg optional
Returns:
Type Description
UAnalySlope

Type Definitions

UAnalySlopeCOobject

~extends UAnaly~UAnalyCO
UAnalySlope 생성자 옵션

Properties:
Name Type Argument Default Description
name string <optional>
'Slope'

분석 클래스 이름

divide number <optional>
60

경사도 분할 수