公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Feature.convexHull
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回特徵,幾何圖形已替換為原始幾何圖形的凸包。單一點的凸包是該點本身,共線點的凸包是線,其他所有點的凸包都是多邊形。請注意,如果退化多邊形的所有頂點都位於同一條線上,就會產生線段。
用量 | 傳回 |
---|
Feature.convexHull(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\u003eReturns a Feature with the geometry replaced by its convex hull, which represents the smallest convex polygon that encloses all points of the original geometry.\u003c/p\u003e\n"],["\u003cp\u003eThe convex hull can be a point, a line, or a polygon, depending on the input geometry.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts an optional \u003ccode\u003emaxError\u003c/code\u003e parameter for reprojection tolerance and a \u003ccode\u003eproj\u003c/code\u003e parameter to specify the projection.\u003c/p\u003e\n"]]],["The `convexHull` function replaces a feature's geometry with its convex hull. A single point remains a point, collinear points become a line, and other cases result in a polygon (possibly a line segment if degenerate). It accepts optional `maxError` for reprojection tolerance and `proj` to specify the projection. If projection isn't specified the operation uses a spherical coordinate system with meters for distance.\n"],null,["# ee.Feature.convexHull\n\nReturns the feature with the geometry replaced by the convex hull of the original geometry. The convex hull of a single point is the point itself, the convex hull of collinear points is a line, and the convex hull of everything else is a polygon. Note that a degenerate polygon with all vertices on the same line will result in a line segment.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------|---------|\n| Feature.convexHull`(`*maxError* `, `*proj*`)` | Feature |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature containing the geometry whole hull is being calculated. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | The projection in which to perform the operation. If not specified, the operation will be performed in a spherical coordinate system, and linear distances will be in meters on the sphere. |"]]