Skip to content

Commit

Permalink
Update to register searches rather than mosaics
Browse files Browse the repository at this point in the history
  • Loading branch information
zstatmanweil committed Apr 23, 2024
1 parent eab3665 commit e2e9304
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions demo/Maxar/eoAPI_Maxar_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,7 @@
"cell_type": "code",
"execution_count": null,
"id": "7f77306d",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"m = ipyleaflet.leaflet.Map(\n",
Expand Down Expand Up @@ -422,9 +420,7 @@
"cell_type": "code",
"execution_count": null,
"id": "56ba6e0c",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"item = kahramanmaras_items[0]\n",
Expand Down Expand Up @@ -704,7 +700,7 @@
"outputs": [],
"source": [
"pre_mosaic = httpx.post(\n",
" f\"{raster_endpoint}/mosaic/register\",\n",
" f\"{raster_endpoint}/searches/register\",\n",
" data=json.dumps(\n",
" {\n",
" \"filter-lang\": 'cql2-json',\n",
Expand Down Expand Up @@ -739,7 +735,7 @@
").json()\n",
"\n",
"post_mosaic = httpx.post(\n",
" f\"{raster_endpoint}/mosaic/register\",\n",
" f\"{raster_endpoint}/searches/register\",\n",
" data=json.dumps(\n",
" {\n",
" \"filter-lang\": 'cql2-json',\n",
Expand Down Expand Up @@ -851,10 +847,10 @@
"metadata": {},
"outputs": [],
"source": [
"mosaic_id = pre_mosaic[\"searchid\"]\n",
"search_id = pre_mosaic[\"id\"]\n",
"\n",
"tilejson_pre = httpx.get(\n",
" f\"{raster_endpoint}/mosaic/{mosaic_id}/tilejson.json\",\n",
" f\"{raster_endpoint}/searches/{search_id}/tilejson.json\",\n",
" params = (\n",
" (\"assets\", \"visual\"), # THIS IS MANDATORY\n",
" (\"minzoom\", 12),\n",
Expand Down Expand Up @@ -900,10 +896,10 @@
"metadata": {},
"outputs": [],
"source": [
"mosaic_id = post_mosaic[\"searchid\"]\n",
"search_id = post_mosaic[\"id\"]\n",
"\n",
"tilejson_post = httpx.get(\n",
" f\"{raster_endpoint}/mosaic/{mosaic_id}/tilejson.json\",\n",
" f\"{raster_endpoint}/searches/{search_id}/tilejson.json\",\n",
" params = (\n",
" (\"assets\", \"visual\"), # THIS IS MANDATORY\n",
" (\"minzoom\", 12),\n",
Expand Down Expand Up @@ -1027,7 +1023,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e2e9304

Please sign in to comment.