0

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)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.