NEFSC / READ-SSB-CHAJI-Effort-Displacement---Scallop

Other
0 stars 0 forks source link

data_processing does not run #198

Closed mle2718 closed 1 year ago

mle2718 commented 1 year ago

Fails here: https://github.com/NEFSC/READ-SSB-CHAJI-Effort-Displacement---Scallop/blob/845b884de0fa6fcaf26396dae59cbad40731763b/data_wrangle/data_processing.Rmd#L621-L625 with this error message:

Error in st_geos_binop("within", x, y, sparse = sparse, prepared = prepared,  : 
  st_crs(x) == st_crs(y) is not TRUE

I tried to fix it with

lease_sp<-st_transform(lease_sp,crs)

However, I get this message:

lease_sp<-st_transform(lease_sp,crs)
final_product_lease <- st_join(point_geo_lease, lease_sp, join = st_within)

Error in s2_geography_from_wkb(x, oriented = oriented, check = check) : 
  Evaluation error: Found 1 feature with invalid spherical geometry.
  [16] Loop 1 is not valid: Edge 0 has duplicate vertex with edge 56.

15f950b

mle2718 commented 1 year ago

@mchaji : I think this can be saved until after after the draft goes out.

mchaji commented 1 year ago

I'm pretty sure I can fix that in Arc. I've had a similar error before and it was a bug in the original shapefile.

mle2718 commented 1 year ago

@mchaji gross. When you fix it, don't rename the shapefile. Then we don't have to fiddle with changing filenames.