Skip to content

Commit 742712e

Browse files
committed
updates from conflict
2 parents 6c81f3f + 300bbbe commit 742712e

File tree

42 files changed

+11144
-2091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+11144
-2091
lines changed

guide/01-getting-started/system-requirements.ipynb

+16-17
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,40 @@
2222
"metadata": {},
2323
"source": [
2424
"## Operating System \n",
25-
"The ArcGIS API for Python 2.4.0 release is compatible with 64-bit versions of Windows, macOS, and Linux.\n",
25+
"The ArcGIS API for Python 2.4.0 release is compatible with 64-bit versions of Windows, macOS (M-Series and Intel), and Linux.\n",
2626
"\n",
2727
"## Python Version\n",
28-
"Python 3.10.x to 3.12.x is required to use the ArcGIS API for Python 2.3.1.\n",
28+
"Python 3.10.x to 3.12.x is required to use the ArcGIS API for Python 2.3.1 and greater releases.\n",
2929
"\n",
3030
"## Dependencies\n",
3131
"The full power of the ArcGIS API for Python is best experienced when all its dependencies are installed. However, specific tasks such as GIS administration and content management can be accomplished with a subset of dependencies installed. See [Install with minimum Dependencies](../install-and-set-up#install-with-minimum-dependencies) to install the `arcgis` package in this manner.\n",
3232
"\n",
33-
"It is recommended to install the `arcgis` package the default way of either `conda install -c esri arcgis` or `pipenv install arcgis`. When version 2.3.1 is installed in this manner, all the below dependencies are automatically installed. \n",
33+
"It is recommended to install the `arcgis` package the default way of either `conda install -c esri arcgis arcgis-mapping` or `pipenv install arcgis arcgis-mapping`. When version 2.4.0 is installed in this manner, all the below dependencies are automatically installed. \n",
3434
"\n",
3535
"> __Note__ Most of these packages have dependencies of their own. For a full list of packages installed:\n",
3636
" > * conda environment, type `conda list -n <environment_name>`. \n",
37-
" > * pipenv virtual environment: See [`Pipfile` and `Pipfile.lock`](https://pipenv.pypa.io/en/latest/pipfile/) for details. \n",
37+
" > * pipenv virtual environment: See [`Pipfile` and `Pipfile.lock`](https://pipenv.pypa.io/en/latest/pipfile/) for details.\n",
38+
" \n",
3839
"\n",
39-
"* [pandas>=2.2.0](https://anaconda.org/Esri/pandas) \n",
40+
"* [pandas>=2.0.0,<2.2.0](https://anaconda.org/Esri/pandas) \n",
4041
"* [numpy>=1.21.6,<2](https://anaconda.org/Esri/numpy) \n",
41-
"* [pyshp>=2](https://anaconda.org/conda-forge/pyshp/) \n",
42+
"* [pyshp>=2,<3](https://anaconda.org/conda-forge/pyshp/)\n",
43+
"* [pillow](https://python-pillow.github.io/)\n",
44+
"* [certifi](https://github.com/certifi/python-certifi) \n",
4245
"* [matplotlib](https://anaconda.org/esri/matplotlib)\n",
4346
"* [matplotlib-inline](https://anaconda.org/anaconda/matplotlib-inline/)\n",
4447
"* [notebook](https://anaconda.org/esri/notebook)\n",
4548
"* [ipywidgets >=7,<8](https://anaconda.org/esri/ipywidgets)\n",
4649
"* [widgetsnbextension >=3](https://anaconda.org/esri/widgetsnbextension)\n",
4750
"* [keyring>=23.3.0](https://anaconda.org/esri/keyring)\n",
48-
"* [urllib3>=1.26.2,<3](https://anaconda.org/conda-forge/urllib3/)\n",
51+
"* [urllib3>=1.26.1,<3](https://anaconda.org/conda-forge/urllib3/)\n",
4952
"* [cachetools](https://anaconda.org/conda-forge/cachetools)\n",
5053
"* [lxml](https://anaconda.org/esri/lxml)\n",
54+
"* [puremagic >=1.15,<2](https://github.com/cdgriffith/puremagic)\n",
5155
"* [cryptography](https://anaconda.org/esri/cryptography)\n",
5256
"* [jupyter-client<=6.1.12](https://anaconda.org/conda-forge/jupyter-client/)\n",
5357
"* [pylerc](https://anaconda.org/esri/pylerc)\n",
58+
"* [pyarrow>11.0.0](https://arrow.apache.org/)\n",
5459
"* [ujson>=3](https://anaconda.org/conda-forge/ujson/)\n",
5560
"* [geomet](https://anaconda.org/esri/geomet/)\n",
5661
"* [requests>=2.30.0,<2.32.0](https://anaconda.org/conda-forge/requests/)\n",
@@ -64,25 +69,19 @@
6469
"* [pyspnego>=0.8.0](https://anaconda.org/conda-forge/pyspnego/)\n",
6570
" * Python>=3.10\n",
6671
"* **Windows only:**\n",
67-
" * [python-certifi-win32](https://anaconda.org/esri/python-certifi-win32/)\n",
68-
" * Python < 3.10\n",
6972
" * [pywin32>=223](https://anaconda.org/conda-forge/pywin32/)\n",
73+
" * pywin-security\n",
7074
" * [requests-negotiate-sspi](https://anaconda.org/esri/requests-negotiate-sspi/)\n",
7175
"\n",
76+
"> Note: The dependencies above result from installing using `conda`. Versions may vary if `arcgis` is installed using `pip`.\n",
7277
"\n",
7378
"> Note: if `arcpy` is found in the current python environment, it may be used in various locations. Otherwise, `pyshp` will be used. See [Spatially Enabled DataFrame](https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=geoaccessor#arcgis.features.GeoAccessor) for more information.\n",
7479
"\n",
80+
"\n",
7581
"### Optional Dependencies\n",
7682
"\n",
7783
"There are some other python packages that may be required to use certain functionality in the API, but are __not__ automatically installed. To use that functionality, you must manually call `conda install {package_name}` or `pipenv install {package_name}` for such optional packages."
7884
]
79-
},
80-
{
81-
"cell_type": "code",
82-
"execution_count": null,
83-
"metadata": {},
84-
"outputs": [],
85-
"source": []
8685
}
8786
],
8887
"metadata": {
@@ -101,7 +100,7 @@
101100
"name": "python",
102101
"nbconvert_exporter": "python",
103102
"pygments_lexer": "ipython3",
104-
"version": "3.11.0"
103+
"version": "3.11.11"
105104
},
106105
"toc": {
107106
"base_numbering": 1,

guide/04-feature-data-and-analysis/appending-features.ipynb

+13-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
"source": [
1414
"Any Web GIS Administrator can attest to the fundamental importance of managing hosted feature layers in ArcGIS online. Traditionally, adding data en masse to existing hosted feature layers typically involved a three-step process of downloading the feature layer data, merging additional edits, and finally overwriting the original feature layer. While that workflow still suffices in many circumstances, the [`append()`](https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append) function greatly simplifies the process. It can save you a ton of time if your features layers are large, eliminating the time involved in overwriting the feature layer. \n",
1515
"\n",
16-
"Let's take a look at some example `append()` workflows below. This guide document refers to the feature layer you will append data into as the `target`, while the item you append data from is referred to as the `source`."
16+
"Let's take a look at some example `append()` workflows below. This guide document refers to the feature layer you will append data into as the `target`, while the item you append data from is referred to as the `source`.\n",
17+
"\n",
18+
"> **Note:** Please see the [Append (Feature Service/Layer)](https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-layer/) for technical reference details on the append operation.\n",
19+
"\n",
20+
"> **Note:** When appending features from files, important criteria must be met in order for the append to succeed, and only certain file formats may be supported for a given layer. Please see the documentation for your deployment before attempting to append data:\n",
21+
"> * ArcGIS Online: _Manage hosted feature layers_ - [Add and update features from a file](https://doc.arcgis.com/en/arcgis-online/manage-data/manage-hosted-feature-layers.htm#APPEND)\n",
22+
"> * ArcGIS Enteprise: _Manage hosted feature layers_ - [Add and update features from a file](https://enterprise.arcgis.com/en/portal/latest/use/manage-hosted-feature-layers.htm#APPEND)"
1723
]
1824
},
1925
{
@@ -118,7 +124,7 @@
118124
"source": [
119125
"## Append New Features from a File Geodatabase\n",
120126
"\n",
121-
"This first example appends new features from a File Geodatabase into a hosted feature layer. For optimal performance and minimal chance of errors when using [`append()`](https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append), Esri strongly recommends the schema for the source file to upload (source) matches the schema of the hosted feature service layer (target). \n",
127+
"This first example appends new features from a File Geodatabase into a hosted feature layer. For optimal performance and minimal chance of errors when using [`append()`](https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append), Esri strongly recommends the schema for the source file to upload (source) matches the schema of the hosted feature service layer (target). Please note that appending from a file geodatabase is only supported in ArcGIS Online.\n",
122128
"\n",
123129
"In this first section, you'll have matching schema between your File Geodatabase item (named `SubDiv_PB11_PG48_parcels`) and a hosted feature service layer you will publish."
124130
]
@@ -414,7 +420,11 @@
414420
"metadata": {},
415421
"source": [
416422
"### Get the source item for appending\n",
417-
"In order for the append workflow to succeed, you need to add the source file containing the new features as an Item in your GIS. In this case, the data file is already uploaded as an Item for you. From there, get the item id value for this file geodatabase item containing features you want to append to the feature layer. In this case, the Schema from the file geodatabase you'll append matches that of the hosted feature layer."
423+
"In order for the append workflow to succeed, you need to add the source file containing the new features as an Item in your GIS. In this case, the data file is already uploaded as an Item for you. From there, get the item id value for this file geodatabase item containing features you want to append to the feature layer. In this case, the Schema from the file geodatabase you'll append matches that of the hosted feature layer.\n",
424+
"\n",
425+
"> **Note:** It is important to verify the Feature Layer you use supports the operation you intend to run. Please query the feature layer for the following properties to confirm:\n",
426+
"> * `FeatureLayer.properties.supportsAppend` - see [Supports append](https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-layer/#supports-append) for details.\n",
427+
"> * `FeatureLayer.properties.supportedAppendFormats` - see [Supported append formats](https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-layer/#supported-append-formats) for details."
418428
]
419429
},
420430
{
@@ -546,7 +556,6 @@
546556
"source": [
547557
"m2 = gis.map(\"Downingtown, PA\")\n",
548558
"m2.center = [40.0065, -75.7033]\n",
549-
"m2.zoom = 14\n",
550559
"m2"
551560
]
552561
},

guide/05-working-with-the-spatially-enabled-dataframe/part2_data_io_reading_data.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -2826,6 +2826,13 @@
28262826
"</div>\n"
28272827
]
28282828
},
2829+
{
2830+
"cell_type": "markdown",
2831+
"metadata": {},
2832+
"source": [
2833+
"> **Note:** Organizations should review the [data attributions](https://www.esri.com/en-us/legal/terms/data-attributions) and [Master Agreement](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf) to make sure they are in compliance when geoenriching data and making it available to other systems."
2834+
]
2835+
},
28292836
{
28302837
"cell_type": "code",
28312838
"execution_count": 51,

guide/05-working-with-the-spatially-enabled-dataframe/visualizing-data-with-the-spatially-enabled-dataframe.ipynb

+28
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,34 @@
14071407
"county_sdf.spatial.plot(map_widget=m9)"
14081408
]
14091409
},
1410+
{
1411+
"cell_type": "markdown",
1412+
"metadata": {},
1413+
"source": [
1414+
"### Add Popup Field Info"
1415+
]
1416+
},
1417+
{
1418+
"cell_type": "markdown",
1419+
"metadata": {},
1420+
"source": [
1421+
"Finally, we can add field information from the dataframe to the popup for it to display on the map when a user clicks on a specific county."
1422+
]
1423+
},
1424+
{
1425+
"cell_type": "code",
1426+
"execution_count": null,
1427+
"metadata": {},
1428+
"outputs": [],
1429+
"source": [
1430+
"from arcgis.map.dataclasses.models import FieldInfo\n",
1431+
"\n",
1432+
"pu = m9.content.popup(0)\n",
1433+
"pu.disable_popup = False\n",
1434+
"fields = [FieldInfo(field_name=fld) for fld in county_sdf.columns]\n",
1435+
"pu.edit(\"County Data\", field_infos=fields)"
1436+
]
1437+
},
14101438
{
14111439
"cell_type": "markdown",
14121440
"metadata": {},

guide/12-enrich-data-with-thematic-information/part1_introduction_to_geoenrichment.ipynb

+9-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"The GeoEnrichment module provides a python interface for access the demographic data provided through Business Analyst to enrich study areas, access standard geographies, and create reports. Accessing standard geographies enables retrieving and enriching standard jurisdictional areas such as counties, postal (zip) codes or US Census Block Groups in the United States."
2121
]
2222
},
23+
{
24+
"cell_type": "markdown",
25+
"metadata": {},
26+
"source": [
27+
"> **Note:** Organizations should review the [data attributions](https://www.esri.com/en-us/legal/terms/data-attributions) and [Master Agreement](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf) to make sure they are in compliance when geoenriching data and making it available to other systems."
28+
]
29+
},
2330
{
2431
"cell_type": "markdown",
2532
"metadata": {
@@ -1492,7 +1499,7 @@
14921499
"metadata": {
14931500
"anaconda-cloud": {},
14941501
"kernelspec": {
1495-
"display_name": "Python 3",
1502+
"display_name": "Python 3 (ipykernel)",
14961503
"language": "python",
14971504
"name": "python3"
14981505
},
@@ -1506,7 +1513,7 @@
15061513
"name": "python",
15071514
"nbconvert_exporter": "python",
15081515
"pygments_lexer": "ipython3",
1509-
"version": "3.9.11"
1516+
"version": "3.11.0"
15101517
},
15111518
"livereveal": {
15121519
"scroll": true

guide/12-enrich-data-with-thematic-information/part5_generate_reports.ipynb

+908-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)