I try to generate a feauture collection of 1 single rectangle coverring the whole world. The why is here unrelevant. In my test suit I want to check that this rectange exista and that its coordinates are effectively the min/max of EPSG:4326.
Here is how I build the object:
rectangle = ee.Geometry.Rectangle([-180, -90, 180, 90])
fc = ee.FeatureCollection(data2)
surprisingly if try to get the coordinates of the total geometry I get infinity everywhere:
coords = fc.geometry().bounds().coordinates().getInfo()
coords
>>> [['-Infinity', '-Infinity'],
['Infinity', '-Infinity'],
['Infinity', 'Infinity'],
['-Infinity', 'Infinity'],
['-Infinity', '-Infinity']]
but if I do the same without extracting the coordinate I see the expected values in the json :
json = fc.geometry().bounds().getInfo()
json
>>> {'type': 'Polygon',
'coordinates': [[[-180, -90],
[180, -90],
[180, 90],
[-180, 90],
[-180, -90]]]}
Can someone explain what is happening when I extract them ?