filter_dataframe_by_geojson: Filter data.frame by GeoJSON polygon

View source: R/processing.R

filter_dataframe_by_geojsonR Documentation

Filter data.frame by GeoJSON polygon

Description

This function does a test of only the unique (lat, lon) coordinates against the polygon. Then it joins the result to the full dataset with a data.table keyed semi-join.

Usage

filter_dataframe_by_geojson(df, geojson_file)

Arguments

df

data.frame with latitude and longitude columns

geojson_file

Character string path to GeoJSON file

Value

data.frame with spatially filtered data


varunayan documentation built on Oct. 30, 2026, 1:07 a.m.