Relative Content

Tag Archive for geopandas

Contradictory (to me) ValueError message in geopandas `sjoin` and `sjoin_nearest`: GeoDataFrame demanded although GeoDataFrame supplied

I have two data sets with point data in ‘lat’ and ‘lon’ columns. A set of points of interest were mapped by two different people at two different points in time and I want to check their consistency. Thus, many of the points in the first data set correspond (approximately within a few meters) to a point in the second data set. Visually for a small sample that’s easy enough to do by plotting them on top of each other, but with several hundred points, I need a spatial merge. I found the sjoin_nearest method in geopandas.