sp::SpatialPolygonsDataFrame(sp, d) : Object length mismatch:

44 Views Asked by At

I have 2 shapefiles both have different number of rows and polygons mentioned below :-

nrow(shape1) [1] 84172

nrow(shape2) [1] 35283

i am doing terra::erase or raster::erase on that . but i am facing below issue . can anyone help me with same ?

code below

erase <- terra::erase(shape1,shape2)

error :-

     sp has 78871 Polygons objects, but d has 78794 rows
0

There are 0 best solutions below