|
7 | 7 | "source": [ |
8 | 8 | "# 2. The Database: pgstac\n", |
9 | 9 | "\n", |
10 | | - "pgstac is a PostgreSQL extension that enables STAC metadata management in a PostgreSQL database.\n", |
| 10 | + "**pgstac** is a PostgreSQL extension that enables STAC metadata management in a PostgreSQL database.\n", |
11 | 11 | "eoAPI is useful to many organizations because the other components are configured to work seamlessly with STAC metadata that is stored in your pgstac database.\n", |
12 | 12 | "\n", |
13 | | - "**pypgstac** is a Python package for interacting with a pgstac database. You will learn how to use pypgstac to perform the following operations on a pgstac database:\n", |
| 13 | + "**pypgstac** is a Python package for interacting with a pgstac database. You will learn how to use pypgstac to perform the following operations on a pgstac database:\n", |
14 | 14 | "1. Generate STAC collection record\n", |
15 | 15 | "2. Add the record to the `collections` table with `Loader.load_collections`\n", |
16 | 16 | "3. Generate STAC item records\n", |
|
30 | 30 | "id": "jivtk3bczsd", |
31 | 31 | "metadata": {}, |
32 | 32 | "source": [ |
33 | | - "# Workshop Setup\n", |
| 33 | + "## Workshop Setup\n", |
34 | 34 | "\n", |
35 | 35 | "Run this cell to fetch database credentials. You'll be prompted to enter the workshop access token provided by your instructor.\n", |
36 | 36 | "\n", |
|
117 | 117 | "source": [ |
118 | 118 | "## 2.1 Load a collection object\n", |
119 | 119 | "\n", |
120 | | - "Start by creating a collection that will contain items within ~2 degrees of your provided location between January 1 2025 and April 18 2025." |
| 120 | + "We'll start by creating a collection, that will eventually contain items, within ~2 degrees of your provided location between January 1 2025 and April 18 2025." |
121 | 121 | ] |
122 | 122 | }, |
123 | 123 | { |
|
178 | 178 | "id": "af1fa92d-97b3-4b70-b7b9-b371a06741a3", |
179 | 179 | "metadata": {}, |
180 | 180 | "source": [ |
181 | | - "The `load_collections` method accepts an iterable of STAC collection dictionaries or a file path to a collection.json file or a .ndjson file with multiple collection records. You already have your `pystac.Collection` in memory in this session so you can just write it to a dictionary and upload it (in a list). \n", |
| 181 | + "The `load_collections` method accepts an iterable of STAC collection dictionaries, a file path to a collection.json file, or a [.ndjson](https://en.wikipedia.org/wiki/JSON_streaming#Newline-delimited_JSON) file with multiple collection records. You already have your `pystac.Collection` in memory in this session so you can just write it to a dictionary and upload it (in a list, i.e. iterable object). \n", |
182 | 182 | "\n", |
183 | 183 | "The `upsert` method will add your collection to the `collections` table if it does not exist and update any fields with new values if the record does already exist." |
184 | 184 | ] |
|
466 | 466 | "name": "python", |
467 | 467 | "nbconvert_exporter": "python", |
468 | 468 | "pygments_lexer": "ipython3", |
469 | | - "version": "3.12.12" |
| 469 | + "version": "3.12.11" |
470 | 470 | } |
471 | 471 | }, |
472 | 472 | "nbformat": 4, |
|
0 commit comments