Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wanted: SF EEZ layers in SOmap Data #114

Open
Maschette opened this issue Aug 22, 2024 · 2 comments
Open

Wanted: SF EEZ layers in SOmap Data #114

Maschette opened this issue Aug 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Maschette
Copy link

It would be good to have an SF version of the EEZ layers, probably separate in the first instance or stuff may break. For both of them it would be great if we can add some level of ID to them to make it easier to filter to set EEZ's I cant seem to see one in the data.

@Maschette Maschette added the enhancement New feature or request label Aug 22, 2024
@mdsumner
Copy link
Member

mdsumner commented Aug 22, 2024

here's a way

dsn <- "WFS:https://geo.vliz.be/geoserver/MarineRegions/wfs?Request=getCapabilities"
layers <- sf::st_layers(dsn)
layers$name      layers$geomtype  layers$driver    layers$features  layers$fields    layers$crs
grep("eez", layers$name, value = TRUE)
[1] "MarineRegions:eez_archipelagic_waters"
[2] "MarineRegions:eez_24nm"
[3] "MarineRegions:eez"
[4] "MarineRegions:eez_internal_waters"
[5] "MarineRegions:eez_land"
[6] "MarineRegions:eez_iho_union_v2"
[7] "MarineRegions:eez_boundaries"
[8] "MarineRegions:eez_12nm"
[9] "MarineRegions:eez_iho"


eez <- sf::read_sf(dsn, "MarineRegions:eez")

That's equivalent to what {mregions} would get I think.

ouch, hang on - this will present in the criminally-imagined form of a "MultiSurface", when it's nothing of the sort (a kind of esri gate-keeping). I'll extract and make it useable ...

@mdsumner
Copy link
Member

ok it's also quite large, so I'll have to look at this in depth a bit later

notes for self:

ogr2ogr eez.fgb -f FlatGeobuf -nlt MULTIPOLYGON  "WFS:https://geo.vliz.be/geoserver/MarineRegions/wfs?Request=getCapabilities" "MarineRegions:eez"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants