geopandas.GeoDataFrame.active_geometry_name#
- property GeoDataFrame.active_geometry_name[source]#
Return the name of the active geometry column
Returns a string name if a GeoDataFrame has an active geometry column set. Otherwise returns None. You can also access the active geometry column using the
.geometryproperty. You can set a GeoSeries to be an active geometry using theset_geometry()method.- Returns:
- str
name of an active geometry column or None
See also
GeoDataFrame.set_geometryset the active geometry