-
Notifications
You must be signed in to change notification settings - Fork 13
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
Subsetting by geometry #52
Comments
interesting indeed! 2 comments:
|
@pebau ah ok - so you're saying it would apply to both /rangeset and /coverage
On this, when the geometry is used to subset the coverage, the cell in the coverage can overlap, intersect, touch etc. - so the topology parameter could be specified to include/exclude certain parts of the coverage as the user requests. the default could just be |
@jyucsiro, so what would that mean in, say, a TIFF image -how would you technically exclude pixels from the image? |
We are interested in this sort of feature as well. In our case, we've always thought of it in terms of allowing users to provide a geometry in some standard shape file format (GeoJSON, ESRI Shapefile, KML, GeoRSS, etc) and we subset to that geometry. A concern I'd have about the URL-based approach is that it may become an impediment to users who have a shapefile that is not hosted anywhere. |
|
@pebau Some coverage formats are organized into cells. The cell is the smallest addressable unit. |
This seems like a bit much to ask of a Coverage API. It has to recognize a wide body of Feature formats, know how to extract the geometry from each, convert that geometry into a common form, then execute the subsetting logic. What if we coupled an API-Processing with the API-Coverage? We could host one or more "Extract Geometry" processes which would extract and return the geometry in a form that API-Coverages would understand. We could then pass that result as an input parameter to the subsetting operation. Use simple building blocks to build complex functionality? |
@cmheazel: now that is an interesting idea as well. I wonder, though, how could that all go into one request? |
it would be like a WCPS request I guess |
right, that is possible thanks to the agreement found at the Bethesda meeting using |
@pebau could you elaborate on that agreement or point to docs? It sounds useful. What would that request do? |
@bilts: there was no written document as outcome of the coverages sprint, but a summary slide deck: https://docs.google.com/presentation/d/1gMpGKc6JnsCHUATH21E1VWC-80ItvxMW8Wdkdhy4n-g/edit#slide=id.g6d47947f6b_2_5 |
Isn't subsetting a coverage by a defined feature/geometry exactly what the EDR API is all about? |
it fits naturally with coverages; MetOcean-WCS has defined a variety of such polygon/raster clipping functionality, and in our extension to WCPS such functionalit is available, too - see this demo: https://standards.rasdaman.com/demo_clipping.html |
Coverages SWG call: We'll try to coordinate with EDR starting at next month's sprint. |
Subsetting by geometry will be possible with a CQL2 |
For geoscience use cases, we may want to subset a coverage by a defined feature/geometry. For example, subsetting a defined region from a continental-scale evapotranspiration coverage dataset.
Could this be offered in the coverages api? e.g.
where Geometry URL could be either cached/known to the server or retrieved in real-time. Suggest hasGeometry aligning with the GeoSPARQL property. An example of this is a Watershed/Drainage basin called "Darling river" in Australia. The URL for this could be: http://gds.loci.cat/geometry/geofabric2_1_1_awradrainagedivision/9400206
In the case that it is known/cached on the server, then the coverage api implementation will go ahead and perform subsetting and return the result (rangeset data for input geometry).
Where the geometry would need to be retrieved, the server could resolve the URL and via content negotiation (say HTTP Accept: application/json), the server could retrieve the geometry and go from there...
Alternatively, a client might drop in the geometry as WKT.
Lastly, the client might want to specify whether to return contained or overlapping cells as a separate parameters, e.g.
... where
topology
could be fromSection 7. Topology Vocabulary Extension (relation_family)
in the GeoSPARQL spec, such as, 'sfContains'.The text was updated successfully, but these errors were encountered: