You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed searchid bug, added unit tests, improved main readme (#236)
* fixed searchid bug and added unit tests
* readme tweaks
* black line length
* change line length in flake settings
* revert line length change, going to do it in separate PR
* autoformatter
* retrigger github actions
* Delete scripts/test-mosaic
* hack for not needing secrets AZURITE_ACCOUNT_KEY
* shorten command
* testing output
* remove grep
* quotes
* trying another method
* trying another method
* remove extra echo
* tweaks
* remove echo
* use env
* test failure
* fail step
* try removing azurite from api validator
* autoformatter
* pipeline tweak
* Delete storage-use-azurite?tabs=visual-studio,blob-storage
---------
Co-authored-by: Marc Lichtman <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ This repository contains two components of the Planetary Computer APIs: the STAC
11
11
The `pcstac` project provides a STAC API which indexes Microsoft's publicly available [geospatial data](https://planetarycomputer.microsoft.com/catalog) and an API for searching through this large collection.
12
12
The `pctiler` provides visualization and data access capabilities for the data in the Planetary Computer.
13
13
14
-
## Azure Functions
14
+
## Azure Functions (a.k.a. Funcs)
15
15
16
-
This repository also contains Azure Functions that provide additional endpoints for working with Planetary Computer data and metadata. This includes Function endpoints for generating images and animations based on STAC searches, using the tiler to render mosaiced data from Collections
16
+
This repository also contains Azure Functions that provide additional endpoints for working with Planetary Computer data and metadata. This includes Function endpoints for generating images and animations based on STAC searches, using the tiler to render mosaiced data from Collections.
17
17
18
18
## Collection configuration
19
19
@@ -61,26 +61,27 @@ This project uses a variation on [scripts to rule them all](https://github.com/g
61
61
62
62
#### Environment setup and building images
63
63
64
-
Before setting up the local environment, ensure that you have set the AZURITE_ACCOUNT_KEY environment variable.
65
-
The account key can be found in the [Azurite GitHub repository](https://github.com/Azure/Azurite?tab=readme-ov-file#usage-with-azure-storage-sdks-or-tools)
64
+
Before setting up the local environment, you must set the AZURITE_ACCOUNT_KEY environment variable to the Azurite default
65
+
account key, a string that can be [found here](https://github.com/Azure/Azurite?tab=readme-ov-file#usage-with-azure-storage-sdks-or-tools).
66
66
67
67
For example, you can set the environment variable in your terminal with:
This will build containers, apply database migrations, and load the development data.
79
80
80
-
After migrations and development database loading are in place, you can rebuild the docker images with
81
+
After migrations and development database loading are in place, you can rebuild the docker images with:
81
82
82
83
```console
83
-
> ./scripts/update
84
+
./scripts/update
84
85
```
85
86
86
87
`pip` dependencies in `setup.py` are collected and installed through requirements files.
@@ -99,11 +100,13 @@ az login
99
100
To run the servers, use
100
101
101
102
```console
102
-
> ./scripts/server
103
+
./scripts/server
103
104
```
104
105
105
106
This will bring up the development database, STAC API, Tiler, Azure Functions, and other services.
106
107
108
+
To test the tiler, try going to <http://localhost:8080/data/mosaic/info?collection=naip>.
109
+
107
110
#### Testing and and formatting
108
111
109
112
To run tests, use
@@ -148,4 +151,4 @@ See the [Helm chart repository](https://microsoft.github.io/planetary-computer-a
148
151
149
152
### Functions
150
153
151
-
See the [Function package repository](https://microsoft.github.io/planetary-computer-apis) published to GitHub pages for the published Azure Functions.
154
+
See the [Function package repository](https://microsoft.github.io/planetary-computer-apis) published to GitHub pages for the published Azure Functions.
0 commit comments