Skip to content

Commit fc84a35

Browse files
committed
finished up the todos
1 parent fc93a61 commit fc84a35

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

api-spec/wfs-stac.md

+42-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,48 @@ STAC endpoint.
2727

2828
### WFS Structure
2929

30-
TODO: Give an overview of the main WFS endpoints
30+
A Web Feature Service is a standard API that represents collections of geospatial data.
31+
32+
```
33+
GET /collections
34+
```
35+
36+
Lists the collections of data on the server that can be queried ([7.11](https://rawgit.com/opengeospatial/WFS_FES/master/docs/17-069.html#_feature_collections_metadata)),
37+
and each describes basic information about the geospatial data collection, like its name and description, as well as the
38+
spatial and temporal extents of all the data contained. A STAC search extension would only query those collections which
39+
have data that validates as STAC `Items` - with a datetime field and references to assets. But a STAC can live alongside
40+
other WFS collections, like an organization might choose to have their building and road data in WFS collections, alongside
41+
their STAC-compatible imagery data.
42+
43+
```
44+
GET /collections/{name}/items?bbox=160.6,-55.95,-170,-25.89
45+
```
46+
47+
Requests all the data in the collection that is in New Zealand. The filtering is made to be compatible with the STAC API,
48+
and the two specs seek to share the general query and filtering patterns. The key difference is that a STAC search endpoint
49+
will do cross collection search. A typical WFS will have multiple collections, and each will just offer search for its particular
50+
collection.
51+
3152

3253
### Strongly Typed STAC data
3354

34-
TODO: explain the advantages of using WFS to provide schema information at a collection level, for stronger typing
35-
of data. Plus transactions.
55+
The scenario that using a WFS with a STAC search endpoint that makes the most sense is when a data provider wants to provide more
56+
insight in to heterogenous data that is exposed on a STAC search. For example they might have imagery data from different satellite providers
57+
and even some drone data. These will all have different fields. A single STAC endpoint can be used to expose them all. But it can be quite
58+
useful to let users inspect a particular data type. That area of the `/collections/{name}` hierarchy can be used to expose additional
59+
metadata and validation schemas that give more insight in to that data, as well as a place to query just that data.
60+
61+
In general it is recommended to provide as much information about different types of data as possible, so using WFS is recommended. But
62+
the standalone option is there for those who just want to expose their data as quickly and easily as possible. Note a WFS can
63+
provide heterogenous data from any of its collections endpoints, but the STAC API recommendation is to use one collection per
64+
logical data type.
65+
66+
### Potential Transaction Extension
67+
68+
The other benefit of individual collection endpoints is that it gives a logical location for simple RESTful transactions
69+
70+
```
71+
POST /collections/landsat/items/
72+
```
73+
74+
There have been a couple implementations that have done transactions, and soon will contribute an extension.

0 commit comments

Comments
 (0)