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
Add USGS PAD data to FedData? #100
Comments
I love the PAD-US dataset, and USGS has ArcGIS web services available that should make including it straightforward. The way we access the NHD could serve as a template. I support including PAD, but haven't had ample time for development lately (beyond bug-squashing). I'll add it to the to-do for the next major release! |
Found some time, and was excited to implement this. Do you mind testing out the implementation? Install the dev version, and see |
@bocinsky thanks for diving in! Sorry for the slow follow up. I just dove in. The function works very well as intended. I do have a philosophical question/feedback, though: From a simplicity and easy-of-use perspective, especially for those not as familiar with the PAD-US data, this is a bit confusing. If each of the returned features represented distinct geometries (e.g. as is the case for the multiple layers returned by I realize that you did not come up with this data structure, so if you want to maintain the FedData approach of adhering to the raw data structure of the data source, I can definitely understand that. However, you might consider one or more of the following approaches, which might improve ease-of-use for the function in the majority of use cases:
|
Hey @kevinwolz, sorry for the month and a half delay in responding to this... it's been a busy summer! Thanks for this discussion... you highlight something that I've really struggled with in developing FedData. I definitely have landed on the "don't mess with the original data" side of things, and have tried to adhere to that across the different datasets FedData provides access to. An example is the incredibly complicated SSURGO data structure, which returns a list with a spatial ( That being said, the approach you suggest for PAD is quite sensible — and is in fact what I've done myself when I've used the PAD-US data. For FedData, I might take a somewhat different approach where I do spatial joins between all of the layers, which would preserve geometrical differences between the layers and identify (via a new column) from which PAD-US layer the data derive. (This is similar to your third bullet point, I think, except retaining all of the unique geometries.) The simplest solution for now, I think, is to just be opinionated about the layer we download by default ("Manager Name" seems right) and retain the ability for people to get the other layers. I'll open this back up and implement that suggestion. |
Hey @bocinsky, I use your functions all the time and am excited to access PAD-US data! I've tried several variation of get_padus() that all give me the same error that I can't figure out. Do you know what could be causing this? When I run:
I get the following error:
Thank you! |
Hi there! I'm glad you find FedData useful! I'm at a bit of a loss as to what is going wrong here, though... I confirmed on a friend's computer that this is a problem on Windows machines (I use a Mac), so it definitely isn't just an issue for you. Let me get on a VM and I'll try and get to the bottom of it. |
Alright, I think this is fixed; tested on a local install of Windows 10. @lanescher could you install the latest dev version from Github and give it a go? Closing for now. |
That worked! Thanks so much! |
@bocinsky have you considered adding the USGS's PAD (Protected Areas Database) to FedData? It's an incredible, aggregated dataset across federal, state, county, and other agencies. I'm not sure if they have an easy way to query. I'd be happy to help if you thought it was feasible/of interest.
The text was updated successfully, but these errors were encountered: