Skip to content

Commit 96f7f1d

Browse files
authored
Merge pull request #2124 from Esri/NA/guides_7
Update landcover using satellite and dl and using hyperspectral samples to the 2.4. syntax
2 parents 168c0ef + dd69b4a commit 96f7f1d

File tree

2 files changed

+40
-62
lines changed

2 files changed

+40
-62
lines changed

samples/04_gis_analysts_data_scientists/land_cover_classification_using_unet.ipynb

+32-54
Large diffs are not rendered by default.

samples/04_gis_analysts_data_scientists/landcover_classification_using_hyperspectral_imagery_and_deep_learning.ipynb

+8-8
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@
363363
"outputs": [],
364364
"source": [
365365
"from arcgis.gis import GIS\n",
366-
"gis = GIS('home')\n",
367-
"ent_gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')"
366+
"gis = GIS(profile=\"your_online_profile\")\n",
367+
"ent_gis = GIS(profile='your_enterprise_profile')"
368368
]
369369
},
370370
{
@@ -467,9 +467,9 @@
467467
"metadata": {},
468468
"outputs": [],
469469
"source": [
470-
"m = gis.map('USA', 4)\n",
471-
"m.add_layer(lulc_polygons)\n",
472-
"m.legend=True\n",
470+
"m = gis.map('USA')\n",
471+
"m.content.add(lulc_polygons)\n",
472+
"m.legend.enabled=True\n",
473473
"m"
474474
]
475475
},
@@ -2030,10 +2030,10 @@
20302030
"outputs": [],
20312031
"source": [
20322032
"m1 = gis.map()\n",
2033-
"m1.add_layer(rgb_imagery)\n",
2034-
"#m1.basemap = 'satellite'\n",
2033+
"m1.content.add(rgb_imagery)\n",
2034+
"m1.basemap.basemap = 'satellite'\n",
20352035
"m2 = gis.map()\n",
2036-
"m2.add_layer(inferenced_results)"
2036+
"m2.content.add(inferenced_results)"
20372037
]
20382038
},
20392039
{

0 commit comments

Comments
 (0)