Skip to content

Commit 05553da

Browse files
committed
remove take_screenshot and add toc
1 parent 8bd2a22 commit 05553da

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

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

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"cell_type": "markdown",
7878
"metadata": {},
7979
"source": [
80-
"#### Create a new branch version\n",
80+
"## Create a new branch version\n",
8181
"\n",
8282
"Get access to the VersionManager object through the Parcel Fabric FeatureLayerCollection"
8383
]
@@ -113,7 +113,7 @@
113113
"cell_type": "markdown",
114114
"metadata": {},
115115
"source": [
116-
"#### Create a new parcel record\n",
116+
"## Create a new parcel record\n",
117117
"This is the name of the legal record which states two parcels should be combined into one."
118118
]
119119
},
@@ -183,7 +183,7 @@
183183
"cell_type": "markdown",
184184
"metadata": {},
185185
"source": [
186-
"#### Query parcels to merge\n",
186+
"## Query parcels to merge\n",
187187
"\n",
188188
"The [Merge](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#arcgis.features._parcel.ParcelFabricManager.merge) function takes an argument of parcel features in the following format:\n",
189189
"\n",
@@ -335,7 +335,7 @@
335335
"cell_type": "markdown",
336336
"metadata": {},
337337
"source": [
338-
"#### Merge the parcels\n",
338+
"## Merge the parcels\n",
339339
"- Create a simple dict of feature attributes to update merged parcel (optional)\n",
340340
"- Start an edit session in the new version\n",
341341
"- Get the ParcelManager object\n",
@@ -422,11 +422,7 @@
422422
"source": [
423423
"merged_parcel = parcels_fl.query(\n",
424424
" gdb_version=fq_version_name, where=f\"Name = '{merged_parcel_name}'\"\n",
425-
")\n",
426-
"map1 = gis.map(\"Keowns, WI\")\n",
427-
"map1.draw(merged_parcel)\n",
428-
"map1.zoom_to_layer(merged_parcel)\n",
429-
"# map1"
425+
")"
430426
]
431427
},
432428
{
@@ -448,14 +444,16 @@
448444
}
449445
],
450446
"source": [
451-
"map1.take_screenshot()"
447+
"map1 = gis.map(\"Keowns, WI\")\n",
448+
"map1.draw(merged_parcel)\n",
449+
"map1.zoom_to_layer(merged_parcel)"
452450
]
453451
},
454452
{
455453
"cell_type": "markdown",
456454
"metadata": {},
457455
"source": [
458-
"#### Recocile, Post and Delete the version\n",
456+
"## Recocile, Post and Delete the version\n",
459457
"\n",
460458
"When editing is complete, the new features can be posted from the new branch version to the default version. In this workflow, Reconcile must occur first. Once posted, the version can optionally be deleted."
461459
]
@@ -478,18 +476,16 @@
478476
],
479477
"source": [
480478
"version = version_management_server.get(f\"gisproadv2.{new_version_name}\")\n",
481-
"\n",
482-
"# version.reconcile()\n",
483-
"# version.post\n",
484-
"\n",
479+
"version.reconcile()\n",
480+
"version.post()\n",
485481
"version.delete()"
486482
]
487483
},
488484
{
489485
"cell_type": "markdown",
490486
"metadata": {},
491487
"source": [
492-
"### API Ref Documentation\n",
488+
"## API Ref Documentation\n",
493489
"\n",
494490
"- [ArcGIS Python API - Version Manager](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#versionmanager)\n",
495491
"- [ArcGIS Python API - Parcel Fabric Manager](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#parcelfabricmanager)\n",
@@ -501,7 +497,7 @@
501497
],
502498
"metadata": {
503499
"kernelspec": {
504-
"display_name": "Python 3.9.11 ('arcgispro-py3')",
500+
"display_name": "Python 3 (ipykernel)",
505501
"language": "python",
506502
"name": "python3"
507503
},
@@ -515,7 +511,7 @@
515511
"name": "python",
516512
"nbconvert_exporter": "python",
517513
"pygments_lexer": "ipython3",
518-
"version": "3.9.16"
514+
"version": "3.9.17"
519515
},
520516
"toc": {
521517
"base_numbering": 1,

0 commit comments

Comments
 (0)