get_nearest_polygon: Get nearest polygon

Description Usage Arguments Value Examples

Description

gets the nearest polygon from a long lat point in a given SF dataframe

Usage

1
get_nearest_polygon(sf_dataframe, long, lat)

Arguments

sf_dataframe

A dataframe containing polygons to choose from

long

The longitude of the point

lat

The latitude of the point

Value

A 1*N SF dataframe containing the closest polygon

Examples

1
2
3
4
## Not run: 
polygon <- get_nearest_polygon(town, adress_data$longitude, adress_data$latitude)

## End(Not run)

peloyeje/map536-cadastertools documentation built on May 14, 2019, 4:03 a.m.