Skip to content

Commit de31858

Browse files
authored
Merge pull request #350 from Esri/feddev_presentations
2019 Federal Dev Summit Presentations. thanks @achapkowski
2 parents 54c3b0a + e7c478f commit de31858

40 files changed

+17405
-0
lines changed

talks/FederalDevSummit2019/AdvancedScripting_2019/demo/GIS_GP_and_Features.ipynb

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

talks/FederalDevSummit2019/AdvancedScripting_2019/demo/Geoenrichment.ipynb

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

talks/FederalDevSummit2019/AdvancedScripting_2019/demo/Raster analysis advanced concepts.ipynb

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

talks/FederalDevSummit2019/AdvancedScripting_2019/demo/features/accessing_and_visualizing_feature_data.ipynb

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

talks/FederalDevSummit2019/AdvancedScripting_2019/demo/features/helper.ipynb

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

0 commit comments

Comments
 (0)