公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Algorithms.GeometryConstructors.MultiPolygon
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
根据给定的坐标构造 MultiPolygon。
用法 | 返回 |
---|
ee.Algorithms.GeometryConstructors.MultiPolygon(coordinates, crs, geodesic, maxError, evenOdd) | 几何图形 |
参数 | 类型 | 详细信息 |
---|
coordinates | 列表 | 多边形列表,或者对于一个简单的多边形,一个点列表或按 x、y 顺序排列的数字对列表。 |
crs | 投影,默认值:null | 相应坐标的坐标参考系统。默认值为输入的投影,其中假设数字采用 EPSG:4326。 |
geodesic | 布尔值,默认值:null | 如果为 false,则投影中的边缘为直线。如果为 true,则边会弯曲,以遵循地球表面的最短路径。默认值为输入的测地线状态,如果输入为数字,则为 true。 |
maxError | ErrorMargin,默认值:null | 输入几何图形必须重新投影到明确请求的结果投影或测地线状态时的最大误差。 |
evenOdd | 布尔值,默认值:true | 如果为 true,则多边形内部将由偶数/奇数规则确定,即如果一个点穿过奇数条边才能到达无穷远的点,则该点位于多边形内部。否则,多边形将使用左侧内部规则,即按给定顺序遍历顶点时,内部位于外壳边缘的左侧。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCreates a MultiPolygon geometry from a list of Polygons, or a list of Points/coordinate pairs for a single polygon.\u003c/p\u003e\n"],["\u003cp\u003eAllows specification of coordinate reference system (\u003ccode\u003ecrs\u003c/code\u003e), geodesic behavior, maximum error for reprojection, and polygon interior calculation method.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to using the projection and geodesic state of the input coordinates, assuming EPSG:4326 for numeric inputs if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over polygon interiors using the even/odd rule (default) or the left-inside rule.\u003c/p\u003e\n"]]],["The `MultiPolygon` constructor creates a geometry from a list of polygon coordinates. Input `coordinates` define either multiple polygons or a single polygon via points or number pairs. Optional parameters include `crs` for coordinate system, `geodesic` to determine edge curvature, `maxError` for reprojection precision, and `evenOdd` for polygon interior determination. This function returns a `Geometry` object, and default values are available for `crs`, `geodesic`, `maxError`, and `evenOdd`.\n"],null,["# ee.Algorithms.GeometryConstructors.MultiPolygon\n\nConstructs a MultiPolygon from the given coordinates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.MultiPolygon(coordinates, `*crs* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | A list of Polygons, or for one simple polygon, 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| `maxError` | ErrorMargin, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |\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. |"]]