Skip to content

Commit 34faea4

Browse files
authored
Merge pull request #1924 from Esri/feature_data_analysis_2
Minor changes to features guides
2 parents f198f0e + 38d23a5 commit 34faea4

File tree

5 files changed

+174
-118
lines changed

5 files changed

+174
-118
lines changed

guide/04-feature-data-and-analysis/discovering-suitable-locations-in-feature-data.ipynb

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Find locations\n",
7+
"# Find Downstream Path from a Location\n",
88
"\n",
9-
"The ArcGIS API for Python packs a set of tools to discover features that pass a number of criteria that you specify. These tools are typically used for site selection, view shed analysis, downstream analysis, where the objective is to find places that satisfy multiple criteria."
9+
"The ArcGIS API for Python packs a set of tools to discover features that pass a number of criteria that you specify. These tools are typically used for site selection, view shed analysis, and downstream analysis, where the objective is to find places that satisfy multiple criteria."
1010
]
1111
},
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
1515
"source": [
1616
"## Trace downstream\n",
17-
"The Trace Downstream tool determines the downstream flow paths from specified input locations. This tool uses the world elevation service to determine the downstream flow path of fluids (like drain or storm water) from a specified point of interest. This tool is particularly useful in predicting the course of flash floods, dispersion of water borne pollutants etc.\n",
17+
"The Trace Downstream tool determines the downstream flow paths from specified input locations. This tool uses the world elevation service to determine the downstream flow path of fluids (like drain or storm water) from a specified point of interest. This tool is particularly useful in predicting the course of flash floods, dispersion of water-borne pollutants, etc.\n",
1818
"\n",
19-
"In the example below, we observe how this tool can be used to calculate the flow path of snow melt in mountains of southern California."
19+
"In the example below, we observe how this tool can be used to calculate the flow path of snow melt in Southern California mountains."
2020
]
2121
},
2222
{
@@ -30,6 +30,13 @@
3030
"gis = GIS(profile=\"your_online_profile\")"
3131
]
3232
},
33+
{
34+
"cell_type": "markdown",
35+
"metadata": {},
36+
"source": [
37+
"## Map starting point location"
38+
]
39+
},
3340
{
3441
"cell_type": "code",
3542
"execution_count": 4,
@@ -98,7 +105,14 @@
98105
"metadata": {},
99106
"outputs": [],
100107
"source": [
101-
"map1.add_layer(bigbear_item)"
108+
"map1.content.add(bigbear_item)"
109+
]
110+
},
111+
{
112+
"cell_type": "markdown",
113+
"metadata": {},
114+
"source": [
115+
"## Run the Trace Analysis"
102116
]
103117
},
104118
{
@@ -131,13 +145,20 @@
131145
"trace1 = find_locations.trace_downstream(bigbear_fc)"
132146
]
133147
},
148+
{
149+
"cell_type": "markdown",
150+
"metadata": {},
151+
"source": [
152+
"## Add Trace to the Map"
153+
]
154+
},
134155
{
135156
"cell_type": "code",
136157
"execution_count": 20,
137158
"metadata": {},
138159
"outputs": [],
139160
"source": [
140-
"map1.add_layer(trace1)"
161+
"map1.content.add(trace1)"
141162
]
142163
}
143164
],
@@ -157,7 +178,7 @@
157178
"name": "python",
158179
"nbconvert_exporter": "python",
159180
"pygments_lexer": "ipython3",
160-
"version": "3.9.18"
181+
"version": "3.11.0"
161182
},
162183
"toc": {
163184
"base_numbering": 1,
@@ -174,5 +195,5 @@
174195
}
175196
},
176197
"nbformat": 4,
177-
"nbformat_minor": 1
198+
"nbformat_minor": 4
178199
}

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

Lines changed: 21 additions & 29 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
"outputs": [],
276276
"source": [
277277
"map = gis.map(\"Keowns, WI\")\n",
278-
"map.draw(parcels_subset)\n",
278+
"map.content.draw(parcels_subset)\n",
279279
"map.zoom_to_layer(parcels_subset)"
280280
]
281281
},
@@ -299,7 +299,7 @@
299299
],
300300
"source": [
301301
"# Two parcels to be merged:\n",
302-
"map.take_screenshot()"
302+
"map"
303303
]
304304
},
305305
{
@@ -430,7 +430,7 @@
430430
"outputs": [],
431431
"source": [
432432
"map1 = gis.map(\"Keowns, WI\")\n",
433-
"map1.draw(merged_parcel)\n",
433+
"map1.content.draw(merged_parcel)\n",
434434
"map1.zoom_to_layer(merged_parcel)"
435435
]
436436
},
@@ -454,7 +454,7 @@
454454
],
455455
"source": [
456456
"# Two features merged into one\n",
457-
"map1.take_screenshot()"
457+
"map1"
458458
]
459459
},
460460
{

guide/04-feature-data-and-analysis/performing-proximity-analysis-on-feature-data.ipynb

Lines changed: 103 additions & 63 deletions
Large diffs are not rendered by default.

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

Lines changed: 17 additions & 14 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)