Skip to content

Commit c086b71

Browse files
Update arcgis.ipynb (#412)
* Updated conda install instructions. Anaconda now uses libmamba as the default solver, and Esri does not support the installation of deep-learning-essentials via conda. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9b55c6a commit c086b71

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

docs/examples/arcgis.ipynb

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,17 @@
1313
"\n",
1414
"## Installation\n",
1515
"\n",
16-
"1. Open Windows Registry Editor (`regedit.exe`) and navigate to `Computer\\HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem`. Change the value of `LongPathsEnabled` to `1`. See [this screenshot](https://user-images.githubusercontent.com/46331011/225140182-df32dcfe-dca2-4e7f-9992-4c389af36184.png). This is a [known issue](https://github.com/Esri/deep-learning-frameworks/blob/master/README.md#known-issues) with the deep learning libraries for ArcGIS Pro 3.1. A future release might fix this issue.\n",
17-
"2. Navigate to the **Start Menu** -> **All apps** -> **ArcGIS** folder, then open the **Python Command Prompt**.\n",
18-
"3. Create a new conda environment and install [mamba](https://mamba.readthedocs.io/) and Python 3.9.x from the [Esri Anaconda channel](https://anaconda.org/Esri/repo). Mamba is a drop-in replacement for conda that is mach faster for installing Python packages and their dependencies. \n",
19-
" \n",
20-
" `conda create conda-forge::mamba esri::python --name geo`\n",
16+
"1. Navigate to the **Start Menu** -> **All apps** -> **ArcGIS** folder, then open the **Python Command Prompt**.\n",
17+
"2. Create a new conda environment and install dependencies.\n",
2118
"\n",
22-
"4. Activate the new conda environment.\n",
19+
" `conda create esri::python esri::arcpy conda-forge::segment-geospatial --name geo`\n",
2320
"\n",
24-
" `conda activate geo`\n",
25-
"\n",
26-
"5. This step is optional. If you get an error message saying that `Download error (60) SSL peer certificate or SSH remote key was not OK` when installing packages in the next step, run the following command to fix the issue.\n",
27-
"\n",
28-
" `conda config --set ssl_verify false`\n",
29-
"\n",
30-
"5. Install arcpy, deep-learning-essentials, segment-geospatial, and other dependencies (~4GB download).\n",
31-
"\n",
32-
" `mamba install arcpy deep-learning-essentials segment-geospatial pygis -c esri -c conda-forge`\n",
33-
"\n",
34-
"6. Activate the new environment in ArcGIS Pro.\n",
21+
"3. Activate the new environment in ArcGIS Pro.\n",
3522
"\n",
3623
" `proswap geo`\n",
3724
"\n",
38-
"7. Close the Python Command Prompt and open ArcGIS Pro.\n",
39-
"8. [Download](https://samgeo.gishub.org/examples/arcgis/arcgis.ipynb) this notebook and run it in ArcGIS Pro."
25+
"4. Close the Python Command Prompt and open ArcGIS Pro.\n",
26+
"5. [Download](https://samgeo.gishub.org/examples/arcgis/arcgis.ipynb) this notebook and run it in ArcGIS Pro."
4027
]
4128
},
4229
{
@@ -65,7 +52,7 @@
6552
"source": [
6653
"## Download sample data\n",
6754
"\n",
68-
"In this example, we will use the high-resolution aerial imagery from the USDA National Agricultural Imagery Program ([NAIP](https://naip-usdaonline.hub.arcgis.com/)). You can download NAIP imagery using the [USDA Data Gateway](https://datagateway.nrcs.usda.gov/) or the [USDA NCRS Box Drive](https://nrcs.app.box.com/v/naip). I have downloaded some NAIP imagery and clipped them to a smaller area, which are available [here](https://github.com/opengeos/data/tree/main/naip). "
55+
"In this example, we will use the high-resolution aerial imagery from the USDA National Agricultural Imagery Program ([NAIP](https://naip-usdaonline.hub.arcgis.com/)). You can download NAIP imagery using the [USDA Data Gateway](https://datagateway.nrcs.usda.gov/) or the [USDA NCRS Box Drive](https://nrcs.app.box.com/v/naip). I have downloaded some NAIP imagery and clipped them to a smaller area, which are available [here](https://github.com/opengeos/data/tree/main/naip)."
6956
]
7057
},
7158
{
@@ -145,7 +132,7 @@
145132
"source": [
146133
"## Automatic mask generation\n",
147134
"\n",
148-
"Specify the file path to the image we downloaded earlier. "
135+
"Specify the file path to the image we downloaded earlier."
149136
]
150137
},
151138
{
@@ -177,7 +164,7 @@
177164
"cell_type": "markdown",
178165
"metadata": {},
179166
"source": [
180-
"Segment the image and save the results to a GeoTIFF file. Set `unique=True` to assign a unique ID to each object. "
167+
"Segment the image and save the results to a GeoTIFF file. Set `unique=True` to assign a unique ID to each object."
181168
]
182169
},
183170
{

0 commit comments

Comments
 (0)