Earth Engine은 Geometry 유형으로 벡터 데이터를 처리합니다. GeoJSON 사양은 Point(일부 투영의 좌표 목록), LineString (점 목록), LinearRing (닫힌 LineString), Polygon (LinearRing 목록으로, 첫 번째는 셸이고 후속 링은 구멍임)를 비롯하여 Earth Engine에서 지원하는 도형 유형을 자세히 설명합니다. Earth Engine은 MultiPoint, MultiLineString, MultiPolygon도 지원합니다. GeoJSON GeometryCollection도 지원됩니다. 단, Earth Engine 내에서는 이름이 MultiGeometry입니다.
Geometry 객체 만들기
코드 편집기 도형 도구를 사용하여 대화형으로 도형을 만들 수 있습니다. 자세한 내용은 Earth Engine 코드 편집기 페이지를 참고하세요. 프로그래매틱 방식으로 Geometry를 만들려면 생성자에 적절한 좌표 목록을 제공합니다. 예를 들면 다음과 같습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-02-18(UTC)"],[[["Earth Engine uses the `Geometry` type to represent vector data, supporting various shapes like points, lines, and polygons, as defined in the GeoJSON specification."],["Geometries can be created interactively with the Code Editor tools or programmatically by providing coordinate lists to `Geometry` constructors."],["`LinearRing` geometries are closed shapes where the starting and ending coordinates are the same, unlike `LineString` geometries."],["Multi-part geometries, such as `MultiPoint` or `MultiPolygon`, can be broken down into individual geometries using the `geometries()` method."]]],["Earth Engine utilizes the `Geometry` type for vector data, supporting GeoJSON geometries like `Point`, `LineString`, `LinearRing`, and `Polygon`, along with their multi-part counterparts (`MultiPoint`, etc.). Geometries can be created interactively or programmatically by providing coordinate lists to constructors, as shown in the provided JavaScript code. `LinearRing` differs from `LineString` by being closed. Multi-part geometries can be disassembled into individual components using the `geometry.geometries()` method.\n"]]