Skip to content

Commit afbdc8f

Browse files
committed
removed lab output
1 parent 7aebbb9 commit afbdc8f

File tree

1 file changed

+7
-222
lines changed

1 file changed

+7
-222
lines changed

labs/load_spatial_data_frame.ipynb

Lines changed: 7 additions & 222 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"cell_type": "code",
15-
"execution_count": 13,
15+
"execution_count": null,
1616
"metadata": {
1717
"collapsed": true
1818
},
@@ -49,20 +49,9 @@
4949
},
5050
{
5151
"cell_type": "code",
52-
"execution_count": 15,
52+
"execution_count": null,
5353
"metadata": {},
54-
"outputs": [
55-
{
56-
"data": {
57-
"text/plain": [
58-
"[<Item title:\"Griffith\" type:Feature Layer Collection owner:mpayson_startups>]"
59-
]
60-
},
61-
"execution_count": 15,
62-
"metadata": {},
63-
"output_type": "execute_result"
64-
}
65-
],
54+
"outputs": [],
6655
"source": [
6756
"feature_service_srch_results = gis.content.search(query='title: \"Griffith*\" AND type: \"Feature Service\"')\n",
6857
"feature_service_srch_results"
@@ -77,20 +66,9 @@
7766
},
7867
{
7968
"cell_type": "code",
80-
"execution_count": 16,
69+
"execution_count": null,
8170
"metadata": {},
82-
"outputs": [
83-
{
84-
"data": {
85-
"text/plain": [
86-
"<FeatureLayer url:\"https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0\">"
87-
]
88-
},
89-
"execution_count": 16,
90-
"metadata": {},
91-
"output_type": "execute_result"
92-
}
93-
],
71+
"outputs": [],
9472
"source": [
9573
"feature_service_item = feature_service_srch_results[0]\n",
9674
"feature_layer = feature_service_item.layers[0]\n",
@@ -106,202 +84,9 @@
10684
},
10785
{
10886
"cell_type": "code",
109-
"execution_count": 17,
87+
"execution_count": null,
11088
"metadata": {},
111-
"outputs": [
112-
{
113-
"data": {
114-
"text/html": [
115-
"<div>\n",
116-
"<style scoped>\n",
117-
" .dataframe tbody tr th:only-of-type {\n",
118-
" vertical-align: middle;\n",
119-
" }\n",
120-
"\n",
121-
" .dataframe tbody tr th {\n",
122-
" vertical-align: top;\n",
123-
" }\n",
124-
"\n",
125-
" .dataframe thead th {\n",
126-
" text-align: right;\n",
127-
" }\n",
128-
"</style>\n",
129-
"<table border=\"1\" class=\"dataframe\">\n",
130-
" <thead>\n",
131-
" <tr style=\"text-align: right;\">\n",
132-
" <th></th>\n",
133-
" <th>CITY_JUR</th>\n",
134-
" <th>ELEV_FT</th>\n",
135-
" <th>FEATURE</th>\n",
136-
" <th>FEAT_CMNT</th>\n",
137-
" <th>FID</th>\n",
138-
" <th>LAT</th>\n",
139-
" <th>LON</th>\n",
140-
" <th>OBJECTID</th>\n",
141-
" <th>PARKING</th>\n",
142-
" <th>PARK_NAME</th>\n",
143-
" <th>PHOTO</th>\n",
144-
" <th>SEG_ID</th>\n",
145-
" <th>SUP_DIST</th>\n",
146-
" <th>TRL_ID</th>\n",
147-
" <th>TRL_NAME</th>\n",
148-
" <th>X_STREET</th>\n",
149-
" <th>ZIP_CODE</th>\n",
150-
" <th>SHAPE</th>\n",
151-
" </tr>\n",
152-
" </thead>\n",
153-
" <tbody>\n",
154-
" <tr>\n",
155-
" <th>0</th>\n",
156-
" <td>Unincorporated Los Angeles County</td>\n",
157-
" <td>831</td>\n",
158-
" <td>TAPO</td>\n",
159-
" <td>Auto Generated and Verified</td>\n",
160-
" <td>1</td>\n",
161-
" <td>34.113057</td>\n",
162-
" <td>-118.751527</td>\n",
163-
" <td>7769</td>\n",
164-
" <td>SA</td>\n",
165-
" <td>National Parks Service</td>\n",
166-
" <td>None</td>\n",
167-
" <td>200820000.0</td>\n",
168-
" <td>3rd District</td>\n",
169-
" <td>20082</td>\n",
170-
" <td>Medea Creek Trail</td>\n",
171-
" <td>28825 Lake Vista Dr</td>\n",
172-
" <td>91301.0</td>\n",
173-
" <td>{'x': -13219359.478715053, 'y': 4043992.964497...</td>\n",
174-
" </tr>\n",
175-
" <tr>\n",
176-
" <th>1</th>\n",
177-
" <td>Unincorporated Los Angeles County</td>\n",
178-
" <td>1555</td>\n",
179-
" <td>TAPO</td>\n",
180-
" <td>None</td>\n",
181-
" <td>2</td>\n",
182-
" <td>34.059687</td>\n",
183-
" <td>-118.616545</td>\n",
184-
" <td>8047</td>\n",
185-
" <td>ST</td>\n",
186-
" <td>National Parks Service</td>\n",
187-
" <td>None</td>\n",
188-
" <td>200670000.0</td>\n",
189-
" <td>3rd District</td>\n",
190-
" <td>20067</td>\n",
191-
" <td>Hearst Tank Motorway</td>\n",
192-
" <td>3200 Tuna Canyon Rd</td>\n",
193-
" <td>90290.0</td>\n",
194-
" <td>{'x': -13204333.421340073, 'y': 4036819.355827...</td>\n",
195-
" </tr>\n",
196-
" <tr>\n",
197-
" <th>2</th>\n",
198-
" <td>Unincorporated Los Angeles County</td>\n",
199-
" <td>758</td>\n",
200-
" <td>TH</td>\n",
201-
" <td>Auto Generated and Verified</td>\n",
202-
" <td>3</td>\n",
203-
" <td>34.117364</td>\n",
204-
" <td>-118.756839</td>\n",
205-
" <td>7770</td>\n",
206-
" <td>SA</td>\n",
207-
" <td>National Parks Service</td>\n",
208-
" <td>None</td>\n",
209-
" <td>200840000.0</td>\n",
210-
" <td>3rd District</td>\n",
211-
" <td>20084</td>\n",
212-
" <td>Medicine Woman Trail</td>\n",
213-
" <td>2900 Cornell Rd</td>\n",
214-
" <td>91301.0</td>\n",
215-
" <td>{'x': -13219950.875755034, 'y': 4044572.018172...</td>\n",
216-
" </tr>\n",
217-
" <tr>\n",
218-
" <th>3</th>\n",
219-
" <td>Los Angeles</td>\n",
220-
" <td>0</td>\n",
221-
" <td>TAPO</td>\n",
222-
" <td>Auto Generated and Verified</td>\n",
223-
" <td>4</td>\n",
224-
" <td>34.079346</td>\n",
225-
" <td>-118.519724</td>\n",
226-
" <td>8048</td>\n",
227-
" <td>ST</td>\n",
228-
" <td>CA State Parks - Topanga</td>\n",
229-
" <td>None</td>\n",
230-
" <td>101330000.0</td>\n",
231-
" <td>3rd District</td>\n",
232-
" <td>10133</td>\n",
233-
" <td>Pipe Corral Spur Trail</td>\n",
234-
" <td>None</td>\n",
235-
" <td>90272.0</td>\n",
236-
" <td>{'x': -13193555.284564309, 'y': 4039461.172009...</td>\n",
237-
" </tr>\n",
238-
" <tr>\n",
239-
" <th>4</th>\n",
240-
" <td>Unincorporated Los Angeles County</td>\n",
241-
" <td>1982</td>\n",
242-
" <td>TH</td>\n",
243-
" <td>Auto Generated and Verified</td>\n",
244-
" <td>5</td>\n",
245-
" <td>34.079060</td>\n",
246-
" <td>-118.755563</td>\n",
247-
" <td>7773</td>\n",
248-
" <td>ST</td>\n",
249-
" <td>CA State Parks - Malibu Creek</td>\n",
250-
" <td>None</td>\n",
251-
" <td>101120000.0</td>\n",
252-
" <td>3rd District</td>\n",
253-
" <td>10112</td>\n",
254-
" <td>Mesa Peak Motorway</td>\n",
255-
" <td>300 Corral Canyon Rd</td>\n",
256-
" <td>90265.0</td>\n",
257-
" <td>{'x': -13219808.808707688, 'y': 4039422.795144...</td>\n",
258-
" </tr>\n",
259-
" </tbody>\n",
260-
"</table>\n",
261-
"</div>"
262-
],
263-
"text/plain": [
264-
" CITY_JUR ELEV_FT FEATURE \\\n",
265-
"0 Unincorporated Los Angeles County 831 TAPO \n",
266-
"1 Unincorporated Los Angeles County 1555 TAPO \n",
267-
"2 Unincorporated Los Angeles County 758 TH \n",
268-
"3 Los Angeles 0 TAPO \n",
269-
"4 Unincorporated Los Angeles County 1982 TH \n",
270-
"\n",
271-
" FEAT_CMNT FID LAT LON OBJECTID PARKING \\\n",
272-
"0 Auto Generated and Verified 1 34.113057 -118.751527 7769 SA \n",
273-
"1 None 2 34.059687 -118.616545 8047 ST \n",
274-
"2 Auto Generated and Verified 3 34.117364 -118.756839 7770 SA \n",
275-
"3 Auto Generated and Verified 4 34.079346 -118.519724 8048 ST \n",
276-
"4 Auto Generated and Verified 5 34.079060 -118.755563 7773 ST \n",
277-
"\n",
278-
" PARK_NAME PHOTO SEG_ID SUP_DIST TRL_ID \\\n",
279-
"0 National Parks Service None 200820000.0 3rd District 20082 \n",
280-
"1 National Parks Service None 200670000.0 3rd District 20067 \n",
281-
"2 National Parks Service None 200840000.0 3rd District 20084 \n",
282-
"3 CA State Parks - Topanga None 101330000.0 3rd District 10133 \n",
283-
"4 CA State Parks - Malibu Creek None 101120000.0 3rd District 10112 \n",
284-
"\n",
285-
" TRL_NAME X_STREET ZIP_CODE \\\n",
286-
"0 Medea Creek Trail 28825 Lake Vista Dr 91301.0 \n",
287-
"1 Hearst Tank Motorway 3200 Tuna Canyon Rd 90290.0 \n",
288-
"2 Medicine Woman Trail 2900 Cornell Rd 91301.0 \n",
289-
"3 Pipe Corral Spur Trail None 90272.0 \n",
290-
"4 Mesa Peak Motorway 300 Corral Canyon Rd 90265.0 \n",
291-
"\n",
292-
" SHAPE \n",
293-
"0 {'x': -13219359.478715053, 'y': 4043992.964497... \n",
294-
"1 {'x': -13204333.421340073, 'y': 4036819.355827... \n",
295-
"2 {'x': -13219950.875755034, 'y': 4044572.018172... \n",
296-
"3 {'x': -13193555.284564309, 'y': 4039461.172009... \n",
297-
"4 {'x': -13219808.808707688, 'y': 4039422.795144... "
298-
]
299-
},
300-
"execution_count": 17,
301-
"metadata": {},
302-
"output_type": "execute_result"
303-
}
304-
],
89+
"outputs": [],
30590
"source": [
30691
"sdf = SpatialDataFrame.from_layer(feature_layer)\n",
30792
"sdf.head()"

0 commit comments

Comments
 (0)