-
Notifications
You must be signed in to change notification settings - Fork 14
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 filters for file/service types #4
Comments
Probably around here, if the CKAN API provides filtering on file type of resources. Currently we use Unfortunately not all servers provide that. Any ideas? |
I poked around the CKAN API and found https://data.overheid.nl/data/api/action/resource_search?query=format:JSON This returns all JSON resources. It also works with SHAPE and WFS https://data.overheid.nl/data/api/action/resource_search?query=format:SHAPE The API returns more resources than are listed in the web interface, though. I guess it also fetches unpublished ones? Of course, this won't work if servers don't provide a value for |
Great find. Could be implemented with doing a
Don't know for sure, but as I see it https://data.overheid.nl/data/api/action/resource_search?query=format:SHAPE returns resources whereas https://data.overheid.nl/data/dataset?res_format=SHAPE returns datasets. Maybe there are datasets with more than one shape?
We tested several dozens of servers, so I don't remember by heart and I couldn't find one after a quick look into my notes. One that at least comes close by providing a key with an empty value ( |
You are completely right about resources vs. datasets: datasets can contain many resources, see the docs. You could decide to ignore "formatless" resources as most of them will be useless (to QGIS). The one you link to has two resources. The "formatless" one eventually leads to a 404. |
In addition to geo data, many CKAN catalogues contain non-geo data as well. Showing the latter in QGIS does not make much sense.
It would be nice therefore to be able to filter on common geo file/service types such as
Shapefiles
,GeoJSON
,WMS
,WFS
, etc.Can you indicate which files in the codebase need to be extended in order to implement this?
The text was updated successfully, but these errors were encountered: