公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.geometry
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回指定投影中指定特徵的幾何。
用量 | 傳回 |
---|
Image.geometry(maxError, proj, geodesics) | 幾何圖形 |
引數 | 類型 | 詳細資料 |
---|
這個:feature | 元素 | 用來取得幾何圖形的地圖項目。 |
maxError | ErrorMargin,預設值:null | 執行任何必要重投影時可容許的最大誤差量。 |
proj | 投影,預設值:null | 如果指定,幾何圖形會採用這個投影。如果未指定,幾何圖形會採用預設投影。 |
geodesics | 布林值,預設值為空值 | 如果為 true,幾何圖形就會有測地線邊緣。如果為 false,邊緣會是指定投影中的直線。如果為空值,邊緣解讀方式會與原始幾何圖形相同。如未指定 proj,系統會忽略這個引數。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eReturns the geometry of an image feature, optionally reprojected and with controlled error margins.\u003c/p\u003e\n"],["\u003cp\u003eAccepts parameters to specify the maximum reprojection error, the desired output projection, and whether to use geodesic edges.\u003c/p\u003e\n"],["\u003cp\u003eBy default, returns the geometry in its original projection and with the original edge interpretation.\u003c/p\u003e\n"],["\u003cp\u003eIf a projection is specified without defining geodesic behavior, the original geometry's edge interpretation is preserved.\u003c/p\u003e\n"],["\u003cp\u003eApplies to image features and allows extraction of their geometric properties for further analysis or visualization.\u003c/p\u003e\n"]]],[],null,["# ee.Image.geometry\n\nReturns the geometry of a given feature in a given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------|----------|\n| Image.geometry`(`*maxError* `, `*proj* `, `*geodesics*`)` | Geometry |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature from which the geometry is taken. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | If specified, the geometry will be in this projection. If unspecified, the geometry will be in its default projection. |\n| `geodesics` | Boolean, default: null | If true, the geometry will have geodesic edges. If false, it will have edges as straight lines in the specified projection. If null, the edge interpretation will be the same as the original geometry. This argument is ignored if proj is not specified. |"]]