公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Algorithms.GeometryConstructors.LinearRing
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
根據指定的座標建構線性環,如果環未明確關閉,系統會自動在結尾處新增第一個點。
用量 | 傳回 |
---|
ee.Algorithms.GeometryConstructors.LinearRing(coordinates, crs, geodesic, maxError) | 幾何圖形 |
引數 | 類型 | 詳細資料 |
---|
coordinates | 清單 | 以 x,y 順序排列的點或數字組合清單。 |
crs | 投影,預設值:null | 座標的座標參考系統。預設值為輸入內容的投影方式,其中 Numbers 會假設為 EPSG:4326。 |
geodesic | 布林值,預設值:空值 | 如果設為 false,投影時邊緣會變直。如果為 true,邊緣會以曲線方式沿著地球表面上的最短路徑移動。預設值為輸入值的測地線狀態,如果輸入值為數字,則為 true。 |
maxError | ErrorMargin,預設值:空值 | 輸入幾何圖形必須重新投影至明確要求的結果投影或測地狀態時,所產生的最大誤差。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eCreates a LinearRing geometry from a list of coordinates, closing it automatically if needed.\u003c/p\u003e\n"],["\u003cp\u003eAccepts coordinates as Points or number pairs (x,y), optionally specifying a coordinate reference system (CRS) and geodesic behavior.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to EPSG:4326 CRS and geodesic lines if the inputs are numbers or have a geodesic state.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.LinearRing\n\nConstructs a LinearRing from the given coordinates, automatically adding the first point at the end if the ring is not explicitly closed.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.LinearRing(coordinates, `*crs* `, `*geodesic* `, `*maxError*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The 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. |"]]