From c900991f9dd8cb021882b60bddfaa7a9cc5bd03a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Flemstro=CC=88m?= Date: Tue, 3 Sep 2024 13:12:38 +0200 Subject: [PATCH] 030-010, added lat long to bbox corners --- tutorials/030_GEOM_010-Bounding-box.ipynb | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tutorials/030_GEOM_010-Bounding-box.ipynb b/tutorials/030_GEOM_010-Bounding-box.ipynb index 4fc8831..8a58b11 100644 --- a/tutorials/030_GEOM_010-Bounding-box.ipynb +++ b/tutorials/030_GEOM_010-Bounding-box.ipynb @@ -122,11 +122,11 @@ "\n", "The WKT format represents the bounding box as a `POLYGON`, and the coordinates follow this sequence:\n", "\n", - "1. **First Corner**: (`west`, `south`)\n", - "2. **Second Corner**: (`west`, `north`)\n", - "3. **Third Corner**: (`east`, `north`)\n", - "4. **Fourth Corner**: (`east`, `south`)\n", - "5. **Closing the Polygon**: Back to the first corner (`west`, `south`)\n", + "1. **First Corner**: (`west` (min Long), `south`(min Lat) )\n", + "2. **Second Corner**: (`west`(min Long), `north` (max Lat) )\n", + "3. **Third Corner**: (`east` (max Long), `north` (max Lat) )\n", + "4. **Fourth Corner**: (`east`(max Long), `south` (min Lat) )\n", + "5. **Closing the Polygon**: Back to the first corner (`west` (min Long), `south`(min Lat) )\n", "\n", "So, the WKT `POLYGON` would be constructed as:\n", "\n", @@ -154,10 +154,10 @@ "source": [ "# Convert the OpenEO Bounding Box to WKT\n", "bbox = {\n", - " 'east': 16.6379,\n", - " 'south': 59.5735,\n", - " 'west': 16.4677,\n", - " 'north': 59.6588,\n", + " 'east': 16.6379, # max long\n", + " 'south': 59.5735, # min lat\n", + " 'west': 16.4677, # min long\n", + " 'north': 59.6588, # max lat\n", "}\n", "wkt = f\"POLYGON(({bbox['west']} {bbox['south']}, {bbox['west']} {bbox['north']}, {bbox['east']} {bbox['north']}, {bbox['east']} {bbox['south']}, {bbox['west']} {bbox['south']}))\"\n", "\n", @@ -217,10 +217,10 @@ "\n", "# Define the bounding box (using the earlier example for Västerås)\n", "bbox = {\n", - " 'east': 16.6379,\n", - " 'south': 59.5735,\n", - " 'west': 16.4677,\n", - " 'north': 59.6588,\n", + " 'east': 16.6379, # max long\n", + " 'south': 59.5735, # min lat\n", + " 'west': 16.4677, # min long\n", + " 'north': 59.6588, # max lat\n", "}\n", "\n", "# Create a Shapely box object from the bounding box coordinates\n",