Skip to content

Commit 2b45da6

Browse files
Merge pull request #167 from sat-utils/develop
release 0.2.4
2 parents cb44931 + 4c87fc9 commit 2b45da6

File tree

17 files changed

+593
-62
lines changed

17 files changed

+593
-62
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [v0.2.4] - 2019-06-02
10+
11+
### Added
12+
- Add `fields` filter to return only specific fields
13+
- Added SATAPI_URL environment variable for defining a custom root URL used for creating hierarchical links. Otherwise, the root URL will try to be inferred from the headers.
14+
- Gzip compression added for clients that support it (via `Accept-Encoding`)
15+
- Added SATAPI_ES_PRECISION environment variable to change the precision for underlying intersection geometry queries. This will have an adverse impact on performance and storage size. If changed after ingestion, a reindex operation will need to be performed. It defaults to '5mi' (5 miles).
16+
17+
### Fixed
18+
- Fix datetime range to be inclusive (i.e., gte and lte)
19+
- Fixed `next` links to properly stringify geometries
20+
21+
922
## [v0.2.3] - 2019-01-29
1023

1124
### Fixed
@@ -84,6 +97,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8497
- Refactor and improve splitting
8598

8699
[Unreleased]: https://github.com/sat-utils/sat-api/compare/master...develop
100+
[v0.2.4]: https://github.com/sat-utils/sat-api/compare/v0.2.3...v0.2.4
87101
[v0.2.3]: https://github.com/sat-utils/sat-api/compare/v0.2.2...v0.2.3
88102
[v0.2.2]: https://github.com/sat-utils/sat-api/compare/v0.2.1...v0.2.2
89103
[v0.2.1]: https://github.com/sat-utils/sat-api/compare/v0.2.0...v0.2.1

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,21 @@
44

55
Sat-api is a STAC compliant web API for searching and serving metadata for geospatial data (including but not limited to satellite imagery).
66

7-
Development Seed runs an instance of sat-api for the Landsat-8 and Sentinel-2 imagery that is [hosted on AWS](https://aws.amazon.com/earth/). You can access this at https://sat-api.developmentseed.org.
7+
Development Seed runs an instance of sat-api for the Landsat-8 and Sentinel-2 imagery that is [hosted on AWS](https://aws.amazon.com/earth/). You can access this at https://sat-api.developmentseed.org using the [API documentation](http://sat-utils.github.io/sat-api/) for reference and examples.
88

99
The STAC version supported by a given version of sat-api is shown in the table below. Additional information can be found in the [CHANGELOG](CHANGELOG.md)
1010

1111
| sat-api | STAC |
1212
| -------- | ---- |
13-
| 0.1.0 | 0.5.0 |
14-
| 0.2.x | 0.6.0 |
15-
16-
17-
## Documentation
18-
19-
The documentation includes information on the STAC spec, how to use the API, manage Elasticsearch, as well as how to deploy your own API on AWS. Access the documentation [here](docs/docs.md)
13+
| 0.1.0 | 0.5.x |
14+
| 0.2.x | 0.6.x |
2015

2116

2217
## Development
2318

2419
Sat-api includes a number of NPM packages (in the packages/ directory) that are used to create and populate an instance of sat-api. See the [sat-utils org on NPM](https://www.npmjs.com/org/sat-utils) for the full list of packages. [Lerna](https://github.com/lerna/lerna) is used for for managing these packages.
2520

26-
The latest version released is on the [master branch](https://github.com/sat-utils/sat-api/tree/master), and the latet development version is on the [develop](https://github.com/sat-utils/sat-api/tree/develop) branch.
21+
The latest version released is on the [master branch](https://github.com/sat-utils/sat-api/tree/master), and the latest development version is on the [develop](https://github.com/sat-utils/sat-api/tree/develop) branch.
2722

2823
### Building local version
2924

docs/api.md

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,14 @@ Retrieve Items matching filters. Intended as a shorthand API for simple queries.
153153

154154
<h3 id="search-stac-items-by-simple-filtering.-parameters">Parameters</h3>
155155

156-
|Parameter|In|Type|Required|Description|
156+
|Name|In|Type|Required|Description|
157157
|---|---|---|---|---|
158158
|bbox|query|array[number]|false|Only features that have a geometry that intersects the bounding box are|
159159
|time|query|string|false|Either a date-time or a period string that adheres to RFC3339. Examples:|
160160
|limit|query|integer|false|The optional limit parameter limits the number of items that are|
161161
|query|query|string|false|query for properties in items. Use the JSON form of the queryFilter used in POST.|
162162
|sort|query|[sort](#schemasort)|false|Allows sorting results by the specified properties|
163+
|fields|query|[fields](#schemafields)|false|Determines the shape of the features in the response|
163164

164165
#### Detailed descriptions
165166

@@ -388,7 +389,7 @@ retrieve items matching filters. Intended as the standard, full-featured query A
388389

389390
<h3 id="search-stac-items-by-full-featured-filtering.-parameters">Parameters</h3>
390391

391-
|Parameter|In|Type|Required|Description|
392+
|Name|In|Type|Required|Description|
392393
|---|---|---|---|---|
393394
|body|body|[searchBody](#schemasearchbody)|false|none|
394395

@@ -1690,3 +1691,70 @@ null
16901691
|crs|http://www.opengis.net/def/crs/OGC/1.3/CRS84|
16911692
|trs|http://www.opengis.net/def/uom/ISO-8601/0/Gregorian|
16921693

1694+
<h2 id="tocSfieldsfilter">fieldsFilter</h2>
1695+
1696+
<a id="schemafieldsfilter"></a>
1697+
1698+
```json
1699+
{
1700+
"fields": {
1701+
"geometry": true,
1702+
"include": [
1703+
[
1704+
"eo:cloud_cover"
1705+
]
1706+
],
1707+
"exclude": [
1708+
[
1709+
"eo:sun_azimuth"
1710+
]
1711+
]
1712+
}
1713+
}
1714+
1715+
```
1716+
1717+
*Determines the shape of the features in the response*
1718+
1719+
### Properties
1720+
1721+
|Name|Type|Required|Restrictions|Description|
1722+
|---|---|---|---|---|
1723+
|fields|[fields](#schemafields)|false|none|The geometry member determines whether the geometry is populated or is null. The include and exclude members specify an array of property names that are either included or excluded from the result, respectively. If both include and exclude are specified, include takes precedence. id and links are required feature properties and cannot be excluded.|
1724+
1725+
<h2 id="tocSfields">fields</h2>
1726+
1727+
<a id="schemafields"></a>
1728+
1729+
```json
1730+
{
1731+
"geometry": true,
1732+
"include": [
1733+
[
1734+
"eo:cloud_cover"
1735+
]
1736+
],
1737+
"exclude": [
1738+
[
1739+
"eo:sun_azimuth"
1740+
]
1741+
]
1742+
}
1743+
1744+
```
1745+
1746+
*The geometry member determines whether the geometry is populated or is null. The
1747+
include and exclude members specify an array of property names that are either
1748+
included or excluded from the result, respectively. If both include and exclude
1749+
are specified, include takes precedence.
1750+
id and links are required feature properties and cannot be excluded.
1751+
*
1752+
1753+
### Properties
1754+
1755+
|Name|Type|Required|Restrictions|Description|
1756+
|---|---|---|---|---|
1757+
|geometry|boolean|false|none|none|
1758+
|include|[string]|false|none|none|
1759+
|exclude|[string]|false|none|none|
1760+

0 commit comments

Comments
 (0)