Skip to content

Commit c3e060a

Browse files
author
Atma Mani
committed
advanced scripting - features, geocoding, network
1 parent 8c55b68 commit c3e060a

File tree

6 files changed

+3910
-0
lines changed

6 files changed

+3910
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
guide/gis module/.ipynb_checkpoints/class gis.ContentManager-checkpoint.ipynb
22
.ipynb_checkpoints
33
.idea/
4+
.DS_Store

talks/uc2017/ArcGIS Python API - Advanced Scripting/features/accessing_and_visualizing_feature_data.ipynb

+937
Large diffs are not rendered by default.

talks/uc2017/ArcGIS Python API - Advanced Scripting/features/helper.ipynb

+398
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"slideshow": {
7+
"slide_type": "slide"
8+
}
9+
},
10+
"source": [
11+
"# `arcgis` package architecture\n",
12+
"![](http://esri.github.io/arcgis-python-api/notebooks/nbimages/guide_api_overview_01.png)"
13+
]
14+
},
15+
{
16+
"cell_type": "markdown",
17+
"metadata": {
18+
"slideshow": {
19+
"slide_type": "slide"
20+
}
21+
},
22+
"source": [
23+
"# Introduction to the `features` module\n",
24+
"\n",
25+
" Feature\n",
26+
" FeatureSet\n",
27+
" FeatureLayer / FeatureCollection\n",
28+
" FeatureLayerCollection"
29+
]
30+
},
31+
{
32+
"cell_type": "markdown",
33+
"metadata": {
34+
"slideshow": {
35+
"slide_type": "slide"
36+
}
37+
},
38+
"source": [
39+
"![](http://esri.github.io/arcgis-python-api/notebooks/nbimages/guide_features_01.png)"
40+
]
41+
},
42+
{
43+
"cell_type": "markdown",
44+
"metadata": {
45+
"slideshow": {
46+
"slide_type": "slide"
47+
}
48+
},
49+
"source": [
50+
"Fortune 500 company example\n",
51+
" - Each company (single point in space) = `Feature` object.\n",
52+
" - All East-coast companies profit > 5B = `FeatureSet`. A `FeatureSet` is a collection of `Feature` objects.\n",
53+
" - When published as a feature service on your GIS. That layer is a `FeatureLayer`.\n",
54+
" - The collection of all layers in the feature service is read as a `FeatureLayerCollection` object.\n",
55+
" - Alternate to `FeatureLayer` - can store as lightweight item = `FeatureCollection`.\n",
56+
" - `FeatureCollection` is a `FeatureSet` + `layerDefinition` info"
57+
]
58+
},
59+
{
60+
"cell_type": "markdown",
61+
"metadata": {},
62+
"source": [
63+
"On your enterprise, your feature data live either as a `FeatureLayer` or `FeatureCollection` which can also be an item without a feature service. The latter has a size limit though"
64+
]
65+
},
66+
{
67+
"cell_type": "markdown",
68+
"metadata": {
69+
"slideshow": {
70+
"slide_type": "slide"
71+
}
72+
},
73+
"source": [
74+
" - `Item` object in your enterprise. Eg: fortune_500_2017\n",
75+
" - `Item.layers` property will give either a \n",
76+
" - list of [`FeatureLayer`] objects\n",
77+
" - or a [`FeatureCollection`] object\n",
78+
" \n",
79+
" - call the `query()` method on either a `FeatureLayer` or `FeatureCollection` you get\n",
80+
" - `FeatureSet`\n",
81+
" - `features` property of `FeatureSet` gives a list of `[Feature]` objects"
82+
]
83+
},
84+
{
85+
"cell_type": "markdown",
86+
"metadata": {
87+
"slideshow": {
88+
"slide_type": "slide"
89+
}
90+
},
91+
"source": [
92+
"### Where to use what?\n",
93+
" - `Feature` - smallest entity. Cannot draw a single feature object.\n",
94+
" - `geometry`, `attributes`, `fields`\n",
95+
" \n",
96+
" \n",
97+
" - `FeatureSet` - inputs to GP, can be drawn on map widget\n",
98+
" - `df`, `spatial_reference`, `features`, `fields`\n",
99+
" \n",
100+
" \n",
101+
" - `FeatureCollection` - items in GIS, input to GP, output from GP\n",
102+
" - `query()` [does not support where clause]\n",
103+
" \n",
104+
" \n",
105+
" - `FeatureLayer` - through individual layers of a feature services.\n",
106+
" - `query()` [supports where clause], `attachments`\n",
107+
" - `manager`, `edit_features()`, `calculate()`, `query_related_records()`\n",
108+
" \n",
109+
" \n",
110+
" - `FeatureLayerCollection` - through publishing as feature services"
111+
]
112+
}
113+
],
114+
"metadata": {
115+
"kernelspec": {
116+
"display_name": "Python 3",
117+
"language": "python",
118+
"name": "python3"
119+
},
120+
"language_info": {
121+
"codemirror_mode": {
122+
"name": "ipython",
123+
"version": 3
124+
},
125+
"file_extension": ".py",
126+
"mimetype": "text/x-python",
127+
"name": "python",
128+
"nbconvert_exporter": "python",
129+
"pygments_lexer": "ipython3",
130+
"version": "3.5.3"
131+
}
132+
},
133+
"nbformat": 4,
134+
"nbformat_minor": 1
135+
}

0 commit comments

Comments
 (0)