Skip to content

Edits based on user doc feedback #2292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions guide/03-the-gis/accessing-and-creating-content.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@
"\n",
"The `add()` method accepts a dictionary containing the properties of the item to be created. The optional `file`, `text`, `url`, and `data_url` parameters accept input to add the actual content. \n",
"\n",
"All content you add this way is added to the authenticated user's dolswe. Let us connect to our Enterprise instance, add a csv file as an item and then publish a feature layer from it.\n",
"All content you add this way is added to the authenticated user's folders. Let us connect to our Enterprise instance, add a csv file as an item and then publish a feature layer from it.\n",
"\n",
"For example, set up a path to the data:\n",
"`data_path = os.path.join(r\"<your_drive>:\\\\\", \"path\", \"to\", \"data\")`"
Expand Down Expand Up @@ -2460,7 +2460,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -2478,7 +2478,7 @@
],
"source": [
"# create new folder\n",
"gis.content.folders.create_folder(folder='ports')"
"gis.content.folders.create(folder='ports')"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion guide/03-the-gis/accessing-and-managing-groups.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"source": [
"<a id=\"searching-for-groups\"></a>\n",
"## Searching for groups\n",
"You can search for groups by using the `search()` method of `GroupManager` object. The `search()` method accepts standard [ArcGIS REST API queries](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Search_reference/02r3000000mn000000/). To illustrate this better, let us connect to ArcGIS Online anonymously and search for public groups that have the word 'water' in the title."
"You can search for groups by using the `search()` method of `GroupManager` object. The `search()` method accepts standard [ArcGIS REST API queries](https://developers.arcgis.com/rest/users-groups-and-items/search-reference/). To illustrate this better, let us connect to ArcGIS Online anonymously and search for public groups that have the word 'water' in the title."
]
},
{
Expand Down
22 changes: 20 additions & 2 deletions guide/03-the-gis/managing-your-content.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,24 @@
"volcanoes_item.tags"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"'d7fd78fb56aa48a2a376e08e0c3caefb'\n"
]
}
],
"source": [
"# id\n",
"volcanoes_item.id"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -654,7 +672,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -668,7 +686,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.11.10"
},
"toc": {
"base_numbering": 1,
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions samples/03_org_administrators/validate_user_profiles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -290,7 +290,7 @@
"\n",
"root_folder = gis.content.folders.get()\n",
"\n",
"gis.content.add(\n",
"root_folder.add(\n",
" item_properties = item_props,\n",
" file= os.path.join(output_dir + out_file)\n",
").result()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
" \n",
"Depending on the number of features that are updated, your workflow requirements, you may adopt either or both kinds of update mechanisms.\n",
"\n",
"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."
"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.\n",
"\n",
"Please note that you can only overwrite a feature layer if you are the owner of the feature layer or have administrative privileges in your organization."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2313,7 +2313,7 @@
"\n",
"This method is editing intensive and you may choose this when the number of features to edit is less or if you needed to selectively update certain features as updates come in.\n",
"\n",
"An alternate method is to overwrite the feature layer altogether when you always have current information coming in. This method is explained in the sample [Overwriting feature layers](https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers)"
"An alternate method is to overwrite the feature layer altogether when you always have current information coming in. This method is explained in the sample [Overwriting feature layers](https://developers.arcgis.com/python/latest/samples/overwriting-feature-layers/)"
]
}
],
Expand Down