coincident.overlaps.geographic_area#

coincident.overlaps.geographic_area(gf)#

Calculate the geographic area of each polygon in a GeoDataFrame in KM^2

Parameters:

gf (gpd.GeoDataFrame) – A GeoDataFrame containing the geometries for which the area needs to be calculated. The GeoDataFrame must have a geographic coordinate system (latitude and longitude).

Returns:

A Pandas Series containing the area of each polygon in the input GeoDataFrame.

Return type:

pd.Series

Raises:

TypeError – If the GeoDataFrame does not have a geographic coordinate system.

References