[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["Returns a point representing the center of the highest-dimension components of a geometry, ignoring lower-dimensional ones."],["The `centroid()` method can be applied to geometries and takes optional `maxError` and `proj` arguments for customization."],["`maxError` controls the tolerance for reprojection errors, while `proj` specifies the output projection (defaults to EPSG:4326)."],["It is demonstrated with examples using both JavaScript and Python within the Google Earth Engine environment."]]],["The `centroid` method calculates the center point of a geometry's highest-dimensional components, disregarding lower-dimensional ones. It accepts optional `maxError` and `proj` arguments to control error tolerance and output projection. For a `LineString` object, the method returns a `Geometry` object representing the centroid. Example code shows defining a `LineString`, applying `centroid`, and visualizing both on a map. The function is shown in Javascript and Python.\n"]]