|
79 | 79 | "metadata": {},
|
80 | 80 | "outputs": [],
|
81 | 81 | "source": [
|
82 |
| - "gis = GIS('home')\n", |
83 |
| - "ent_gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')" |
| 82 | + "gis = GIS(profile=\"your_online_profile\")\n", |
| 83 | + "ent_gis = GIS(profile=\"your_enterprise_profile\")" |
84 | 84 | ]
|
85 | 85 | },
|
86 | 86 | {
|
|
171 | 171 | }
|
172 | 172 | ],
|
173 | 173 | "source": [
|
174 |
| - "m = ent_gis.map(\"Kent county, Delaware\", 15)\n", |
| 174 | + "m = ent_gis.map(\"Kent county, Delaware\")\n", |
175 | 175 | "m"
|
176 | 176 | ]
|
177 | 177 | },
|
|
181 | 181 | "metadata": {},
|
182 | 182 | "outputs": [],
|
183 | 183 | "source": [
|
184 |
| - "m.add_layer(world_imagery_layer)" |
| 184 | + "m.content.add(world_imagery_layer)" |
185 | 185 | ]
|
186 | 186 | },
|
187 | 187 | {
|
|
190 | 190 | "metadata": {},
|
191 | 191 | "outputs": [],
|
192 | 192 | "source": [
|
193 |
| - "m.add_layer(label_layer)" |
| 193 | + "m.content.add(label_layer)" |
194 | 194 | ]
|
195 | 195 | },
|
196 | 196 | {
|
|
1003 | 1003 | " model_arguments={\"padding\":100, \"batch_size\":16, \"predict_background\":True, \"test_time_augmentation\":True},\n",
|
1004 | 1004 | " output_name = \"land_cover_sample_inference_result\"+str(datetime.now().microsecond),\n",
|
1005 | 1005 | " context = context,\n",
|
1006 |
| - " gis = ent_gis2)\n", |
| 1006 | + " gis = ent_gis)\n", |
1007 | 1007 | "out_classify"
|
1008 | 1008 | ]
|
1009 | 1009 | },
|
|
1023 | 1023 | "from arcgis.raster.functions import colormap\n",
|
1024 | 1024 | "\n",
|
1025 | 1025 | "result_map = ent_gis.map('Kent County, Delaware')\n",
|
1026 |
| - "result_map.basemap = 'satellite'" |
| 1026 | + "result_map.basemap.basemap = 'satellite'" |
1027 | 1027 | ]
|
1028 | 1028 | },
|
1029 | 1029 | {
|
|
1072 | 1072 | }
|
1073 | 1073 | ],
|
1074 | 1074 | "source": [
|
1075 |
| - "result_map.add_layer(colormap(out_classify.layers[0], \n", |
| 1075 | + "result_map.content.add(colormap(out_classify.layers[0], \n", |
1076 | 1076 | " colormap = land_cover_colormap, \n",
|
1077 | 1077 | " astype='u8'),\n",
|
1078 |
| - " {'opacity':0.2})\n", |
| 1078 | + " options={'opacity':0.2})\n", |
1079 | 1079 | "result_map"
|
1080 | 1080 | ]
|
1081 | 1081 | },
|
|
0 commit comments