|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | | - "execution_count": 15, |
| 5 | + "execution_count": 3, |
6 | 6 | "metadata": {}, |
7 | 7 | "outputs": [ |
8 | 8 | { |
|
15 | 15 | ], |
16 | 16 | "source": [ |
17 | 17 | "from arcgis.gis import GIS\n", |
18 | | - "gis = GIS(\"https://www.arcgis.com\")\n", |
19 | | - "print(\"Connected to {}\".format(gis.properties.portalName))" |
| 18 | + "dev_gis = GIS(\"https://www.arcgis.com\")\n", |
| 19 | + "print(\"Connected to {}\".format(dev_gis.properties.portalName))" |
20 | 20 | ] |
21 | 21 | }, |
22 | 22 | { |
23 | 23 | "cell_type": "code", |
24 | | - "execution_count": 16, |
| 24 | + "execution_count": 4, |
25 | 25 | "metadata": {}, |
26 | 26 | "outputs": [ |
27 | 27 | { |
28 | 28 | "data": { |
29 | 29 | "text/plain": [ |
30 | | - "[<Item title:\"LA West Trails Scene\" type:Web Scene owner:esri_devlabs>,\n", |
31 | | - " <Item title:\"LA Trails and Trailheads\" type:Web Scene owner:esri_devlabs>,\n", |
| 30 | + "[<Item title:\"LA Trails and Trailheads\" type:Web Scene owner:esri_devlabs>,\n", |
32 | 31 | " <Item title:\"3d trails and trailheads LA\" type:Web Scene owner:tim.lohnes_Hayward>]" |
33 | 32 | ] |
34 | 33 | }, |
35 | | - "execution_count": 16, |
| 34 | + "execution_count": 4, |
36 | 35 | "metadata": {}, |
37 | 36 | "output_type": "execute_result" |
38 | 37 | } |
39 | 38 | ], |
40 | 39 | "source": [ |
41 | | - "webscene_search = gis.content.search(query=\"LA Trails *\", item_type=\"Web Scene\")\n", |
| 40 | + "webscene_search = dev_gis.content.search(query=\"LA Trails *\", item_type=\"Web Scene\")\n", |
42 | 41 | "webscene_search" |
43 | 42 | ] |
44 | 43 | }, |
45 | 44 | { |
46 | 45 | "cell_type": "code", |
47 | | - "execution_count": 17, |
| 46 | + "execution_count": 5, |
48 | 47 | "metadata": {}, |
49 | 48 | "outputs": [ |
50 | 49 | { |
|
71 | 70 | "<Item title:\"LA Trails and Trailheads\" type:Web Scene owner:esri_devlabs>" |
72 | 71 | ] |
73 | 72 | }, |
74 | | - "execution_count": 17, |
| 73 | + "execution_count": 5, |
75 | 74 | "metadata": {}, |
76 | 75 | "output_type": "execute_result" |
77 | 76 | } |
78 | 77 | ], |
79 | 78 | "source": [ |
80 | | - "webscene = webscene_search[1]\n", |
| 79 | + "webscene = webscene_search[0]\n", |
81 | 80 | "webscene" |
82 | 81 | ] |
83 | 82 | }, |
84 | 83 | { |
85 | 84 | "cell_type": "code", |
86 | | - "execution_count": 18, |
| 85 | + "execution_count": 6, |
87 | 86 | "metadata": {}, |
88 | 87 | "outputs": [ |
89 | 88 | { |
|
92 | 91 | "<iframe width=960 height=600 src=\"https://www.arcgis.com/home/webscene/viewer.html?webscene=1da0ba4b0f674286875e58ec397260f1\"/>" |
93 | 92 | ], |
94 | 93 | "text/plain": [ |
95 | | - "WebScene([('operationalLayers',\n", |
| 94 | + "WebScene([('presentation', {'slides': []}),\n", |
| 95 | + " ('ground',\n", |
| 96 | + " {'layers': [{'id': 'globalElevation',\n", |
| 97 | + " 'layerType': 'ArcGISTiledElevationServiceLayer',\n", |
| 98 | + " 'listMode': 'hide',\n", |
| 99 | + " 'title': 'Terrain3D',\n", |
| 100 | + " 'url': 'https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer',\n", |
| 101 | + " 'visibility': True}]}),\n", |
| 102 | + " ('authoringAppVersion', '5.3.0.0'),\n", |
| 103 | + " ('initialState',\n", |
| 104 | + " {'environment': {'lighting': {'datetime': 1489609264000,\n", |
| 105 | + " 'directShadows': True,\n", |
| 106 | + " 'displayUTCOffset': -8}},\n", |
| 107 | + " 'viewpoint': {'camera': {'heading': 9.614277087541259,\n", |
| 108 | + " 'position': {'spatialReference': {'latestWkid': 3857,\n", |
| 109 | + " 'wkid': 102100},\n", |
| 110 | + " 'x': -13220640.739260178,\n", |
| 111 | + " 'y': 4022057.223588654,\n", |
| 112 | + " 'z': 8667.953206751496},\n", |
| 113 | + " 'tilt': 65.85320149210376},\n", |
| 114 | + " 'rotation': 350.38572291245873,\n", |
| 115 | + " 'scale': 82167.12948468477,\n", |
| 116 | + " 'targetGeometry': {'spatialReference': {'latestWkid': 3857,\n", |
| 117 | + " 'wkid': 102100},\n", |
| 118 | + " 'x': -13216930.28290715,\n", |
| 119 | + " 'y': 4043939.9526358354,\n", |
| 120 | + " 'z': 447.9400840708986}}}),\n", |
| 121 | + " ('spatialReference', {'latestWkid': 3857, 'wkid': 102100}),\n", |
| 122 | + " ('viewingMode', 'global'),\n", |
| 123 | + " ('baseMap',\n", |
| 124 | + " {'baseMapLayers': [{'id': 'World_Imagery_2017',\n", |
| 125 | + " 'layerType': 'ArcGISTiledMapServiceLayer',\n", |
| 126 | + " 'opacity': 1,\n", |
| 127 | + " 'title': 'World Imagery',\n", |
| 128 | + " 'url': 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',\n", |
| 129 | + " 'visibility': True}],\n", |
| 130 | + " 'elevationLayers': [{'id': 'globalElevation',\n", |
| 131 | + " 'layerType': 'ArcGISTiledElevationServiceLayer',\n", |
| 132 | + " 'listMode': 'hide',\n", |
| 133 | + " 'title': 'Terrain3D',\n", |
| 134 | + " 'url': 'https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer',\n", |
| 135 | + " 'visibility': True}],\n", |
| 136 | + " 'id': '15a87a333a9-basemap-2',\n", |
| 137 | + " 'title': 'Imagery'}),\n", |
| 138 | + " ('operationalLayers',\n", |
96 | 139 | " [{'id': '15a87a362e4-layer-1',\n", |
97 | 140 | " 'itemId': '883cedb8c9fe4524b64d47666ed234a7',\n", |
98 | 141 | " 'layerDefinition': {'drawingInfo': {'renderer': {'symbol': {'symbolLayers': [{'height': 100,\n", |
|
263 | 306 | " 'title': 'Trails - Trails 0',\n", |
264 | 307 | " 'url': 'https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0',\n", |
265 | 308 | " 'visibility': True}]),\n", |
266 | | - " ('baseMap',\n", |
267 | | - " {'baseMapLayers': [{'id': 'World_Imagery_2017',\n", |
268 | | - " 'layerType': 'ArcGISTiledMapServiceLayer',\n", |
269 | | - " 'opacity': 1,\n", |
270 | | - " 'title': 'World Imagery',\n", |
271 | | - " 'url': 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',\n", |
272 | | - " 'visibility': True}],\n", |
273 | | - " 'elevationLayers': [{'id': 'globalElevation',\n", |
274 | | - " 'layerType': 'ArcGISTiledElevationServiceLayer',\n", |
275 | | - " 'listMode': 'hide',\n", |
276 | | - " 'title': 'Terrain3D',\n", |
277 | | - " 'url': 'https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer',\n", |
278 | | - " 'visibility': True}],\n", |
279 | | - " 'id': '15a87a333a9-basemap-2',\n", |
280 | | - " 'title': 'Imagery'}),\n", |
281 | | - " ('spatialReference', {'latestWkid': 3857, 'wkid': 102100}),\n", |
282 | 309 | " ('version', '1.8'),\n", |
283 | 310 | " ('authoringApp', 'WebSceneViewer'),\n", |
284 | | - " ('initialState',\n", |
285 | | - " {'environment': {'lighting': {'datetime': 1489609264000,\n", |
286 | | - " 'directShadows': True,\n", |
287 | | - " 'displayUTCOffset': -8}},\n", |
288 | | - " 'viewpoint': {'camera': {'heading': 9.614277087541259,\n", |
289 | | - " 'position': {'spatialReference': {'latestWkid': 3857,\n", |
290 | | - " 'wkid': 102100},\n", |
291 | | - " 'x': -13220640.739260178,\n", |
292 | | - " 'y': 4022057.223588654,\n", |
293 | | - " 'z': 8667.953206751496},\n", |
294 | | - " 'tilt': 65.85320149210376},\n", |
295 | | - " 'rotation': 350.38572291245873,\n", |
296 | | - " 'scale': 82167.12948468477,\n", |
297 | | - " 'targetGeometry': {'spatialReference': {'latestWkid': 3857,\n", |
298 | | - " 'wkid': 102100},\n", |
299 | | - " 'x': -13216930.28290715,\n", |
300 | | - " 'y': 4043939.9526358354,\n", |
301 | | - " 'z': 447.9400840708986}}}),\n", |
302 | | - " ('ground',\n", |
303 | | - " {'layers': [{'id': 'globalElevation',\n", |
304 | | - " 'layerType': 'ArcGISTiledElevationServiceLayer',\n", |
305 | | - " 'listMode': 'hide',\n", |
306 | | - " 'title': 'Terrain3D',\n", |
307 | | - " 'url': 'https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer',\n", |
308 | | - " 'visibility': True}]}),\n", |
309 | 311 | " ('heightModelInfo',\n", |
310 | | - " {'heightModel': 'gravity_related_height', 'heightUnit': 'meter'}),\n", |
311 | | - " ('authoringAppVersion', '5.3.0.0'),\n", |
312 | | - " ('presentation', {'slides': []}),\n", |
313 | | - " ('viewingMode', 'global')])" |
| 312 | + " {'heightModel': 'gravity_related_height', 'heightUnit': 'meter'})])" |
314 | 313 | ] |
315 | 314 | }, |
316 | | - "execution_count": 18, |
| 315 | + "execution_count": 6, |
317 | 316 | "metadata": {}, |
318 | 317 | "output_type": "execute_result" |
319 | 318 | } |
|
326 | 325 | }, |
327 | 326 | { |
328 | 327 | "cell_type": "code", |
329 | | - "execution_count": 19, |
| 328 | + "execution_count": 7, |
330 | 329 | "metadata": {}, |
331 | 330 | "outputs": [ |
332 | 331 | { |
|
344 | 343 | }, |
345 | 344 | { |
346 | 345 | "cell_type": "code", |
347 | | - "execution_count": 20, |
| 346 | + "execution_count": 8, |
348 | 347 | "metadata": {}, |
349 | 348 | "outputs": [ |
350 | 349 | { |
|
0 commit comments