Skip to content

Commit 2e03440

Browse files
committed
Merge 'upstream/next' into jy-24upd-using-widget
2 parents bb47128 + a62c159 commit 2e03440

12 files changed

+90
-6179
lines changed

guide/04-feature-data-and-analysis/part1_parcel_fabric_an_introduction.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
{
7979
"data": {
8080
"text/plain": [
81-
"['https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/FeatureServer',\n",
82-
" 'https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/ParcelFabricServer',\n",
83-
" 'https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/VersionManagementServer']"
81+
"['https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/FeatureServer',\n",
82+
" 'https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/ParcelFabricServer',\n",
83+
" 'https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/VersionManagementServer']"
8484
]
8585
},
8686
"execution_count": 2,
@@ -90,12 +90,12 @@
9090
],
9191
"source": [
9292
"base_server_url = (\n",
93-
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
93+
" \"https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/\"\n",
9494
")\n",
9595
"gis = GIS(\n",
96-
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
97-
" \"gisproadv2\",\n",
98-
" \"portalaccount1\",\n",
96+
" \"https://myenterprisesite.com/portal/\",\n",
97+
" \"my_user_name\",\n",
98+
" \"my_secure_password\",\n",
9999
" verify_cert=False,\n",
100100
")\n",
101101
"\n",

guide/04-feature-data-and-analysis/part2_branch_versioning_with_parcel_fabrics.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
],
7676
"source": [
7777
"base_server_url = (\n",
78-
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
78+
" \"https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/\"\n",
7979
")\n",
8080
"gis = GIS(\n",
81-
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
82-
" \"gisproadv2\",\n",
83-
" \"portalaccount1\",\n",
81+
" \"https://myenterprisesite.com/portal/\",\n",
82+
" \"my_user_name\",\n",
83+
" \"my_secure_password\",\n",
8484
" verify_cert=False,\n",
8585
")"
8686
]
@@ -151,7 +151,7 @@
151151
"data": {
152152
"text/plain": [
153153
"[<Version sde.DEFAULT @ {BD3F4817-9A00-41AC-B0CC-58F78DBAE0A1}>,\n",
154-
" <Version creator2.merge_version_1 @ {D1FDA18B-7B15-4773-9D7D-814092D88171}>]"
154+
" <Version mycreator.merge_version_1 @ {D1FDA18B-7B15-4773-9D7D-814092D88171}>]"
155155
]
156156
},
157157
"execution_count": 12,
@@ -184,13 +184,13 @@
184184
"name": "stdout",
185185
"output_type": "stream",
186186
"text": [
187-
"gisproadv2.fabric_editor_1\n"
187+
"my_user_name.fabric_editor_1\n"
188188
]
189189
},
190190
{
191191
"data": {
192192
"text/plain": [
193-
"{'versionInfo': {'versionName': 'gisproadv2.fabric_editor_1',\n",
193+
"{'versionInfo': {'versionName': 'my_user_name.fabric_editor_1',\n",
194194
" 'versionGuid': '{EF1752A9-DF21-4D9B-819D-55F3D56BCE80}',\n",
195195
" 'versionId': 16,\n",
196196
" 'description': '',\n",
@@ -239,7 +239,7 @@
239239
{
240240
"data": {
241241
"text/plain": [
242-
"['sde.DEFAULT', 'gisproadv2.fabric_editor_1', 'creator2.merge_version_1']"
242+
"['sde.DEFAULT', 'my_user_name.fabric_editor_1', 'mycreator.merge_version_1']"
243243
]
244244
},
245245
"execution_count": 14,

guide/04-feature-data-and-analysis/part3_create_a_parcel_record.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
],
5959
"source": [
6060
"base_server_url = (\n",
61-
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
61+
" \"https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/\"\n",
6262
")\n",
6363
"gis = GIS(\n",
64-
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
65-
" \"gisproadv2\",\n",
66-
" \"portalaccount1\",\n",
64+
" \"https://myenterprisesite.com/portal/\",\n",
65+
" \"my_user_name\",\n",
66+
" \"my_secure_password\",\n",
6767
" verify_cert=False,\n",
6868
")\n",
6969
"\n",
@@ -91,7 +91,7 @@
9191
{
9292
"data": {
9393
"text/plain": [
94-
"'gisproadv2.new_record_version'"
94+
"'my_user_name.new_record_version'"
9595
]
9696
},
9797
"execution_count": 3,
@@ -132,7 +132,7 @@
132132
{
133133
"data": {
134134
"text/plain": [
135-
"'https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/FeatureServer/1'"
135+
"'https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/FeatureServer/1'"
136136
]
137137
},
138138
"execution_count": 4,
@@ -195,7 +195,7 @@
195195
{
196196
"data": {
197197
"text/plain": [
198-
"<FeatureLayer url:\"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/FeatureServer/1\">"
198+
"<FeatureLayer url:\"https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/FeatureServer/1\">"
199199
]
200200
},
201201
"execution_count": 6,

guide/04-feature-data-and-analysis/part4_query_parcels.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@
106106
],
107107
"source": [
108108
"base_server_url = (\n",
109-
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
109+
" \"https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/\"\n",
110110
")\n",
111111
"gis = GIS(\n",
112-
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
113-
" \"gisproadv2\",\n",
114-
" \"portalaccount1\",\n",
112+
" \"https://myenterprisesite.com/portal/\",\n",
113+
" \"my_user_name\",\n",
114+
" \"my_secure_password\",\n",
115115
" verify_cert=False,\n",
116116
")\n",
117117
"\n",
@@ -131,7 +131,7 @@
131131
{
132132
"data": {
133133
"text/plain": [
134-
"'https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/FeatureServer/1'"
134+
"'https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/FeatureServer/1'"
135135
]
136136
},
137137
"execution_count": 3,
@@ -277,7 +277,7 @@
277277
{
278278
"data": {
279279
"text/plain": [
280-
"'https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/FeatureServer/15'"
280+
"'https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/FeatureServer/15'"
281281
]
282282
},
283283
"execution_count": 6,

guide/04-feature-data-and-analysis/part5_merge_parcels.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
"outputs": [],
5252
"source": [
5353
"base_server_url = (\n",
54-
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
54+
" \"https://rextapilnx02eb.mysite.com/server/rest/services/WashingtonCounty/\"\n",
5555
")\n",
5656
"gis = GIS(\n",
57-
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
58-
" \"gisproadv2\",\n",
59-
" \"portalaccount1\",\n",
57+
" \"https://myenterprisesite.com/portal/\",\n",
58+
" \"my_user_name\",\n",
59+
" \"my_secure_password\",\n",
6060
" verify_cert=True,\n",
6161
")\n",
6262
"\n",
@@ -82,7 +82,7 @@
8282
{
8383
"data": {
8484
"text/plain": [
85-
"'gisproadv2.merge_version_1'"
85+
"'my_user_name.merge_version_1'"
8686
]
8787
},
8888
"execution_count": 42,
@@ -472,7 +472,7 @@
472472
"metadata": {},
473473
"outputs": [],
474474
"source": [
475-
"version = version_management_server.get(f\"gisproadv2.{new_version_name}\")\n",
475+
"version = version_management_server.get(f\"my_user_name.{new_version_name}\")\n",
476476
"version.reconcile()\n",
477477
"version.post()\n",
478478
"version.delete()"

guide/10-mapping-and-visualization/working-with-web-maps-and-web-scenes.ipynb

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
},
1010
{
1111
"cell_type": "markdown",
12-
"metadata": {
13-
"toc": true
14-
},
12+
"metadata": {},
1513
"source": [
1614
"<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
17-
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Working-with-web-maps-and-web-scenes\" data-toc-modified-id=\"Working-with-web-maps-and-web-scenes-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>Working with web maps and web scenes</a></span><ul class=\"toc-item\"><li><span><a href=\"#Working-with-web-maps\" data-toc-modified-id=\"Working-with-web-maps-1.1\"><span class=\"toc-item-num\">1.1&nbsp;&nbsp;</span>Working with web maps</a></span><ul class=\"toc-item\"><li><span><a href=\"#Searching-for-web-maps\" data-toc-modified-id=\"Searching-for-web-maps-1.1.1\"><span class=\"toc-item-num\">1.1.1&nbsp;&nbsp;</span>Searching for web maps</a></span></li><li><span><a href=\"#Creating-a-WebMap-object\" data-toc-modified-id=\"Creating-a-WebMap-object-1.1.2\"><span class=\"toc-item-num\">1.1.2&nbsp;&nbsp;</span>Creating a <code>WebMap</code> object</a></span></li><li><span><a href=\"#Displaying-the-web-map\" data-toc-modified-id=\"Displaying-the-web-map-1.1.3\"><span class=\"toc-item-num\">1.1.3&nbsp;&nbsp;</span>Displaying the web map</a></span></li><li><span><a href=\"#Removing-layers-from-a-web-map\" data-toc-modified-id=\"Removing-layers-from-a-web-map-1.1.4\"><span class=\"toc-item-num\">1.1.4&nbsp;&nbsp;</span>Removing layers from a web map</a></span></li><li><span><a href=\"#Adding-layers-to-a-web-map\" data-toc-modified-id=\"Adding-layers-to-a-web-map-1.1.5\"><span class=\"toc-item-num\">1.1.5&nbsp;&nbsp;</span>Adding layers to a web map</a></span></li><li><span><a href=\"#Saving-or-Updating-a-web-map\" data-toc-modified-id=\"Saving-or-Updating-a-web-map-1.1.6\"><span class=\"toc-item-num\">1.1.6&nbsp;&nbsp;</span>Saving or Updating a web map</a></span></li></ul></li><li><span><a href=\"#Working-with-web-scenes\" data-toc-modified-id=\"Working-with-web-scenes-1.2\"><span class=\"toc-item-num\">1.2&nbsp;&nbsp;</span>Working with web scenes</a></span></li><li><span><a href=\"#Searching-for-web-scene-items\" data-toc-modified-id=\"Searching-for-web-scene-items-1.3\"><span class=\"toc-item-num\">1.3&nbsp;&nbsp;</span>Searching for web scene items</a></span><ul class=\"toc-item\"><li><span><a href=\"#Creating-a-WebScene-object\" data-toc-modified-id=\"Creating-a-WebScene-object-1.3.1\"><span class=\"toc-item-num\">1.3.1&nbsp;&nbsp;</span>Creating a <code>WebScene</code> object</a></span></li><li><span><a href=\"#Displaying-the-web-scene\" data-toc-modified-id=\"Displaying-the-web-scene-1.3.2\"><span class=\"toc-item-num\">1.3.2&nbsp;&nbsp;</span>Displaying the web scene</a></span></li><li><span><a href=\"#Updating-a-web-scene\" data-toc-modified-id=\"Updating-a-web-scene-1.3.3\"><span class=\"toc-item-num\">1.3.3&nbsp;&nbsp;</span>Updating a web scene</a></span></li></ul></li></ul></li></ul></div>"
15+
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Working-with-web-maps-and-web-scenes\" data-toc-modified-id=\"Working-with-web-maps-and-web-scenes-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>Working with web maps and web scenes</a></span><ul class=\"toc-item\"><li><span><a href=\"#Working-with-web-maps\" data-toc-modified-id=\"Working-with-web-maps-1.1\"><span class=\"toc-item-num\">1.1&nbsp;&nbsp;</span>Working with web maps</a></span><ul class=\"toc-item\"><li><span><a href=\"#Searching-for-web-maps\" data-toc-modified-id=\"Searching-for-web-maps-1.1.1\"><span class=\"toc-item-num\">1.1.1&nbsp;&nbsp;</span>Searching for web maps</a></span></li><li><span><a href=\"#Creating-a-WebMap-object\" data-toc-modified-id=\"Creating-a-WebMap-object-1.1.2\"><span class=\"toc-item-num\">1.1.2&nbsp;&nbsp;</span>Creating a <code>WebMap</code> object</a></span></li><li><span><a href=\"#Displaying-the-web-map\" data-toc-modified-id=\"Displaying-the-web-map-1.1.3\"><span class=\"toc-item-num\">1.1.3&nbsp;&nbsp;</span>Displaying the web map</a></span></li><li><span><a href=\"#Removing-layers-from-a-web-map\" data-toc-modified-id=\"Removing-layers-from-a-web-map-1.1.4\"><span class=\"toc-item-num\">1.1.4&nbsp;&nbsp;</span>Removing layers from a web map</a></span></li><li><span><a href=\"#Adding-layers-to-a-web-map\" data-toc-modified-id=\"Adding-layers-to-a-web-map-1.1.5\"><span class=\"toc-item-num\">1.1.5&nbsp;&nbsp;</span>Adding layers to a web map</a></span></li><li><span><a href=\"#Saving-or-Updating-a-web-map\" data-toc-modified-id=\"Saving-or-Updating-a-web-map-1.1.6\"><span class=\"toc-item-num\">1.1.6&nbsp;&nbsp;</span>Saving or Updating a web map</a></span></li></ul></li><li><span><a href=\"#Working-with-web-scenes\" data-toc-modified-id=\"Working-with-web-scenes-1.2\"><span class=\"toc-item-num\">1.2&nbsp;&nbsp;</span>Working with web scenes</a></span></li><ul class=\"toc-item\"><li><span><a href=\"#Searching-for-web-scene-items\" data-toc-modified-id=\"Searching-for-web-scene-items-1.2.1\"><span class=\"toc-item-num\">1.2.1&nbsp;&nbsp;</span>Searching for web scene items</a></span><li><span><a href=\"#Creating-a-WebScene-object\" data-toc-modified-id=\"Creating-a-WebScene-object-1.2.2\"><span class=\"toc-item-num\">1.2.2&nbsp;&nbsp;</span>Creating a <code>WebScene</code> object</a></span></li><li><span><a href=\"#Displaying-the-web-scene\" data-toc-modified-id=\"Displaying-the-web-scene-1.2.3\"><span class=\"toc-item-num\">1.2.3&nbsp;&nbsp;</span>Displaying the web scene</a></span></li><li><span><a href=\"#Updating-a-web-scene\" data-toc-modified-id=\"Updating-a-web-scene-1.2.4\"><span class=\"toc-item-num\">1.2.4&nbsp;&nbsp;</span>Updating a web scene</a></span></li></ul></li></ul></li></ul></div>"
1816
]
1917
},
2018
{
@@ -425,7 +423,7 @@
425423
"metadata": {},
426424
"source": [
427425
"### Adding layers to a web map\n",
428-
"To add new layers, call the `Map.content.add()` method. You can add many different types of layers with this method, such as `FeatureLayer`, `ImageryLayer`, or `FeatureCollection` objects, as well as using `Items` as input. The code below adds a feature layer collection item to the web map and updates the layer's title property at the same timeC."
426+
"To add new layers, call the `Map.content.add()` method. You can add many different types of layers with this method, such as `FeatureLayer`, `ImageryLayer`, or `FeatureCollection` objects, as well as using `Items` as input. The code below adds a feature layer collection item to the web map and updates the layer's title property at the same time."
429427
]
430428
},
431429
{
@@ -506,12 +504,12 @@
506504
"cell_type": "markdown",
507505
"metadata": {},
508506
"source": [
509-
"## Searching for web scene items"
507+
"### Searching for web scene items"
510508
]
511509
},
512510
{
513511
"cell_type": "code",
514-
"execution_count": 78,
512+
"execution_count": 6,
515513
"metadata": {},
516514
"outputs": [
517515
{
@@ -524,12 +522,12 @@
524522
" <Item title:\"Toprical Cyclones - Basemap updated\" type:Web Scene owner:arcgis_python>,\n",
525523
" <Item title:\"Toprical Cyclones - Summer\" type:Web Scene owner:arcgis_python>,\n",
526524
" <Item title:\"Toprical Cyclones - Summer\" type:Web Scene owner:arcgis_python>,\n",
527-
" <Item title:\"Toprical Cyclones - Summer\" type:Web Scene owner:arcgis_python>,\n",
528525
" <Item title:\"Recent Storm Scene\" type:Web Scene owner:arcgis_python>,\n",
526+
" <Item title:\"Toprical Cyclones - Summer\" type:Web Scene owner:arcgis_python>,\n",
529527
" <Item title:\"Toprical Cyclones - Basemap updated 2\" type:Web Scene owner:arcgis_python>]"
530528
]
531529
},
532-
"execution_count": 78,
530+
"execution_count": 6,
533531
"metadata": {},
534532
"output_type": "execute_result"
535533
}
@@ -548,7 +546,7 @@
548546
},
549547
{
550548
"cell_type": "code",
551-
"execution_count": 79,
549+
"execution_count": 7,
552550
"metadata": {},
553551
"outputs": [
554552
{
@@ -566,7 +564,7 @@
566564
" </a>\n",
567565
" <br/>Global scene of recent hurricanes, cyclones, and typhoons<br/><img src='https://geosaurus.maps.arcgis.com/home/js/jsapi/esri/css/images/item_type_icons/websceneglobal16.png' style=\"vertical-align:middle;\" width=16 height=16>Web Scene by arcgis_python\n",
568566
" <br/>Last Modified: August 12, 2024\n",
569-
" <br/>0 comments, 0 views\n",
567+
" <br/>0 comments, 14 views\n",
570568
" </div>\n",
571569
" </div>\n",
572570
" "
@@ -575,32 +573,74 @@
575573
"<Item title:\"Recent Storm Scene\" type:Web Scene owner:arcgis_python>"
576574
]
577575
},
578-
"execution_count": 79,
576+
"execution_count": 7,
579577
"metadata": {},
580578
"output_type": "execute_result"
581579
}
582580
],
583581
"source": [
584-
"webscene_item = webscene_search[8]\n",
582+
"webscene_item = webscene_search[7]\n",
585583
"webscene_item"
586584
]
587585
},
588586
{
589587
"cell_type": "markdown",
590588
"metadata": {},
591589
"source": [
592-
"### Creating a `Scene` object\n",
593-
"You can create a `Scene` object by passing an existing web scene item as the `Scene` class's _item_ argument:"
590+
"### Creating a `Scene` object"
591+
]
592+
},
593+
{
594+
"cell_type": "markdown",
595+
"metadata": {},
596+
"source": [
597+
"You can create an emtpy Scene the same way you create an empty map:"
594598
]
595599
},
596600
{
597601
"cell_type": "code",
598-
"execution_count": 188,
602+
"execution_count": 8,
599603
"metadata": {},
600604
"outputs": [],
601605
"source": [
602606
"from arcgis.map import Scene\n",
603607
"\n",
608+
"empty_scene = Scene()"
609+
]
610+
},
611+
{
612+
"cell_type": "code",
613+
"execution_count": 2,
614+
"metadata": {},
615+
"outputs": [
616+
{
617+
"data": {
618+
"text/plain": [
619+
"[]"
620+
]
621+
},
622+
"execution_count": 2,
623+
"metadata": {},
624+
"output_type": "execute_result"
625+
}
626+
],
627+
"source": [
628+
"empty_scene.content.layers"
629+
]
630+
},
631+
{
632+
"cell_type": "markdown",
633+
"metadata": {},
634+
"source": [
635+
"You can create a `Scene` object by passing an existing web scene item as the `Scene` class's _item_ argument:"
636+
]
637+
},
638+
{
639+
"cell_type": "code",
640+
"execution_count": 9,
641+
"metadata": {},
642+
"outputs": [],
643+
"source": [
604644
"scene_obj = Scene(\n",
605645
" item=webscene_item\n",
606646
")"

0 commit comments

Comments
 (0)