Skip to content
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

Ab/initial changes for mspc #1

Merged
merged 27 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2da874d
Modify readme
abarciauskas-bgse May 22, 2024
5b86d9e
Remove alternate URL and add planetary computer signing
abarciauskas-bgse May 22, 2024
e0e4a1e
Remove WMTS
abarciauskas-bgse May 22, 2024
56d2b0d
Remove application with auth from docs nav
abarciauskas-bgse May 22, 2024
bf1a1aa
Revert changes to collections endpoints.md
abarciauskas-bgse May 22, 2024
0672c74
Revert changes to collections endpoints.md
abarciauskas-bgse May 22, 2024
31fd37a
Revert changes to items endpoints.md
abarciauskas-bgse May 22, 2024
cbeb23a
remove wmts from collections_endpoints.md
abarciauskas-bgse May 22, 2024
96af83e
Remove WMTS from items_endpoints.md
abarciauskas-bgse May 22, 2024
456683f
Revert change to alternate url
abarciauskas-bgse May 22, 2024
001059c
Revert change to alternate url
abarciauskas-bgse May 22, 2024
b53de47
Merge branch 'ab/initial-changes-for-mspc' of github.com:developments…
abarciauskas-bgse May 22, 2024
2913b23
Revert change to items_endpoints.md
abarciauskas-bgse May 23, 2024
343dd03
Reame stac_reader, add blob regex to settings, rewrite signing logic
abarciauskas-bgse May 23, 2024
726ef87
Add tests
abarciauskas-bgse May 23, 2024
6b4c619
Add netcdf fixture json
abarciauskas-bgse May 23, 2024
3c0157c
Fix import and add include_asset_types to test
abarciauskas-bgse May 23, 2024
6f25ae3
Linting
abarciauskas-bgse May 23, 2024
67e5df3
Add doc string
abarciauskas-bgse May 23, 2024
379ae6b
Use modifier in ItemSearch and not explicit signed_url
abarciauskas-bgse May 23, 2024
b0c1901
Remove blob regex
abarciauskas-bgse May 24, 2024
bbb3396
Fix unused import and linting
abarciauskas-bgse May 24, 2024
6ec6ad4
Remove unused models
abarciauskas-bgse May 24, 2024
79bcd7b
Revert change to settings
abarciauskas-bgse May 24, 2024
2757a65
Remove unused fixture
abarciauskas-bgse May 24, 2024
ab31e93
Change repo name
abarciauskas-bgse May 24, 2024
8640e48
Fix links in readme
abarciauskas-bgse May 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# titiler-stacapi
# titiler-stacapi-mspc

<p align="center">
<img width="800" src="https://github.com/developmentseed/titiler-stacapi/assets/10407788/bb54162e-9a47-4a67-99e5-6dc91098e048">
<p align="center">Connect titiler to STAC APIs</p>
<p align="center">Connect titiler to MS Planetary Computer STAC API</p>
</p>

<p align="center">
Expand Down
16 changes: 6 additions & 10 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
site_name: TiTiler.STACApi
site_description: Connect titiler to STAC APIs.

docs_dir: 'src'
site_dir: 'build'
docs_dir: "src"
site_dir: "build"

repo_name: developmentseed/titiler-stacapi
repo_url: https://github.com/developmentseed/titiler-stacapi
Expand All @@ -17,13 +17,10 @@ extra:
nav:
- Home: index.md
- Endpoints:
- endpoints/index.md
- OGC WMTS: endpoints/ogc_wmts_endpoints.md
- Collections: endpoints/collections_endpoints.md
- Items: endpoints/items_endpoints.md
- TileMatrixSet: endpoints/tms_endpoints.md
- Customization:
- Authentication: custom/application_with_auth.md
- endpoints/index.md
- Collections: endpoints/collections_endpoints.md
- Items: endpoints/items_endpoints.md
- TileMatrixSet: endpoints/tms_endpoints.md
- Technical Considerations: technical-considerations.md
- Development - Contributing: contributing.md
- Release notes: release-notes.md
Expand All @@ -37,7 +34,6 @@ theme:
features:
- navigation.indexes


# https://github.com/kylebarron/cogeo-mosaic/blob/mkdocs/mkdocs.yml#L50-L75
markdown_extensions:
- admonition
Expand Down
88 changes: 0 additions & 88 deletions docs/src/custom/application_with_auth.md

This file was deleted.

26 changes: 0 additions & 26 deletions docs/src/endpoints/collections_endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
| ------ | ---------------------------------------------------------------------------------|-----------------------------------------|--------------
| `GET` | `/collections/{collection_id}/tiles/{TileMatrixSetId}/{z}/{x}/{y}[@{scale}x][.{format}]` | image/bin | Create a web map tile image for a collection and a tile index
| `GET` | `/collections/{collection_id}/{TileMatrixSetId}/tilejson.json` | JSON ([TileJSON][tilejson_model]) | Return a Mapbox TileJSON document
| `GET` | `/collections/{collection_id}/{TileMatrixSetId}/WMTSCapabilities.xml` | XML | return OGC WMTS Get Capabilities
| `GET` | `/collections/{collection_id}/{TileMatrixSetId}/map` | HTML | simple map viewer

### Tiles
Expand Down Expand Up @@ -106,29 +105,4 @@ Example:
- `https://myendpoint/collections/my-collection/WebMercatorQuad/tilejson.json?assets=B01&tile_format=png`
- `https://myendpoint/collections/my-collection/WorldCRS84Quad/tilejson.json?assets=B01&tile_scale=2`


### WMTS

`:endpoint:/collections/{collection_id}/{TileMatrixSetId}/WMTSCapabilities.xml`

- PathParams:
- **collection_id**: STAC Collection Identifier.
- **TileMatrixSetId**: TileMatrixSet name (e.g `WebMercatorQuad`).

- QueryParams:
- **tile_format**: Output image format, default is set to PNG.
- **tile_scale**: Tile size scale, default is set to 1 (256x256). OPTIONAL
- **minzoom**: Overwrite default minzoom. OPTIONAL
- **maxzoom**: Overwrite default maxzoom. OPTIONAL

!!! important
additional query-parameters will be forwarded to the `tile` URL. If no `defaults` mosaic metadata, **assets** OR **expression** will be required

Example:

- `https://myendpoint/collections/my-collection/WebMercatorQuad/WMTSCapabilities.xml?assets=B01`
- `https://myendpoint/collections/my-collection/WebMercatorQuad/WMTSCapabilities.xml?assets=B01&tile_format=png`
- `https://myendpoint/collections/my-collection/WorldCRS84Quad/WMTSCapabilities.xml?assets=B01&tile_scale=2`


[tilejson_model]: https://github.com/developmentseed/titiler/blob/2335048a407f17127099cbbc6c14e1328852d619/src/titiler/core/titiler/core/models/mapbox.py#L16-L38
62 changes: 0 additions & 62 deletions docs/src/endpoints/ogc_wmts_endpoints.md

This file was deleted.

350 changes: 0 additions & 350 deletions notebooks/demo_wmts_eoapi.ipynb

This file was deleted.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies = [
"pystac-client",
"pydantic>=2.4,<3.0",
"pydantic-settings~=2.0",
"planetary_computer~=1.0.0",
]
dynamic = ["version"]

Expand Down
53 changes: 0 additions & 53 deletions tests/test_render.py

This file was deleted.

Loading