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

Sanctuaries polygons from zip files are hard coded? #5

Open
MathewBiddle opened this issue Nov 15, 2023 · 8 comments
Open

Sanctuaries polygons from zip files are hard coded? #5

MathewBiddle opened this issue Nov 15, 2023 · 8 comments

Comments

@MathewBiddle
Copy link

I was interested in doing a quick analysis of how much the Sanctuaries polygons overlay with IOOS RA polygons (MathewBiddle/sandbox#6) and I recalled that seascapeR pulls in the Sanctuary polygons.

After some sleuthing, I can see that it looks like you pull in the polygons via hardcoded urls to the zip packages available at https://sanctuaries.noaa.gov/library/imast_gis.html

seascapeR/R/read.R

Lines 86 to 92 in 1f3ecc9

url <- case_when(
sanctuary == "mbpr" ~
glue("https://sanctuaries.noaa.gov/media/gis/{sanctuary}_py.zip"),
sanctuary == "pmnm" ~
glue("https://sanctuaries.noaa.gov/library/imast/{sanctuary}_py.zip"),
T ~
glue("https://sanctuaries.noaa.gov/library/imast/{sanctuary}_py2.zip"))

My question is, has anyone tried to reach out to ONMS to see if those shapefiles/polygons can be made available via a webservice, like WMS/WFS or something OGC compliant? Even as geojson endpoints would be helpful.

@MathewBiddle
Copy link
Author

@7yl4r
Copy link
Member

7yl4r commented Nov 20, 2023

I haven't heard any discussion about that. If we are going to set up a service I might like to do something similar with the NERRS boundaries and other RoIs we frequently analyze.

NOTE: this function is in extractR also: https://github.com/marinebon/extractr/blob/main/R/read.R#L69-L153

@MathewBiddle
Copy link
Author

Found the arcgis service https://services2.arcgis.com/C8EMgrsFcRFL6LrL/arcgis/rest/services/NOAA_National_Marine_Sanctuaries_(2023)_/FeatureServer

I was able to read in the layers and put them on a map in this gist, if you're curious:
https://gist.github.com/MathewBiddle/a7267347edc4caf90a3347ba99850d0c

@bbest
Copy link
Contributor

bbest commented Nov 30, 2023

Hi @MathewBiddle,

Yeah, it's preferred to have the sanctuaries as a web service. These were compiled originally for onmsR::sanctuaries and here's the geojson produced by onmsR: data-raw/sanctuaries.R:

More recently I added the Chumash Proposed NMS in calcofi4r::cc_places with the intent of adding this back to onmsR::sanctuaries.

You rightly point out the need for spatial web services to these spatial features. To this end, I hope to make vector tile services using pg_tileserv.

@MathewBiddle
Copy link
Author

@mimidiorio
Copy link

Service updated...should be good to go now.

@MathewBiddle
Copy link
Author

Thanks @mimidiorio!

@mimidiorio
Copy link

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

No branches or pull requests

4 participants