-
Notifications
You must be signed in to change notification settings - Fork 23
TADA Team Data Retrieval Updates #568
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
Conversation
Co-authored-by: Katie/Ryn Willi (she/her) <49761053+kathryn-willi@users.noreply.github.com>
Add sf, big data to TADA_DataRetrieval
Co-authored-by: B Steele <32140074+steeleb@users.noreply.github.com>
# Make a reference table for tribal area type + url matching | ||
map_service_urls <- tibble::tribble( | ||
~tribal_area, ~url, | ||
"Alaska Native Allotments", "https://geopub.epa.gov/arcgis/rest/services/EMEF/Tribal/MapServer/0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this reference the internal shapefiles instead of relying on web services?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would be more efficient since we already store them within the package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something you want me to take a look at? Or plan to ask Ross lab about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbrousil We store copies of the tribal .shp files here for use in the TADA_OverviewMap, and update them frequently as part of routine maintenance: https://github.com/USEPA/EPATADA/tree/develop/inst/extdata
Do you think we should use those directly in TADA_DataRetreival instead of querying the service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cristinamullin Yep, I think that makes more sense! I only used the web service because I wasn't aware that they were stored internally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I am aiming to merge this PR in by the end of the day tomorrow. I can create a separate issue for this update & we can address it later.
added shapefile query example
@mbrousil My understanding is that this is designed to work on polygons only, is that correct? In that case, we can add that detail to the documentation for users. Although in theory, we could expand in the future using a similar logic to TADA_GetATTAINS() for lines, where the polygon area used for the "line" query could actually be the area of the catchments intersecting the line. I am not sure if there are a lot of use cases for this. Any thoughts? |
@cristinamullin That is correct! I don't personally have any insight into potential use cases but I don't see drawbacks to that expansion. |
After the new USGS dataRetrieval related issues are resolved, these edits will be pushed through from this branch/PR: #575 |
https://github.com/USEPA/EPATADA/pull/566/files#top editable by TADA Team.