-
Notifications
You must be signed in to change notification settings - Fork 3
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
Data Package Specification Improvements #9
Comments
For the Categories we can use a simple textfield if needed with multiple values possible. In a second step should there be a kind of auto completion, so that the creator of the datapackage can easily reuse categorisations he has already made? For the different resource representations I think the easiest way would be to use the name property of a dataset to group the resources. So every representation ahs to have the same name. To distinguish between the several representations the Format or media type property has to be displayed aside the name always. (add always the field format or media type to views display or display mode.) |
"threshold": {
|
|
|
ok for the "id" property for the resource (instead of ressource_id). for points 2 and 3 I have to think a little bit more on how to describe that. However, nothing prevents us from adding additional formats to our specification (i.e,, shape-zip and application/x-zip) |
I have dedicated some time to think of various possibilities concerning points 2 and 3, and I came to the following conclusion: Being said that, the possibility of using WFS and WCS services enables more flexibility to provide in a single resource object the same dataset in various formats, and we should take advantage of such possibility. My intention is to keep it as simple as possible since the CLARITY datapackage has introduced already many properties, which means more complexity for processing the package. In that sense, my proposal is to keep using the "path" property for encoding the whole wms/wfs/wcs request for obtaining the online resource. In addition, we have the optional property "service_type" (a replacemente for the "mapping_service_type" I added in the last update of the specification) to indicate what kind of service it is i,e., "ogc:wms", "ogc:wfs", "ogc:wcs", "ogc:wms-t", "osm", etc... With just those two parameters any program could "intelligently" parse the url, the parameters and request the resource in any other format that is offered by the wms/wfs/wcs service and that it is more suitable for its porpuses. |
This works only if you can provide one URL template that is suitable for all formats. E.g. consider the following really simple example: https://clarity.meteogrid.com/geoserver/wcs?SERVICE=WCS&VERSION=2.0.1" 'wcs' ist not only a request parameter but also part of the URI itself (/geoserver/wcs). The parameter VERSION=2.0.1 is probably not valid for WFS / WCS, a WMS request might need an additional layers parameter, etc. So how could such a common template for the most common OGC services we are using (WMS, WCS, WFS) look like? |
I don't think this is a problem since the approach I proposed still works with that url. In Java (and I guess in many other programming languages) you can "dissect" a url (in Java with the URL object) and extract:
With that information, the client could build a new request. It just has to find in this case the format key-value parameter and replace "(geo)tif" by any other format supported by the service (for the whole list just use a GetCapabilities). VERSION parameter is not mandatory in an OGC request, if not provided the service assumes the latest one. If its present in the path url, then the client should decide whether to use it as it is or ask for a different one that it can understand ... The additional layer parameters should be either already in the path url or they can be modified by the client if needed (e.g.,width and height in a WMS query ... the data package producer can provide a default ones, but this should be setup in the query by the mapping client depending on its own screen resolution). |
Different Resource Representations: I have added the "mapview" property, so now, we can provide an alternative "view" of the georesource via a wms or similar mapping service that can be added as layer (not a wfs or wcs) in a map client. |
I have updated the json descriptor for the Naples data package according to the latest changes I made today in the specification. |
ok, then we can get the wms information from the mapview property and we can use the same format within the internal data model of the Map-Component. |
This can be considered done. |
Here we collect some improvements to the Data Package Specification and the the implementation that come up during the creation of the 1st Data Package.
Since the node types are already implemented in Drupal and (example) data packages exist, no heavy structural changes to the the specification should be made. Adding some properties should be o.k.
We need to be able to assign (several?) categories to resources in order to be able group interrelated resources, e.g. when population exposure resources are split into different age groups. See also Data Package Support map-component#2 (comment)
The same resource may be available in different representations (data formats, service interfaces) and thus accessible by different paths, e.g. the same Hazard Layers are accessed as image by WMS URL (path property) by the Map Component and as coverage by WCS URL by the Table Component and the Impact Model Service. We could simple add the same resource twice but with different values for path and mediatype and format but we should also indicate somehow that those different resources are in fact just another representation of the same data.
Thresholds (expressed by percentages relative to the baseline) for normalising absolute values (e.g. number of hot days) to low/medium/high for tabular visualisation should become part of the Data Package Resource. We could add one text property that contains a simple JSON Format like the one used to define Criteria Functions for Scenario Analysis.
The text was updated successfully, but these errors were encountered: