ee.Geometry.LinearRing.getInfo

서버에서 이 객체의 값을 가져옵니다.

콜백 함수가 제공되지 않으면 요청이 동기적으로 이루어집니다. 콜백이 제공되면 요청이 비동기적으로 이루어집니다.

동기 모드는 서버를 기다리는 동안 다른 모든 코드 (예: EE 코드 편집기 UI)를 중지하므로 비동기 모드를 사용하는 것이 좋습니다. 비동기 요청을 하려면 getInfo()보다 evaluate()를 사용하는 것이 좋습니다.

이 객체의 계산된 값을 반환합니다.

사용반환 값
LinearRing.getInfo(callback)객체
인수유형세부정보
다음과 같은 경우: computedobjectComputedObjectComputedObject 인스턴스입니다.
callback함수(선택사항)선택적 콜백입니다. 제공되지 않으면 호출이 동기적으로 이루어집니다.

코드 편집기 (JavaScript)

// Define a LinearRing object.
var linearRing = ee.Geometry.LinearRing(
    [[-122.091, 37.420],
     [-122.085, 37.422],
     [-122.080, 37.430]]);

// Apply the getInfo method to the LinearRing object.
var linearRingGetInfo = linearRing.getInfo();

// Print the result to the console.
print('linearRing.getInfo(...) =', linearRingGetInfo);

// Display relevant geometries on the map.
Map.setCenter(-122.085, 37.422, 15);
Map.addLayer(linearRing,
             {'color': 'black'},
             'Geometry [black]: linearRing');

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

import ee
import geemap.core as geemap

Colab (Python)

# Define a LinearRing object.
linearring = ee.Geometry.LinearRing(
    [[-122.091, 37.420], [-122.085, 37.422], [-122.080, 37.430]]
)

# Apply the getInfo method to the LinearRing object.
linearring_get_info = linearring.getInfo()

# Print the result.
display('linearring.getInfo(...) =', linearring_get_info)

# Display relevant geometries on the map.
m = geemap.Map()
m.set_center(-122.085, 37.422, 15)
m.add_layer(linearring, {'color': 'black'}, 'Geometry [black]: linearring')
m