お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Algorithms.GeometryConstructors.Polygon
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された座標から Polygon を作成します。
用途 | 戻り値 |
---|
ee.Algorithms.GeometryConstructors.Polygon(coordinates, crs, geodesic, maxError, evenOdd) | ジオメトリ |
引数 | タイプ | 詳細 |
---|
coordinates | リスト | 最初の要素がシェルで、残りの要素がホールである LinearRing のリスト。または、単純なポリゴンの場合は、x、y の順序で Point または Number のペアのリスト。 |
crs | Projection、デフォルト: null | 座標の座標参照系。デフォルトは入力の投影です。ここで、数値は EPSG:4326 であると想定されます。 |
geodesic | ブール値、デフォルト: null | false の場合、エッジは投影で直線になります。true の場合、エッジは地球の表面上の最短パスに沿って曲線になります。デフォルトは入力の測地線状態です。入力が数値の場合は true になります。 |
maxError | ErrorMargin、デフォルト: null | 入力ジオメトリを明示的にリクエストされた結果投影または測地線状態に再投影する必要がある場合のエラーの最大値。 |
evenOdd | ブール値。デフォルト値は true です。 | true の場合、ポリゴンの内部は偶数/奇数ルールによって決定されます。このルールでは、無限遠の点に到達するために奇数のエッジを横切る点が内部にあります。それ以外の場合、ポリゴンは左内側ルールを使用します。このルールでは、指定された順序で頂点を移動すると、内側がシェルのエッジの左側になります。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eCreates a polygon geometry from a list of coordinates, representing its outer boundary (shell) and optionally inner boundaries (holes).\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the coordinate system (\u003ccode\u003ecrs\u003c/code\u003e), whether edges are straight or follow Earth's curvature (\u003ccode\u003egeodesic\u003c/code\u003e), and error tolerance during reprojection (\u003ccode\u003emaxError\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDefines polygon interiors using either the even/odd rule (default) or the left-inside rule, affecting how points within the polygon are identified.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Polygon\n\nConstructs a Polygon from the given coordinates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Polygon(coordinates, `*crs* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | A list of LinearRings where the first is the shell and the rest are holes, or for a simple polygon, a list of Points or pairs of Numbers in x,y order. |\n| `crs` | Projection, default: null | The coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\n| `geodesic` | Boolean, default: null | If false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. The default is the geodesic state of the inputs, or true if the inputs are numbers. |\n| `maxError` | ErrorMargin, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |\n| `evenOdd` | Boolean, default: true | If true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order. |"]]