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

OCONUS use of hfsubsetR #6

Open
glitt13 opened this issue Jan 27, 2025 · 0 comments
Open

OCONUS use of hfsubsetR #6

glitt13 opened this issue Jan 27, 2025 · 0 comments

Comments

@glitt13
Copy link

glitt13 commented Jan 27, 2025

I'm trying to figure out how to use hfsubsetR with OCONUS. I've downloaded v2.2 gpkg files from lynker-spatial, and their local paths are referenced in the gpkg arguments.

> packageVersion("hfsubsetR")
[1] ‘0.3.3’

Puerto Rico example:

#Rio Guanajibo 18.070258, -66.996524
hfsubsetR::get_subset(xy=c(-66.996524,18.070258,4326),gpkg = "~/noaa/hydrofabric/v2.2/prvi_reference.gpkg")

which returns the following:

Error : network not in gpkg.
Error: Error : network not in gpkg.

I also tried

hfsubsetR::get_subset(xy=c(-66.996524,18.070258,4326),gpkg = "~/noaa/hydrofabric/v2.2/prvi_nextgen.gpkg")

which returns

Error in `dplyr::collect()`:
! Failed to collect lazy table.
Caused by error:
! Query execution failed, cannot open layer.

I get this same error when trying another location in Alaska:

hfsubsetR::get_subset(xy=c(-149.098220,61.618974,4326),gpkg = "/Users/guylitt/noaa/hydrofabric/v2.2/ak_nextgen.gpkg")

Any suggestions on what I should try next?

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

1 participant