reVX.setbacks.functions.features_with_centroid_in_county

features_with_centroid_in_county(features, county)[source]

Filter features to those with centroids within the given county.

Parameters:
  • features (geopandas.GeoDataFrame) – Features to setback from.

  • county (geopandas.GeoDataFrame) – Regulations for a single county.

Returns:

features (geopandas.GeoDataFrame) – Features that have centroid in county.