|
13 | 13 | " \n",
|
14 | 14 | "Depending on the number of features that are updated, your workflow requirements, you may adopt either or both kinds of update mechanisms.\n",
|
15 | 15 | "\n",
|
16 |
| - "In the sample [Updating features in a feature layer](https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/) we explore method 1. In this sample, we explore method 2." |
| 16 | + "In the sample [Updating features in a feature layer](https://developers.arcgis.com/python/latest/samples/updating-features-in-a-feature-layer/) we explore method 1. In this sample, we explore method 2." |
17 | 17 | ]
|
18 | 18 | },
|
19 | 19 | {
|
|
74 | 74 | " 1. The name of the file that used to update in step 4 above should match the original file name of the item.\n",
|
75 | 75 | " 2. The schema -- number of layers (applicable when your original file is a file geodatabase / shape file / service definition), and the name and number of attribute columns should remain the same as before.\n",
|
76 | 76 | " \n",
|
77 |
| - "The **method 2** explained in this sample is much simpler compared to **method 1** explained in [Updating features in a feature layer](https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/). However, we cannot make use of the third spreadsheet which has the additional columns for our capitals. To do that, we would first update the features through overwriting, then edit the definition of the feature layer to add new columns and then edit each feature and add the appropriate column values, similar to that explained in method 1." |
| 77 | + "The **method 2** explained in this sample is much simpler compared to **method 1** explained in [Updating features in a feature layer](https://developers.arcgis.com/python/latest/samples/updating-features-in-a-feature-layer/). However, we cannot make use of the third spreadsheet which has the additional columns for our capitals. To do that, we would first update the features through overwriting, then edit the definition of the feature layer to add new columns and then edit each feature and add the appropriate column values, similar to that explained in method 1." |
78 | 78 | ]
|
79 | 79 | },
|
80 | 80 | {
|
|
86 | 86 | },
|
87 | 87 | {
|
88 | 88 | "cell_type": "code",
|
89 |
| - "execution_count": 97, |
| 89 | + "execution_count": null, |
90 | 90 | "metadata": {},
|
91 | 91 | "outputs": [],
|
92 | 92 | "source": [
|
93 | 93 | "# if you've downloaded the samples or are working with your own organization\n",
|
94 | 94 | "# or Enterprise, you could just read the \n",
|
95 |
| - "# csv data directly instead of copyting the file:\n", |
| 95 | + "# csv data directly instead of copying the file:\n", |
96 | 96 | "#\n",
|
97 | 97 | "# my_csv = os.path.join(data_path, csv_file)\n",
|
98 | 98 | "\n",
|
|
997 | 997 | "metadata": {},
|
998 | 998 | "source": [
|
999 | 999 | "## Conclusion\n",
|
1000 |
| - "Thus, in this sample, we observed how update a feature layer by overwriting it with new content. This method is a lot simpler than method 1 explained in [Updating features in a feature layer](https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/) sample. However, with this simplicity, we compromise on our ability to add new columns or change the schema of the feature layer during the update. Further, if your feature layer was updated after it was published, then those updates get overwritten when you perform the overwrite operation. To retain those edits, [extract the data](https://developers.arcgis.com/python/guide/checking-out-data-from-feature-layers-using-replicas/#Verify-Extract-capability) from the feature layer, merge your updates with this extract, then overwrite the feature layer." |
| 1000 | + "Thus, in this sample, we observed how update a feature layer by overwriting it with new content. This method is a lot simpler than method 1 explained in [Updating features in a feature layer](https://developers.arcgis.com/python/latest/samples/updating-features-in-a-feature-layer/) sample. However, with this simplicity, we compromise on our ability to add new columns or change the schema of the feature layer during the update. Further, if your feature layer was updated after it was published, then those updates get overwritten when you perform the overwrite operation. To retain those edits, [extract the data](https://developers.arcgis.com/python/guide/checking-out-data-from-feature-layers-using-replicas/#Verify-Extract-capability) from the feature layer, merge your updates with this extract, then overwrite the feature layer." |
1001 | 1001 | ]
|
1002 | 1002 | }
|
1003 | 1003 | ],
|
|
0 commit comments