Closed mvisalli closed 5 years ago
On a related note, would it be possible to use this same script to evaluate s4 boundaries with EEZs to get # of EEZs that touch the s4 solution? Perhaps it could be similar to how it evaluates overlap with WDPA MPAs (that are not in hs) such as:
Do you have an updated eez shapefile with Antarctica removed? I can't seem to find it in the bbnj repo
@bbest do we need to be concerned about using st_intersection on a sphere? see this github issue
sf is informed that these are long/lat Earth coordinates, and the arctic polygon is supposed to include the pole, but st_intersects says it doesn't, which is wrong. It's wrong because it assumes coordinates are planar, and you are warned about that assumption.
(reality is somewhat more complicated: every polygon on the sphere divides the sphere into two parts, depending on the ring direction; this would have to be taken into account)
I hope to extend sf with routines that do proper intersections on the sphere; R package s2 from Ege @rubak seems to be a good candidate for this.
See also: r-spatial.org spherical geometry
Hi @mvisalli,
I think I was able successfully convert the GEOMETRYCOLLECTION
of North Pacific in ihor.shp into MULTIPOLYGON
by using st_collection_extract("POLYGON")
then group_by(...) %>% summarize()
. Need to jump on another call but wanted to share good news and will check in fixed outputs this afternoon.
Ben
Thanks @bbest I'll keep an eye out for updated results & will plug into manuscript when ready
Hi @mvisalli,
All set! Check out North Pacific Ocean now in the IHO seas revised (ihor):
https://ecoquants.com/bbnj-scripts/scenario_overlays.html#ihor
Hi @bbest,
I'm attempting to rerun scenario_overlays.Rmd with the new prioritir s4 solution (including Antarctica) in order to get updated % overlap of s4 with each IHO sea for manuscript.
When I get to the for loop on line 89:
I receive the following error:
I think it may be having trouble with
p_abnj
on line 93 -- perhaps since this .Rmd file is now in the repo bbnj-scripts instead of bbnj? But I'm not sure how to resolve this. Help??