Map Lat/Lon Points to a Shape File in R
问题 I am trying to identify the zip code for each set of lat/lon coordinate using a shapefile. Lat Lon data is extracted from: https://data.cityofchicago.org/Public-Safety/Crimes-2017/d62x-nvdr (Crimes_-_2001_to_present.csv) Shapefile: https://www2.census.gov/geo/tiger/PREVGENZ/zt/z500shp/ zt17_d00.shp (zip code definitions for the state of Illinois) library(rgeos) library(maptools) ccs<-read.csv("Crimes_-_2001_to_present.csv") zip.map <- readOGR("zt17_d00.shp") latlon<-ccs[,c(20,21)] str(latlon)