is_empty_feature#

is_empty_feature(f: dict) bool[source]#

Check if a GeoJSON Feature lacks geometry info.

This was added to handle empty geoms which appear when using OSM vector tiles.

Parameters:

f (dict) – A GeoJSON-like mapping of a Feature.

Returns:

Whether the feature contains any geometry.

Return type:

bool