공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
도형 개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
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
를 만들려면 생성자에 적절한 좌표 목록을 제공합니다. 예를 들면 다음과 같습니다.
코드 편집기 (JavaScript)
var point = ee.Geometry.Point([1.5, 1.5]);
var lineString = ee.Geometry.LineString(
[[-35, -10], [35, -10], [35, 10], [-35, 10]]);
var linearRing = ee.Geometry.LinearRing(
[[-35, -10], [35, -10], [35, 10], [-35, 10], [-35, -10]]);
var rectangle = ee.Geometry.Rectangle([-40, -20, 40, 20]);
var polygon = ee.Geometry.Polygon([
[[-5, 40], [65, 40], [65, 60], [-5, 60], [-5, 60]]
]);
이전 예에서 LineString
와 LinearRing
의 차이점은 LinearRing
가 목록의 시작과 끝에 동일한 좌표를 사용하여 '닫힌' 점이 다릅니다.
개별 Geometry
는 여러 도형으로 구성될 수 있습니다. 다중 부분 Geometry
를 구성 기하학으로 분할하려면 geometry.geometries()
를 사용하세요. 예를 들면 다음과 같습니다.
코드 편집기 (JavaScript)
// Create a multi-part feature.
var multiPoint = ee.Geometry.MultiPoint([[-121.68, 39.91], [-97.38, 40.34]]);
// Get the individual geometries as a list.
var geometries = multiPoint.geometries();
// Get each individual geometry from the list and print it.
var pt1 = geometries.get(0);
var pt2 = geometries.get(1);
print('Point 1', pt1);
print('Point 2', pt2);
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eEarth Engine uses the \u003ccode\u003eGeometry\u003c/code\u003e type to represent vector data, supporting various shapes like points, lines, and polygons, as defined in the GeoJSON specification.\u003c/p\u003e\n"],["\u003cp\u003eGeometries can be created interactively with the Code Editor tools or programmatically by providing coordinate lists to \u003ccode\u003eGeometry\u003c/code\u003e constructors.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLinearRing\u003c/code\u003e geometries are closed shapes where the starting and ending coordinates are the same, unlike \u003ccode\u003eLineString\u003c/code\u003e geometries.\u003c/p\u003e\n"],["\u003cp\u003eMulti-part geometries, such as \u003ccode\u003eMultiPoint\u003c/code\u003e or \u003ccode\u003eMultiPolygon\u003c/code\u003e, can be broken down into individual geometries using the \u003ccode\u003egeometries()\u003c/code\u003e method.\u003c/p\u003e\n"]]],["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"],null,["# Geometry Overview\n\nEarth Engine handles vector data with the `Geometry` type. The\n[GeoJSON spec](http://geojson.org/geojson-spec.html) describes in\ndetail the type of geometries supported by Earth Engine, including `Point`\n(a list of coordinates in some projection), `LineString` (a list of points),\n`LinearRing` (a closed `LineString`), and `Polygon` (a\nlist of `LinearRing`s where the first is a shell and subsequent rings are\nholes). Earth Engine also supports `MultiPoint`, `MultiLineString`,\nand `MultiPolygon`. The GeoJSON GeometryCollection is also supported, although\nit has the name `MultiGeometry` within Earth Engine.\n\nCreating Geometry objects\n-------------------------\n\nYou can create geometries interactively using the Code Editor geometry tools. See the\n[Earth Engine Code Editor page](/earth-engine/guides/playground#geometry-tools) for more\ninformation. To create a `Geometry` programmatically, provide the\nconstructor with the proper list(s) of coordinates. For example:\n\n### Code Editor (JavaScript)\n\n```javascript\nvar point = ee.Geometry.Point([1.5, 1.5]);\n\nvar lineString = ee.Geometry.LineString(\n [[-35, -10], [35, -10], [35, 10], [-35, 10]]);\n\nvar linearRing = ee.Geometry.LinearRing(\n [[-35, -10], [35, -10], [35, 10], [-35, 10], [-35, -10]]);\n\nvar rectangle = ee.Geometry.Rectangle([-40, -20, 40, 20]);\n\nvar polygon = ee.Geometry.Polygon([\n [[-5, 40], [65, 40], [65, 60], [-5, 60], [-5, 60]]\n]);\n```\n\nIn the previous examples, note that the distinction between a `LineString`\nand a `LinearRing` is that the `LinearRing` is \"closed\" by\nhaving the same coordinate at both the start and end of the list.\n\nAn individual `Geometry` may consist of multiple geometries. To break a\nmulti-part `Geometry` into its constituent geometries, use\n`geometry.geometries()`. For example:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Create a multi-part feature.\nvar multiPoint = ee.Geometry.MultiPoint([[-121.68, 39.91], [-97.38, 40.34]]);\n\n// Get the individual geometries as a list.\nvar geometries = multiPoint.geometries();\n\n// Get each individual geometry from the list and print it.\nvar pt1 = geometries.get(0);\nvar pt2 = geometries.get(1);\nprint('Point 1', pt1);\nprint('Point 2', pt2);\n```"]]