I am using the EE API in a Python Jupyter Notebook.
I am building a map based on the LSIB_SIMPLE country boundaries. My objective is to display my information in a map and adapt the zoom to fit the country size (Singapore is way smaller than Congo for example)
I would like to compute both the longest north-south and east-west lines inside the country to adapt my zoom accordingly on this object:
country_code = CG country = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017').filter(ee.Filter.eq('country_co', country_code)) geom = country.geometry()
- Is there a way to find the 4 needed points in the geometry object (northest, southest, eastest, westest) so that I can compute distances between them ?