Skip to content

Commit 8bd2a22

Browse files
authored
Merge pull request #1582 from kgalliher/ken-update-parcel-doc
Updates to the parcel fabric docs in `Layers - Parcel frabric`
2 parents 3607f73 + 80dc26a commit 8bd2a22

File tree

5 files changed

+228
-152
lines changed

5 files changed

+228
-152
lines changed

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

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@
3131
"2. A polygon feature class called Records for storing legal document information about a set of parcels.\n",
3232
"3. A point feature class representing the physical, coordinated x,y,z locations on the ground.\n",
3333
"4. A lines feature class called Connection Lines to represent dimensions between points that are not parcel boundaries.\n",
34-
"5. Any number of parcel types\n",
35-
"\n",
36-
"<img align='left' width='450' src='https://pro.arcgis.com/en/pro-app/latest/help/data/parcel-editing/GUID-2239DE47-1DCF-42ED-B58D-D6C4B99DCA71-web.png' />"
34+
"5. Any number of parcel types"
35+
]
36+
},
37+
{
38+
"cell_type": "markdown",
39+
"metadata": {},
40+
"source": [
41+
"![parcel editing image](https://pro.arcgis.com/en/pro-app/latest/help/data/parcel-editing/GUID-2239DE47-1DCF-42ED-B58D-D6C4B99DCA71-web.png)"
3742
]
3843
},
3944
{
@@ -60,7 +65,7 @@
6065
},
6166
{
6267
"cell_type": "code",
63-
"execution_count": 8,
68+
"execution_count": 2,
6469
"metadata": {},
6570
"outputs": [
6671
{
@@ -73,24 +78,24 @@
7378
{
7479
"data": {
7580
"text/plain": [
76-
"['https://krennic.esri.com/server/rest/services/WashingtonCountyLSA/FeatureServer',\n",
77-
" 'https://krennic.esri.com/server/rest/services/WashingtonCountyLSA/ParcelFabricServer',\n",
78-
" 'https://krennic.esri.com/server/rest/services/WashingtonCountyLSA/VersionManagementServer']"
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']"
7984
]
8085
},
81-
"execution_count": 8,
86+
"execution_count": 2,
8287
"metadata": {},
8388
"output_type": "execute_result"
8489
}
8590
],
8691
"source": [
8792
"base_server_url = (\n",
88-
" \"https://myserver.domain.com/web_adaptor/rest/services/WashingtonCountyLSA/\"\n",
93+
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
8994
")\n",
9095
"gis = GIS(\n",
91-
" \"https://myserver.domain.com/web_adaptor/\",\n",
92-
" \"username\",\n",
93-
" \"pass.word\",\n",
96+
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
97+
" \"gisproadv2\",\n",
98+
" \"portalaccount1\",\n",
9499
" verify_cert=False,\n",
95100
")\n",
96101
"\n",
@@ -112,16 +117,16 @@
112117
},
113118
{
114119
"cell_type": "code",
115-
"execution_count": 9,
120+
"execution_count": 3,
116121
"metadata": {},
117122
"outputs": [
118123
{
119124
"data": {
120125
"text/plain": [
121-
"'Query,Create,Update,Delete,Uploads,Editing,Sync,Extract,ChangeTracking'"
126+
"'Query,Create,Update,Delete,Uploads,Editing,Sync,ChangeTracking'"
122127
]
123128
},
124-
"execution_count": 9,
129+
"execution_count": 3,
125130
"metadata": {},
126131
"output_type": "execute_result"
127132
}
@@ -140,7 +145,7 @@
140145
},
141146
{
142147
"cell_type": "code",
143-
"execution_count": 5,
148+
"execution_count": 4,
144149
"metadata": {},
145150
"outputs": [
146151
{
@@ -153,20 +158,23 @@
153158
" 'Layer ID: 6 - Name: Polygon Errors',\n",
154159
" 'Layer ID: 7 - Name: Points',\n",
155160
" 'Layer ID: 8 - Name: Connection Lines',\n",
156-
" 'Layer ID: 10 - Name: Adjustment Points',\n",
157-
" 'Layer ID: 11 - Name: Adjustment Lines',\n",
158-
" 'Layer ID: 12 - Name: Adjustment Vectors',\n",
161+
" 'Layer ID: 10 - Name: AdjustmentPoints',\n",
162+
" 'Layer ID: 11 - Name: AdjustmentLines',\n",
163+
" 'Layer ID: 12 - Name: AdjustmentVectors',\n",
159164
" 'Layer ID: 14 - Name: Tax_PF_Lines',\n",
160165
" 'Layer ID: 15 - Name: Tax_PF',\n",
161166
" 'Layer ID: 17 - Name: ConveyanceDivision_PF_Lines',\n",
162167
" 'Layer ID: 18 - Name: ConveyanceDivision_PF',\n",
163168
" 'Layer ID: 20 - Name: Block_PF_Lines',\n",
164169
" 'Layer ID: 21 - Name: Block_PF',\n",
165170
" 'Layer ID: 23 - Name: SimultaneousConveyance_PF_Lines',\n",
166-
" 'Layer ID: 24 - Name: SimultaneousConveyance_PF']"
171+
" 'Layer ID: 24 - Name: SimultaneousConveyance_PF',\n",
172+
" 'Layer ID: 25 - Name: Validation Point Errors',\n",
173+
" 'Layer ID: 26 - Name: Validation Line Errors',\n",
174+
" 'Layer ID: 27 - Name: Validation Polygon Errors']"
167175
]
168176
},
169-
"execution_count": 5,
177+
"execution_count": 4,
170178
"metadata": {},
171179
"output_type": "execute_result"
172180
}
@@ -192,7 +200,7 @@
192200
},
193201
{
194202
"cell_type": "code",
195-
"execution_count": 11,
203+
"execution_count": 5,
196204
"metadata": {},
197205
"outputs": [
198206
{
@@ -205,7 +213,7 @@
205213
"}"
206214
]
207215
},
208-
"execution_count": 11,
216+
"execution_count": 5,
209217
"metadata": {},
210218
"output_type": "execute_result"
211219
}
@@ -233,7 +241,7 @@
233241
},
234242
{
235243
"cell_type": "code",
236-
"execution_count": 12,
244+
"execution_count": 6,
237245
"metadata": {},
238246
"outputs": [
239247
{
@@ -255,11 +263,12 @@
255263
" 'properties',\n",
256264
" 'reassign_features_to_record',\n",
257265
" 'reconstruct_from_seeds',\n",
266+
" 'set_line_label_position',\n",
258267
" 'transfer_parcel',\n",
259268
" 'update_history']"
260269
]
261270
},
262-
"execution_count": 12,
271+
"execution_count": 6,
263272
"metadata": {},
264273
"output_type": "execute_result"
265274
}
@@ -286,7 +295,7 @@
286295
],
287296
"metadata": {
288297
"kernelspec": {
289-
"display_name": "Python 3.9.11 ('arcgispro-py3')",
298+
"display_name": "Python 3 (ipykernel)",
290299
"language": "python",
291300
"name": "python3"
292301
},
@@ -300,7 +309,7 @@
300309
"name": "python",
301310
"nbconvert_exporter": "python",
302311
"pygments_lexer": "ipython3",
303-
"version": "3.9.11"
312+
"version": "3.9.16"
304313
},
305314
"toc": {
306315
"base_numbering": 1,

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

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": 2,
53+
"execution_count": 3,
5454
"id": "3b5328c1",
5555
"metadata": {},
5656
"outputs": [],
@@ -61,7 +61,7 @@
6161
},
6262
{
6363
"cell_type": "code",
64-
"execution_count": 3,
64+
"execution_count": 5,
6565
"id": "abdf9cc2",
6666
"metadata": {},
6767
"outputs": [
@@ -75,12 +75,12 @@
7575
],
7676
"source": [
7777
"base_server_url = (\n",
78-
" \"https://myserver.domain.com/web_adaptor/rest/services/WashingtonCountyLSA/\"\n",
78+
" \"https://rextapilnx02eb.esri.com/server/rest/services/WashingtonCounty/\"\n",
7979
")\n",
8080
"gis = GIS(\n",
81-
" \"https://myserver.domain.com/web_adaptor/\",\n",
82-
" \"username\",\n",
83-
" \"pass.word\",\n",
81+
" \"https://rextapilnx02eb.esri.com/portal/\",\n",
82+
" \"gisproadv2\",\n",
83+
" \"portalaccount1\",\n",
8484
" verify_cert=False,\n",
8585
")"
8686
]
@@ -95,7 +95,7 @@
9595
},
9696
{
9797
"cell_type": "code",
98-
"execution_count": 12,
98+
"execution_count": 11,
9999
"id": "bf7b899c",
100100
"metadata": {},
101101
"outputs": [
@@ -114,12 +114,13 @@
114114
" \"supportsDifferencesWithLayers\": true,\n",
115115
" \"supportsAsyncReconcile\": true,\n",
116116
" \"supportsAsyncPost\": true,\n",
117-
" \"supportsAsyncDifferences\": true\n",
117+
" \"supportsAsyncDifferences\": true,\n",
118+
" \"supportsOutSR\": true\n",
118119
" }\n",
119120
"}"
120121
]
121122
},
122-
"execution_count": 12,
123+
"execution_count": 11,
123124
"metadata": {},
124125
"output_type": "execute_result"
125126
}
@@ -142,19 +143,18 @@
142143
},
143144
{
144145
"cell_type": "code",
145-
"execution_count": 13,
146+
"execution_count": 12,
146147
"id": "31fcaff3",
147148
"metadata": {},
148149
"outputs": [
149150
{
150151
"data": {
151152
"text/plain": [
152153
"[<Version sde.DEFAULT @ {BD3F4817-9A00-41AC-B0CC-58F78DBAE0A1}>,\n",
153-
" <Version ADMIN.subdivision_a155544 @ {E3A066CE-F4BA-4BE1-8C6E-83C0707EAEDD}>,\n",
154-
" <Version ADMIN.combine_plat_1555467 @ {0CCEE2A6-7AD0-4D2B-AC57-62C1CAFD53D0}>]"
154+
" <Version creator2.merge_version_1 @ {D1FDA18B-7B15-4773-9D7D-814092D88171}>]"
155155
]
156156
},
157-
"execution_count": 13,
157+
"execution_count": 12,
158158
"metadata": {},
159159
"output_type": "execute_result"
160160
}
@@ -169,40 +169,53 @@
169169
"id": "4087da88",
170170
"metadata": {},
171171
"source": [
172-
"#### Create a version"
172+
"#### Create a version\n",
173+
"\n",
174+
"The `create` method returns the properties of the new version. Use this info to get the fully qualified version name `owner.version_name`"
173175
]
174176
},
175177
{
176178
"cell_type": "code",
177-
"execution_count": 14,
179+
"execution_count": 13,
178180
"id": "c0933203",
179181
"metadata": {},
180182
"outputs": [
183+
{
184+
"name": "stdout",
185+
"output_type": "stream",
186+
"text": [
187+
"gisproadv2.fabric_editor_1\n"
188+
]
189+
},
181190
{
182191
"data": {
183192
"text/plain": [
184-
"{'versionInfo': {'versionName': 'ADMIN.fabric_editor_1',\n",
185-
" 'versionGuid': '{1277D15C-1957-4F0C-A73F-E4F4A3D46363}',\n",
186-
" 'versionId': 12506,\n",
193+
"{'versionInfo': {'versionName': 'gisproadv2.fabric_editor_1',\n",
194+
" 'versionGuid': '{EF1752A9-DF21-4D9B-819D-55F3D56BCE80}',\n",
195+
" 'versionId': 16,\n",
187196
" 'description': '',\n",
188-
" 'creationDate': 1665678713463,\n",
189-
" 'modifiedDate': 1665678713463,\n",
197+
" 'creationDate': 1685640955750,\n",
198+
" 'modifiedDate': 1685640955750,\n",
190199
" 'reconcileDate': None,\n",
191200
" 'evaluationDate': None,\n",
192201
" 'previousAncestorDate': None,\n",
193-
" 'commonAncestorDate': 1665678713463,\n",
202+
" 'commonAncestorDate': 1685640955750,\n",
194203
" 'access': 'public'},\n",
195204
" 'success': True}"
196205
]
197206
},
198-
"execution_count": 14,
207+
"execution_count": 13,
199208
"metadata": {},
200209
"output_type": "execute_result"
201210
}
202211
],
203212
"source": [
204213
"new_version_name = \"fabric_editor_1\"\n",
205-
"vms.create(new_version_name)"
214+
"version = vms.create(new_version_name)\n",
215+
"fq_version_name = version[\"versionInfo\"][\"versionName\"]\n",
216+
"print(fq_version_name)\n",
217+
"\n",
218+
"version # view the version's properties"
206219
]
207220
},
208221
{
@@ -219,20 +232,17 @@
219232
},
220233
{
221234
"cell_type": "code",
222-
"execution_count": 15,
235+
"execution_count": 14,
223236
"id": "e77b0221",
224237
"metadata": {},
225238
"outputs": [
226239
{
227240
"data": {
228241
"text/plain": [
229-
"['sde.DEFAULT',\n",
230-
" 'ADMIN.subdivision_a155544',\n",
231-
" 'ADMIN.combine_plat_1555467',\n",
232-
" 'ADMIN.fabric_editor_1']"
242+
"['sde.DEFAULT', 'gisproadv2.fabric_editor_1', 'creator2.merge_version_1']"
233243
]
234244
},
235-
"execution_count": 15,
245+
"execution_count": 14,
236246
"metadata": {},
237247
"output_type": "execute_result"
238248
}
@@ -288,7 +298,7 @@
288298
"\n",
289299
"# start a 'read' session to acquire a shared lock and\n",
290300
"# get a branch version by its name\n",
291-
"with vms.get(\"ADMIN.fabric_editor_1\", \"read\") as version:\n",
301+
"with vms.get(fq_version_name, \"read\") as version:\n",
292302
" parcel_fabric_manager = _parcel.ParcelFabricManager(\n",
293303
" parcel_fabric_manager_url, gis, version, parcel_fabric_flc\n",
294304
" )\n",
@@ -327,7 +337,7 @@
327337
}
328338
],
329339
"source": [
330-
"version = vms.get(f\"admin.{new_version_name}\")\n",
340+
"version = vms.get(fq_version_name)\n",
331341
"\n",
332342
"# version.reconcile()\n",
333343
"# version.post\n",
@@ -366,7 +376,7 @@
366376
"name": "python",
367377
"nbconvert_exporter": "python",
368378
"pygments_lexer": "ipython3",
369-
"version": "3.9.11"
379+
"version": "3.9.16"
370380
},
371381
"toc": {
372382
"base_numbering": 1,

0 commit comments

Comments
 (0)