diff --git a/tutorials/notebooks/geodb.ipynb b/tutorials/notebooks/geodb.ipynb index 71679255..36bd27d2 100644 --- a/tutorials/notebooks/geodb.ipynb +++ b/tutorials/notebooks/geodb.ipynb @@ -2,9 +2,18 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 5, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The autoreload extension is already loaded. To reload it, use:\n", + " %reload_ext autoreload\n" + ] + } + ], "source": [ "%load_ext autoreload\n", "%autoreload 2" @@ -12,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -1151,7 +1160,7 @@ } ], "source": [ - "database = 'eotdl' # cannot use a different name for the database\n", + "database = 'eotdl' # cannot use a different name for the database (try create database first)\n", "collection_name = 'eurosat-test'\t\n", "\n", "# need to convert to json first to handle nans\n", @@ -1944,9 +1953,21 @@ "Questions:\n", "\n", "- Can we query if all the columns are of type json?\n", + "\t- is technically possible, but not recommended (better to use the actual types or strings)\n", "- Can we query with nested dicts?\n", + "\t- we can store the nested dicts as strings and query them as such\n", "- Can we do spatial queries using geometry?\n", + "\t- `geodb.get_collection_by_bbox` (for arbitrary shapes, get the bbox first)\n", "- How does the STAC API work?\n", + "\t- every entry in a database, is a STAC item (feature), with its columns being the properties\n", + "\t- catalogs / collections are built around them\n", + "\t- We cannot use geodb STAC API, we need to enable an endppoint on eotdl API (stac compliant)\n", + "\n", + "Actions:\n", + "\n", + "- We should define the types of the columns in the metadata properly (for example, read some or all the data to infer the types)\n", + "- Explore querying the json format\n", + "- Add STAC API endpoint to eotdl API (instead of proxy the geodb STAC API)\n", "\n", "Otherwise, we load the data into a pandas dataframe and query there." ]