公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Geometry.LinearRing
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
构建一个描述 LinearRing 的 ee.Geometry。如果最后一个点不等于第一个点,则会在末尾添加第一个点的副本。
为方便起见,如果所有实参都是数字,则可以使用可变数量实参。这样,您就可以使用偶数个实参创建测地线 EPSG:4326 LinearRing,例如 ee.Geometry.LinearRing(aLng, aLat, bLng, bLat, ..., aLng, aLat)。
用法 | 返回 |
---|
ee.Geometry.LinearRing(coords, proj, geodesic, maxError) | Geometry.LinearRing |
参数 | 类型 | 详细信息 |
---|
coords | List<Geometry>|List<List<Number>>|List<Number> | 环中的点列表。可以是 GeoJSON“LinearRing”格式的坐标列表,也可以是至少包含三个描述点的 ee.Geometry 对象的列表,还可以是至少包含六个数字的列表,用于定义至少三个点的 [x,y] 坐标。 |
proj | 投影,可选 | 相应几何图形的投影。如果未指定,则默认为输入 ee.Geometry 的投影,如果没有 ee.Geometry 输入,则默认为 EPSG:4326。 |
geodesic | 布尔值,可选 | 如果为 false,则投影中的边缘为直线。如果为 true,则边会弯曲,以遵循地球表面的最短路径。默认值为输入的测地线状态,如果输入为数字,则为 true。 |
maxError | ErrorMargin,可选 | 输入几何图形必须重新投影到明确请求的结果投影或测地线状态时的最大误差。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["This code constructs a `LinearRing` geometry. It takes a list of coordinates (`coords`), an optional projection (`proj`), an optional geodesic setting, and an optional maximum error (`maxError`). If the last point in `coords` isn't the same as the first, it adds a duplicate. Varargs can be used with numbers, creating geodesic EPSG:4326 LinearRings. `coords` can be a list of coordinates, point geometries, or numbers. `geodesic` determines if edges are straight or curved.\n"],null,[]]