If have a GeoDataFrame with loaded coordinates. I'm using apply to truncate the coordinates precision - is there a faster way than using apply?
gdf.geometry = gdf.geometry.apply( lambda p: sg.Point(np.trunc(p.x), np.trunc(p.y)))
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community