TransWikia.com

Determine center of a geometry polygon

Geographic Information Systems Asked on January 16, 2021

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?

One Answer

You can use to following:

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

Correct answer by MarcM on January 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP