公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Algorithms.GeometryConstructors.Rectangle
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
從指定角點建構矩形多邊形。
用量 | 傳回 |
---|
ee.Algorithms.GeometryConstructors.Rectangle(coordinates, crs, geodesic, evenOdd) | 幾何圖形 |
引數 | 類型 | 詳細資料 |
---|
coordinates | 清單 | 矩形的低角和高角,以 Point 清單或 x、y 順序的數字配對表示。 |
crs | 投影,預設值:null | 座標的座標參考系統。預設值為輸入內容的投影,其中數字假設為 EPSG:4326。 |
geodesic | 布林值,預設值為空值 | 如果為 false,投影畫面中的邊緣會是直線。如果是 true,邊緣會彎曲,以遵循地球表面的最短路徑。預設值為輸入內容的測地線狀態,如果輸入內容為數字,則為 true。 |
evenOdd | 布林值,預設值為 true | 如果為 true,多邊形內部會依據偶數/奇數規則判斷,也就是說,如果某個點要抵達無限遠的點,必須穿過奇數個邊緣,該點就會位於多邊形內部。否則,多邊形會使用左內側規則,也就是沿著外殼邊緣依指定順序走過頂點時,內側位於左側。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eCreates a rectangular polygon using specified corner points.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of coordinate system, edge curvature (straight or geodesic), and polygon interior calculation (even/odd or left-inside rule).\u003c/p\u003e\n"],["\u003cp\u003eAccepts corner points as a list of Points or coordinate pairs (x,y).\u003c/p\u003e\n"],["\u003cp\u003eDefaults to EPSG:4326 coordinate system if not specified and geodesic edges if input is numerical.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Rectangle\n\nConstructs a rectangular polygon from the given corner points.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Rectangle(coordinates, `*crs* `, `*geodesic* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The low and then high corners of the Rectangle, as 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| `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. |"]]