|
4 | 4 | "cell_type": "markdown",
|
5 | 5 | "metadata": {},
|
6 | 6 | "source": [
|
7 |
| - "# Coastline extraction using Landsat-8 multispectral imagery and band ratio technique" |
| 7 | + "## Coastline extraction using Landsat-8 multispectral imagery and band ratio technique" |
8 | 8 | ]
|
9 | 9 | },
|
10 | 10 | {
|
11 | 11 | "cell_type": "markdown",
|
12 | 12 | "metadata": {},
|
13 | 13 | "source": [
|
14 | 14 | "## Table of Contents\n",
|
| 15 | + "* [Prerequisites](#20)\n", |
15 | 16 | "* [Introduction](#1)\n",
|
16 | 17 | "* [Necessary imports](#2)\n",
|
17 | 18 | "* [Connect to your GIS](#3)\n",
|
|
33 | 34 | "* [Data resources](#19)"
|
34 | 35 | ]
|
35 | 36 | },
|
| 37 | + { |
| 38 | + "cell_type": "markdown", |
| 39 | + "metadata": {}, |
| 40 | + "source": [ |
| 41 | + "## Prerequisites<a class=\"anchor\" id=\"20\"></a>\n", |
| 42 | + "\n", |
| 43 | + "- This sample demonstrates how the coastlines can be extracted using [ArcGIS Image Server](https://www.esri.com/en-us/arcgis/products/arcgis-image-server). Alternatively, this can be done using [ArcGIS Image for ArcGIS Online](https://www.esri.com/en-us/arcgis/products/arcgis-image/options/arcgis-online)." |
| 44 | + ] |
| 45 | + }, |
36 | 46 | {
|
37 | 47 | "cell_type": "markdown",
|
38 | 48 | "metadata": {},
|
|
1133 | 1143 | "source": [
|
1134 | 1144 | "## Get the polygon with largest area as it will represent the coastline\n",
|
1135 | 1145 | "df = water_poly.layers[0].query().sdf\n",
|
1136 |
| - "dfm5 = df[df['SHAPE__Area']==df['SHAPE__Area'].max()]\n", |
| 1146 | + "df['MYAREA'] = df.SHAPE.geom.area\n", |
| 1147 | + "dfm5 = df[df['MYAREA']==df['MYAREA'].max()]\n", |
1137 | 1148 | "coast_poly = gis2.content.import_data(dfm5, title='coast_poly'+str(datetime.now().microsecond))"
|
1138 | 1149 | ]
|
1139 | 1150 | },
|
|
1400 | 1411 | ],
|
1401 | 1412 | "metadata": {
|
1402 | 1413 | "kernelspec": {
|
1403 |
| - "display_name": "Python 3 (ipykernel)", |
| 1414 | + "display_name": "Python 3", |
1404 | 1415 | "language": "python",
|
1405 | 1416 | "name": "python3"
|
1406 | 1417 | },
|
|
1414 | 1425 | "name": "python",
|
1415 | 1426 | "nbconvert_exporter": "python",
|
1416 | 1427 | "pygments_lexer": "ipython3",
|
1417 |
| - "version": "3.7.11" |
| 1428 | + "version": "3.9.11" |
1418 | 1429 | }
|
1419 | 1430 | },
|
1420 | 1431 | "nbformat": 4,
|
|
0 commit comments