GeOnDT GeOnDT for JS

Class: UAnalyCustomLand

UAnalyCustomLand

~extends UAnaly
지형 편집 분석 클래스
편집영역 그리기, 편집높이 설정 등의 기능을 제공한다.

new UAnalyCustomLand(opt)

Name Type Default Description
opt UAnalyCustomLandCO {} optional
Tutorials:
Example
let analy = app.activeAnalysis('CustomLand');

Members

namestring

Methods

active()

addCustomLand(options)

편집한 지형을 추가하는 기능

Name Type Description
options DataOPT_Input
Example
analy.addCustomLand({
  id: "editLand",
  height: 55,
  geoVertex: [{x: 129.154, y: 35.164, z: 15}]
});

addDefaultEvent()

addEditLand(options)

Name Type Description
options DataOPT_Input
Deprecated
  • addCustomLand() 메서드를 사용하세요.

    checkHeightByLayer(box)boolean

    해당 바운딩 박스에 고도 값이 있는지 확인하는 함수

    Name Type Description
    box UBox3

    바운딩박스

    Returns:
    Type Description
    boolean

    clear(useRemoveEditLandAll)

    draw feature 와 poi를 삭제하고, 분석 영역을 원래대로 되돌립니다.

    Name Type Default Description
    useRemoveEditLandAll boolean true optional

    분석영역 삭제 여부

    deactive()

    editCustomLand(id, option)

    편집한 지형을 수정하는 기능

    Name Type Description
    id string

    수정할 편집지형 ID

    option DataOPT_Input
    Example
    analy.editCustomLand("editLand", { id: "editLand_update", height: 55, geoVertex: [{x: 129.154, y: 35.164, z: 15}] });

    getCustomLand(id)CustomLand|undefined

    편집된 지형정보를 반환하는 함수

    Name Type Description
    id string

    편집지형 아이디값

    Returns:
    Type Description
    CustomLand | undefined

    getCustomLandList()Array.<CustomLand>

    편집된 지형 리스트를 반환하는 함수

    Returns:
    Type Description
    Array.<CustomLand>

    getEditLand()

    Deprecated
    • getCustomLandList() 메서드를 사용하세요.

      getFeatures()Array.<OLFeature>

      커스텀 지형의 feature 리스트를 반환하는 함수

      Returns:
      Type Description
      Array.<OLFeature> feature 리스트

      getGeoVertex()Array.<{x: number, y: number}>

      편집 지형의 GeoVertex 좌표를 반환하는 함수

      Returns:
      Type Description
      Array.<{x: number, y: number}> GeoVertex 좌표 리스트

      getParam()Array.<CustomLandCO>

      편집 지형의 생성 파라미터 값을 반환하는 함수

      Returns:
      Type Description
      Array.<CustomLandCO> 생성 파라미터
      Example
      param {
        name: 'customLand1', height: 50, inclineEdit: true, inclineRate: 10,
        geoVertex: [{x: 129.154, y: 35.164, z: 15}]
      }

      getVolume(id, progressFunc)

      편집지형의 부피를 계산하는 함수

      Name Type Description
      id string

      편집지형 아이디값

      progressFunc function | undefined optional
      Example
      analy.getVolume('customLand_ID').then(function(land){
        var volume = land.getVolume();
        var difference = land.getDifference();
      });

      removeCustomLandAll()

      편집된 모든 지형을 초기화하는 함수

      removeCustomLandById(id)

      해당 ID에 해당하는 편집된 지형을 초기화 하는 함수

      Name Type Description
      id string

      편집된 지형의 id

      removeEditLandById(id)

      Name Type Description
      id string

      setApp(app)

      Name Type Description
      app U3dApp

      setCustomLandToApp(customLand)

      Name Type Description
      customLand CustomLand

      setDrawStyle(style)

      분석모드 draw 스타일을 설정하는 함수

      Name Type Description
      style OLStyle

      OpenLayers 스타일 객체

      Example
      let style = new ol.style.Style({ image: ol.style.Circle, fill: ol.style.Fill, stroke: ol.style.Stroke });
      analy.setDrawStyle(style);

      setParam(param)

      커스텀 지형의 생성 파라미터 값을 설정하는 함수

      Name Type Description
      param Array.<CustomLandCO>

      생성 파라미터

      See:

      setSelectType(type)

      커스텀 지형을 선택 시 선택 방식을 지정하는 함수 (Polygon OR Box)

      Name Type Description
      type string

      선택 방식 Polygon | Box

      setStyle(style)

      분석모드 스타일을 설정하는 함수

      Name Type Description
      style OLStyle | CustomLandStyleCO
      Example
      let style = new ol.style.Style({ image: ol.style.Circle, fill: ol.style.Fill, stroke: ol.style.Stroke });
      analy.setStyle(style);

      stopDraw()

      분석 지역 그리기를 중단하는 함수
      클릭이벤트와 더블클릭 이벤트가 해제되고 그리기중이던 draw feature 들이 삭제됩니다.

      Type Definitions

      CustomLandStyleCOobject

      편집지형 draw 스타일

      Properties:
      Name Type Argument Default Description
      fill string <optional>
      'rgba(255,0,0,0.2)'

      편집지형 draw 영역 채우기 색상

      stroke string <optional>
      'rgba(255,0,0,0.5)'

      편집지형 draw 영역 외곽선(획) 색상

      width number <optional>
      1

      편집지형 draw 영역 외곽선(획) 두께

      radius number <optional>
      3

      편집지형 draw 영역 반지름

      DataOPTobject

      편집 지형 내부 데이터 흐름 객체. 입력 옵션(DataOPT_Input)에 setLandOption → setInclineLandOption → setDataOption 순으로 좌표 변환·경계 박스·경사면·HeightXYZLayer 정보가 단계적으로 주입된다. (주입 필드는 단계에 따라 존재 여부가 달라 모두 선택적으로 표기)

      Properties:
      Name Type Argument Description
      id string <optional>

      편집 지형의 고유 식별자

      geoVertex Array.<GeoPosition> <optional>

      외곽선 위경도 좌표 배열 (setLandOption에서 Vector3 변환본으로 갱신)

      height number <optional>

      편집 지형의 고도값

      inclineEdit boolean <optional>

      경사면 편집 활성화 여부

      insideIncline boolean <optional>

      내부 경사면 생성 여부

      inclineRate number <optional>

      경사율

      insidePrecision number <optional>

      경사면 외곽선 보간 정밀도

      dataLevel number <optional>

      편집 지형 고도 데이터의 타일 레벨

      drawarg UDrawArg <optional>

      내부 드로우 인자 객체. 좌표 변환 및 지형 높이 조회에 사용

      center WorldPositionVector3 <optional>

      편집 영역의 중심 좌표 (월드 좌표계 기준). Z값은 해당 지점의 지형 높이

      box UBox3 <optional>

      편집 영역 전체를 감싸는 경계 박스

      geos Double_Array.<number> <optional>

      다각형을 구성하는 폐합 좌표 배열 ([x, y, z] 형태)

      vertex Array.<WorldPositionVector3> <optional>

      편집 영역 외곽선의 월드 좌표 배열

      oriVertex Array.<GeoPositionVector3> <optional>

      사용자 최초 입력 원본 지리 좌표 배열

      textureGeoVertex Array.<GeoPositionVector3> <optional>

      텍스처 매핑용 버퍼 확장 좌표. 비경사 모드일 때만 생성

      insideError boolean <optional>

      내부 경사면 생성 실패 여부

      inclineBevelThickness number <optional>

      경사면 두께값. 중심점 Z값과 고도 중 큰 값 기준으로 계산

      inclineBevelSize number <optional>

      경사면 외곽 폴리곤 축소 크기. inclineBevelThickness × inclineRate

      inclineVertex Array.<WorldPositionVector3> <optional>

      경사면 외곽선의 월드 좌표 배열

      inclineGeoVertex Array.<GeoPositionVector3> <optional>

      경사면 외곽선의 위경도 좌표 배열

      drawGeoVertex Array.<GeoPositionVector3> <optional>

      경사면 시각화용 외곽 버퍼 지리 좌표 배열

      inclineBox UBox3 <optional>

      경사면 영역의 경계 박스

      url string <optional>

      편집 대상 HeightXYZLayer의 base URL

      unitHeight number <optional>

      레이어의 단위 높이값 (기본값: 4)

      dataLayer U3dHeightXYZLayer <optional>

      편집 영역을 포함하는 레이어

      heightScale number <optional>

      UMF 1.x에 적용하는 레이어 전역 고도 복원 배율 (기본값: 1.0)

      heightOffset number <optional>

      UMF 1.x에 적용하는 레이어 전역 고도 복원 오프셋 (기본값: 0.0)

      DataOPT_Inputobject

      편집 지형 입력 옵션. 사용자가 addCustomLand/editCustomLand에 최초 전달하는 원본 옵션

      Properties:
      Name Type Argument Description
      id string <optional>

      편집 지형의 고유 식별자. 미지정 시 GUID로 자동 생성

      geoVertex Array.<GeoPosition>

      편집 지형 외곽선의 위경도 좌표 배열 (필수)

      height number

      편집 지형의 고도값 (양수: 지면 위, 음수: 지면 아래) (필수)

      inclineEdit boolean <optional>

      경사면 편집 활성화 여부

      insideIncline boolean <optional>

      내부 경사면 생성 여부. inclineEdit가 true일 때 함께 사용

      inclineRate number <optional>

      경사율. 중심점과 고도 차이에 곱해져 경사 깊이를 결정 (기본값: 1)

      insidePrecision number <optional>

      경사면 외곽선 보간 정밀도. 값이 클수록 더 부드럽게 생성 (기본값: 10)

      dataLevel number <optional>

      편집 지형 고도 데이터의 타일 레벨

      UAnalyCustomLandCOobject

      ~extends UAnaly~UAnalyCO
      UAnalyCustomLand 생성자 옵션

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

      분석 클래스 이름

      maxarea number <optional>
      1000000

      지형편집 영역제한 너비(km²)

      height number <optional>
      0

      편집지형 높이

      style UAnalyCustomLand.types~CustomLandStyleCO <optional>

      편집지형 draw 스타일

      drawStyle any <optional>

      편집지형 draw 스타일