0

In Google Earth Engine, I let the user define a polygon to give the geometry that the routine is applied to. As part of that, I would like to determine a "center" of the polygon. How does one extract a center of an irregular polygon?

1 Answer 1

1

You can use to following:

// Compute the centroid of the polygon.
var centroid = polygon.centroid();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.