公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Feature.area
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回地圖項目預設幾何圖形的面積。點和線字串的面積為 0,而多重幾何圖形的面積是其元件面積的總和 (相交的面積會計算多次)。
用量 | 傳回 |
---|
Feature.area(maxError, proj) | 浮點值 |
引數 | 類型 | 詳細資料 |
---|
這個:feature | 元素 | 用來取得幾何圖形的地圖項目。 |
maxError | ErrorMargin,預設值:null | 執行任何必要重投影時可容許的最大誤差量。 |
proj | 投影,預設值:null | 如果指定,結果會以這個投影的座標系統單位表示。否則會以平方公尺為單位。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003earea()\u003c/code\u003e function calculates and returns the area of a feature's geometry.\u003c/p\u003e\n"],["\u003cp\u003ePoints and line strings have an area of 0, while the area of multi-geometries is the sum of their component areas.\u003c/p\u003e\n"],["\u003cp\u003eThe returned area is in square meters by default, but can be calculated in the units of a specified projection.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify a maximum error tolerance for reprojection during area calculation.\u003c/p\u003e\n"]]],["The function calculates the area of a feature's default geometry, returning a float value. Point and line string geometries return an area of 0, while multi-geometries return the sum of their component areas. The `maxError` argument controls reprojection error tolerance, and `proj` specifies the output projection; otherwise, the area is returned in square meters. The function takes a feature element as the primary input.\n"],null,["# ee.Feature.area\n\nReturns the area of the feature's default geometry. Area of points and line strings is 0 and the area of multi geometries is the sum of the areas of their components (intersecting areas are counted multiple times).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------|---------|\n| Feature.area`(`*maxError* `, `*proj*`)` | Float |\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 result will be in the units of the coordinate system of this projection. Otherwise it will be in square meters. |"]]