|
8 | 8 | "\n",
|
9 | 9 | "Proximity analysis tools help you answer one of the most common questions posed in spatial analysis: What is near what?\n",
|
10 | 10 | "\n",
|
11 |
| - "Proximity tools are available under the sub module `use_proximity` in the `features` module of the API. This section of the guide talks about using two tools from this module - create buffers and plan routes" |
| 11 | + "Proximity tools are available under the sub module `use_proximity` in the `features` module of the API. This section of the guide talks about using two tools from this module - create buffers and plan routes." |
12 | 12 | ]
|
13 | 13 | },
|
14 | 14 | {
|
|
27 | 27 | "source": [
|
28 | 28 | "## Create buffers\n",
|
29 | 29 | "\n",
|
30 |
| - "The Create Buffers tool creates areas around input point, line, or area features to a specified distance. Running this tool creates output polygon layers of a specified radius. This tool is often used with overlay analysis to answer questions such as 'What falls within 5 mile radius of this school?'. Refer [here](http://doc.arcgis.com/en/arcgis-online/use-maps/create-buffers.htm) for more details on this tool.\n", |
| 30 | + "The Create Buffers tool creates areas around input point, line, or area features to a specified distance. Running this tool creates output polygon layers of a specified radius. This tool is often used with overlay analysis to answer questions such as: 'What falls within 5 mile radius of this school?' Refer [here](http://doc.arcgis.com/en/arcgis-online/use-maps/create-buffers.htm) for more details on this tool.\n", |
31 | 31 | "\n",
|
32 | 32 | "In the examaple below, let us create buffers of 50 mile radius around major ports along the West Coast of the USA."
|
33 | 33 | ]
|
|
78 | 78 | "cell_type": "markdown",
|
79 | 79 | "metadata": {},
|
80 | 80 | "source": [
|
81 |
| - "Let us render these ports on a map" |
| 81 | + "Let's render these ports on a map." |
82 | 82 | ]
|
83 | 83 | },
|
84 | 84 | {
|
|
185 | 185 | "cell_type": "markdown",
|
186 | 186 | "metadata": {},
|
187 | 187 | "source": [
|
188 |
| - "A buffer of 50 miles around each of these ports has been created" |
| 188 | + "A buffer of 50 miles around each of these ports has been created." |
189 | 189 | ]
|
190 | 190 | },
|
191 | 191 | {
|
|
212 | 212 | "cell_type": "markdown",
|
213 | 213 | "metadata": {},
|
214 | 214 | "source": [
|
215 |
| - "`ports_buffer50` is a new Feature Collection Item in portal. Had we not specified the `output_name` parameter while running the tool, `ports_buffer50` would be an in memory Feature Collection object and would not be saved as an item on the portal.\n", |
| 215 | + "`ports_buffer50` is a new Feature Collection Item in portal. If we didn't specify the `output_name` parameter while running the tool, `ports_buffer50` would instead be an in-memory Feature Collection object and would not be saved as an item in the portal.\n", |
216 | 216 | "\n",
|
217 |
| - "Let us add the result to a new map." |
| 217 | + "Let's add the result to a new map." |
218 | 218 | ]
|
219 | 219 | },
|
220 | 220 | {
|
|
265 | 265 | "source": [
|
266 | 266 | "### Buffer based on a numerical field\n",
|
267 | 267 | "Sometimes, it makes sense to vary the buffered distance by a field on the layer. For instance, when creating buffers around hazardous sites, you may want to vary the distance by the type or quantity of materials held in the facility.\n",
|
268 |
| - "Such kinds of buffers can be created by specifying a numerical field to the `field` parameter. Let us query all the fields on this layer and determine which can be used" |
| 268 | + "Such kinds of buffers can be created by specifying a numerical field to the `field` parameter. Let us query all the fields on this layer and determine which can be used." |
269 | 269 | ]
|
270 | 270 | },
|
271 | 271 | {
|
272 | 272 | "cell_type": "code",
|
273 | 273 | "execution_count": 11,
|
274 |
| - "metadata": { |
275 |
| - "scrolled": false |
276 |
| - }, |
| 274 | + "metadata": {}, |
277 | 275 | "outputs": [
|
278 | 276 | {
|
279 | 277 | "data": {
|
|
546 | 544 | "metadata": {},
|
547 | 545 | "source": [
|
548 | 546 | "## Plan routes\n",
|
549 |
| - "Plan Routes determines how a fleet of vehicles can visit a set of stops in the least amount of time. The plan routes tool is versatile and can be used to plan either a simple route direction or plan the travel of a fleet of vehicles. To learn more about this tool visit the [tool documentation](http://doc.arcgis.com/en/arcgis-online/use-maps/plan-routes.htm)\n", |
| 547 | + "Plan Routes determines how a fleet of vehicles can visit a set of stops in the least amount of time. The plan routes tool is versatile and can be used to plan either a simple route direction or plan the travel of a fleet of vehicles. To learn more about this tool visit the [tool documentation](http://doc.arcgis.com/en/arcgis-online/use-maps/plan-routes.htm).\n", |
550 | 548 | "\n",
|
551 | 549 | "In the example below, we will observe how to plan a simple route for tourists when they visit major attractions in Los Angeles. Our stops would be [Universal studios](https://en.wikipedia.org/wiki/Universal_Studios_Hollywood), [Griffith observatory](https://en.wikipedia.org/wiki/Griffith_Observatory), [Disneyland amusement park](https://en.wikipedia.org/wiki/Disneyland), [Hollywood walk of fame](https://en.wikipedia.org/wiki/Hollywood_Walk_of_Fame) and back to [Los Angeles international airport](https://en.wikipedia.org/wiki/Los_Angeles_International_Airport).\n",
|
552 | 550 | "\n",
|
553 |
| - "At a minimum the plan routes tool accepts a stop layer, start layer, route count and the maximum number of stops per route." |
| 551 | + "At a minimum, the plan routes tool accepts a stop layer, start layer, route count, and the maximum number of stops per route." |
554 | 552 | ]
|
555 | 553 | },
|
556 | 554 | {
|
|
568 | 566 | "cell_type": "markdown",
|
569 | 567 | "metadata": {},
|
570 | 568 | "source": [
|
571 |
| - "Let us add the attractions and destination to a map" |
| 569 | + "Now, let's add the attractions and destination to a map." |
572 | 570 | ]
|
573 | 571 | },
|
574 | 572 | {
|
|
684 | 682 | "cell_type": "markdown",
|
685 | 683 | "metadata": {},
|
686 | 684 | "source": [
|
687 |
| - "We have successfully calculated the route, let us add it back to the map" |
| 685 | + "We have successfully calculated the route- let's add it back to the map." |
688 | 686 | ]
|
689 | 687 | },
|
690 | 688 | {
|
|
709 | 707 | "map4.content.add(route1['routes_layer'])\n",
|
710 | 708 | "map4"
|
711 | 709 | ]
|
712 |
| - }, |
713 |
| - { |
714 |
| - "cell_type": "code", |
715 |
| - "execution_count": null, |
716 |
| - "metadata": {}, |
717 |
| - "outputs": [], |
718 |
| - "source": [] |
719 | 710 | }
|
720 | 711 | ],
|
721 | 712 | "metadata": {
|
|
734 | 725 | "name": "python",
|
735 | 726 | "nbconvert_exporter": "python",
|
736 | 727 | "pygments_lexer": "ipython3",
|
737 |
| - "version": "3.11.5" |
| 728 | + "version": "3.10.14" |
738 | 729 | },
|
739 | 730 | "toc": {
|
740 | 731 | "base_numbering": 1,
|
|
751 | 742 | }
|
752 | 743 | },
|
753 | 744 | "nbformat": 4,
|
754 |
| - "nbformat_minor": 1 |
| 745 | + "nbformat_minor": 4 |
755 | 746 | }
|
0 commit comments