Skip to content

Commit f095fe7

Browse files
committed
Automation/Admin/Mapping initial commit of some notebooks and files
1 parent 11f201b commit f095fe7

File tree

8 files changed

+4033
-0
lines changed

8 files changed

+4033
-0
lines changed

talks/DevSummit2019/Administering_Your_WebGIS/Deploy_Notifications.ipynb

Lines changed: 344 additions & 0 deletions
Large diffs are not rendered by default.

talks/DevSummit2019/Administering_Your_WebGIS/Server_Automation.ipynb

Lines changed: 573 additions & 0 deletions
Large diffs are not rendered by default.
65.4 MB
Binary file not shown.

talks/DevSummit2019/Automation_WebGIS/Deploy_Notifications.ipynb

Lines changed: 344 additions & 0 deletions
Large diffs are not rendered by default.

talks/DevSummit2019/Automation_WebGIS/Server_Automation.ipynb

Lines changed: 573 additions & 0 deletions
Large diffs are not rendered by default.

talks/DevSummit2019/Mapping_Visualization/Third_Party_Libraries.ipynb

Lines changed: 2197 additions & 0 deletions
Large diffs are not rendered by default.

talks/DevSummit2019/Mapping_Visualization/advanced-map-widget-useage.ipynb

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nbformat_minor":1,"metadata":{"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python","file_extension":".py","version":"3.6.8"},"anaconda-cloud":{},"celltoolbar":"Raw Cell Format","kernelspec":{"name":"python3","language":"python","display_name":"Python 3"}},"cells":[{"metadata":{},"source":"# Smart Mapping\nSmart Mapping is a new capability built into ArcGIS Online and Portal for ArcGIS (10.3.1 and after) with which you can easily create beautiful and stunning maps. With smart mapping your GIS gets the ability to quickly analyze your data and set smart defaults allowing you to easily create an illustrative map.\n\nTo learn more about this exciting capability visit [the help page](http://www.esri.com/software/arcgis/smart-mapping) and [this blog article](https://blogs.esri.com/esri/arcgis/2015/03/02/introducing-smart-mapping/). Here is a [detailed help](http://doc.arcgis.com/en/arcgis-online/create-maps/change-style.htm) on the various ways you can symbolize your data.","cell_type":"markdown"},{"metadata":{},"source":"## Visualizing line features\nThe first example shows some ideas on visualizing linear features using a streets layer. When you add an `Item` object to your map, the map widget renders it using the default symbology of the item. With smart mapping, you can customize this. In this example we will use **ClassSizeRenderer** to emphasize differences in value by varying the thickness of line features.","cell_type":"markdown"},{"outputs":[],"metadata":{"trusted":true},"execution_count":1,"source":"from arcgis.gis import *\ngis = GIS()","cell_type":"code"},{"outputs":[{"metadata":{},"output_type":"display_data","data":{"application/vnd.jupyter.widget-view+json":{"version_minor":0,"model_id":"b185e4090c864023bb6c62a0d2cca33e","version_major":2},"text/plain":"MapView(layout=Layout(height='400px', width='100%'), zoom=3.0)"}},{"metadata":{},"output_type":"display_data","data":{"text/html":"<div class=\"map-static-img-preview-0f9c7e24-090f-4484-98b2-a065aa65fc9d\"><img src=\"\"><\/img><\/div>","text/plain":"<IPython.core.display.HTML object>"}}],"metadata":{"trusted":true},"execution_count":2,"source":"map1 = gis.map('USA',3)\nmap1","cell_type":"code"},{"metadata":{},"source":"Let us search for an item titled **USA Freeway System** by **Esri** and add that to the map","cell_type":"markdown"},{"outputs":[{"metadata":{},"output_type":"execute_result","data":{"text/plain":"[<Item title:\"USA Freeway System\" type:Feature Layer Collection owner:esri>]"},"execution_count":3}],"metadata":{"trusted":true},"execution_count":3,"source":"search_result = gis.content.search('title:USA freeway system AND owner:esri', \n item_type = 'Feature Layer')\nsearch_result","cell_type":"code"},{"outputs":[],"metadata":{"trusted":true},"execution_count":4,"source":"freeway_item = search_result[0]\nmap1.add_layer(freeway_item)","cell_type":"code"},{"metadata":{},"source":"The freeway layer uses a simple symbology. Let us visualize it by one of the fields available on the feature layer. To do that, we get the Item's layers as **FeatureLayer** objects. From the `FeatureLayer` object, we can find the url and available fields.","cell_type":"markdown"},{"outputs":[{"output_type":"stream","name":"stdout","text":"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Freeway_System/FeatureServer/1\nOBJECTID\nROUTE_NUM\nCLASS\nNUMBER\nSUFFIX\nDIST_MILES\nDIST_KM\n"}],"metadata":{"trusted":true},"execution_count":5,"source":"# Use the first layer available on the service.\nfreeway_feature_layer = freeway_item.layers[0]\n\n# Print the layer's url and field names.\nprint(freeway_feature_layer.url)\nfor field in freeway_feature_layer.properties['fields']:\n print(field['name'])","cell_type":"code"},{"metadata":{},"source":"Let us use `DIST_MILES` field and symbolize it with varying colors. Let us also change the extent of the map to illustrate the differences better.","cell_type":"markdown"},{"outputs":[],"metadata":{"trusted":true},"execution_count":6,"source":"map1.add_layer(freeway_feature_layer, {\"renderer\":\"ClassedSizeRenderer\", \"field_name\": \"DIST_MILES\"})","cell_type":"code"},{"outputs":[],"metadata":{"trusted":true},"execution_count":7,"source":"# Change map's extent to Los Angeles city\nmap1.center = [34, -118]","cell_type":"code"},{"outputs":[],"metadata":{"trusted":true},"execution_count":8,"source":"map1.zoom = 10","cell_type":"code"},{"metadata":{},"source":"Thus, we represented longer freeways as thicker lines and shorter ones with thinner lines.","cell_type":"markdown"},{"metadata":{},"source":"## Visualizing area features\nArea or polygon features are typically symbolized in varying colors to represent the differences in values. The example below shows how a **Classed Color Renderer** can be used to visualize the population differences between the counties of the state of Washington.\n\nAs you have seen in the previous sample, by using the **smart mapping** capability, you can author the map just by specifying the renderer type and the field to use and your GIS does the rest such identifying a suitable color scheme based on your basemap and the min and max values for the color ramp.\n\nThe sample also shows how a definition expression can be used to limit the features displayed from the layer, and how the layer can be represented with transparency allowing the basemap to be seen.","cell_type":"markdown"},{"outputs":[],"metadata":{"trusted":true},"execution_count":9,"source":"map2 = gis.map('Seattle, WA', 6)","cell_type":"code"},{"outputs":[{"metadata":{},"output_type":"display_data","data":{"application/vnd.jupyter.widget-view+json":{"version_minor":0,"model_id":"8530706eb26a47d58189f4db890e39f6","version_major":2},"text/plain":"MapView(layout=Layout(height='400px', width='100%'), zoom=6.0)"}},{"metadata":{},"output_type":"display_data","data":{"text/html":"<div class=\"map-static-img-preview-85be1498-ab89-46f0-bf60-e1fe258c7bd8\"><img src=\"\"><\/img><\/div>","text/plain":"<IPython.core.display.HTML object>"}}],"metadata":{"trusted":true},"execution_count":10,"source":"map2","cell_type":"code"},{"metadata":{},"source":"The steps to search for a Feature Layer item and obtaining its url is demonstrated in the previous sample. For brevity, this sample skips that part.","cell_type":"markdown"},{"outputs":[],"metadata":{"trusted":true},"execution_count":11,"source":"map2.add_layer({\"type\":\"FeatureLayer\", \n \"url\":\"//sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2\",\n \"definition_expression\" : \"STATE_NAME='Washington'\",\n \"renderer\":\"ClassedColorRenderer\",\n \"field_name\":\"POP2007\",\n \"opacity\":0.7\n })","cell_type":"code"},{"metadata":{},"source":"## Visualizing location data\nPoint features are the most common type of location data. Smart mapping provides a special visualization technique called **heatmap**. The heatmap renderer is useful when representing the spatial distribution or clustering of points as it represents the relative density of points on a map as smoothly varying sets of colors ranging from cool (low density) to hot (many points).\n\nThus, the sample below visualizes earthquake occurrences in Southern California, using the heatmap renderer","cell_type":"markdown"},{"outputs":[],"metadata":{"trusted":true},"execution_count":12,"source":"map3 = gis.map('Los Angeles', 8)","cell_type":"code"},{"outputs":[{"metadata":{},"output_type":"display_data","data":{"application/vnd.jupyter.widget-view+json":{"version_minor":0,"model_id":"2dafa7b6cf8a4169b764f526c141ac22","version_major":2},"text/plain":"MapView(layout=Layout(height='400px', width='100%'), zoom=8.0)"}},{"metadata":{},"output_type":"display_data","data":{"text/html":"<div class=\"map-static-img-preview-d1f99e91-6017-42fe-b57d-d4d3c5c1a52e\"><img src=\"\"><\/img><\/div>","text/plain":"<IPython.core.display.HTML object>"}}],"metadata":{"trusted":true,"scrolled":false},"execution_count":13,"source":"map3","cell_type":"code"},{"outputs":[],"metadata":{"trusted":true},"execution_count":14,"source":"map3.add_layer({\"type\":\"FeatureLayer\",\n \"url\":\"http://services1.arcgis.com/hLJbHVT9ZrDIzK0I/arcgis/rest/services/EQMagGt4/FeatureServer/0\",\n \"renderer\":\"HeatmapRenderer\",\n \"opacity\":0.75})","cell_type":"code"}],"nbformat":4}

0 commit comments

Comments
 (0)