bcgov / bcdata

An R package for searching & retrieving data from the B.C. Data Catalogue
https://bcgov.github.io/bcdata
Apache License 2.0
81 stars 12 forks source link

spatial filters returning error? #249

Closed hgriesbauer closed 3 years ago

hgriesbauer commented 3 years ago

Hi bcdata team,

I keep getting an error "Error in INTERSECTS(., rom_bdy) : unused argument (rom_bdy)" when I try and run the following code:

download natural regions

rom_bdy<- bcdc_query_geodata("dfc492c0-69c5-4c20-a6de-2c9bc999301f") %>% filter(ORG_UNIT=="ROM") %>% collect()

download park data

bc_parks<- bcdc_query_geodata("1130248f-f1a3-4956-8b2e-38d29d3e4af7") %>% filter(PROTECTED_LANDS_CODE=="PP") %>% INTERSECTS(rom_bdy) %>% collect()

Any ideas what I am doing wrong here?

Thank you! Hardy

hgriesbauer commented 3 years ago

Woops - please ignore! I was forgetting to include (filter(INTERSECTS())

Sorry!