I am trying to find a way (simplest is the best) to retrieve the largest extent in a list of tuple extents in python.
The list is looking like that:
extents = [(-180.0, -90.0, 180.0, 83.624), (-124.731, 24.956, -66.97, 49.372), (-122.42, - 37.818, 151.207, 52.516)] Could it be a good idea to sum the absolute value of each coordinates and retrieve the highest?
Or does a geographic library such OGR could be used?
Edit:
I have created Envelope objects with GDAL library:
envelopes = [Envelope(extent) for extent in extents] Now I have to compare the area of each? Any suggestion?
Can anybody give explanation on this? Thanks a lot.