Closed boshek closed 5 years ago
@boshek this looks right to me
I previously advocated removing all "bcgeographicwarehouse"
resources (https://github.com/bcgov/bcdata/pull/67#discussion_r281719511) because I erroneously thought they were all for the "Custom Download" resources (i.e., the handoff to the data distribution service), but this clearly shows I was wrong... including them only when format == "wms"
seems like the right call
I knew we had discussed this previously. Thanks for digging that up. An easy fix then .
A good catch on your part! 🕵
@ateucher
Created on 2019-06-19 by the reprex package (v0.3.0)
But when you try to retrieve the data with bcdc_get_data no WFS option is given:
I think the issues is the wfs are passing through
format_record
when thelocation
is "bcgwdatastore" when they also can be "bcgeographicwarehouse": https://github.com/bcgov/bcdata/blob/f691fbb2b9740bd9aa3ae3f8542668bb5b5e12b5/R/bcdc_search.R#L220-L229I think this fix is as simple as adding "bcgeographicwarehouse" in: