Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
earthpulse committed Jan 21, 2025
1 parent 5c38e35 commit 55e20ce
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions tutorials/notebooks/geodb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@
"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"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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."
]
Expand Down

0 comments on commit 55e20ce

Please sign in to comment.