[ckan-dev] Spatial search for datasets with dataset collection
Tracy Harton
tracy at amphibioustech.com
Mon Jul 22 05:32:29 UTC 2013
I'm trying to search for datasets from a dataset collection, given an area of interest. This works interactively and the following returns 6 datasets as expected:
http://catalog.data.gov/dataset?q=&collection_package_id=b64c5a49-80bf-4fd2-ac7f-c2f7fe474ae6&ext_bbox=-121,45,-120,46
If I try to do an API call to retrieve the data as JSON, the following always returns 0 results, but no error, regardless of bbox:
http://catalog.data.gov/api/search/dataset?q=&collection_package_id=b64c5a49-80bf-4fd2-ac7f-c2f7fe474ae6&ext_bbox=-121,45,-120,46
Leaving off the bbox returns the entire collection as expected:
http://catalog.data.gov/api/search/dataset?q=&collection_package_id=b64c5a49-80bf-4fd2-ac7f-c2f7fe474ae6
For a package_search, which does work for ext_bbox, I am not able to filter by collection_package_id, only "q"
So, is ext_bbox supported for this API search? Or is this a data.gov issue? Any help would be appreciated...
/tracy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130721/272d2241/attachment.html>
More information about the ckan-dev
mailing list