File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
samples/04_gis_analysts_data_scientists Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 347
347
"metadata": {},
348
348
"outputs": [],
349
349
"source": [
350
- "import zipfile \n",
350
+ "# Unzip training data \n",
351
351
"with zipfile.ZipFile(filepath, 'r') as zip_ref:\n",
352
352
" zip_ref.extractall(Path(filepath).parent)"
353
353
]
869
869
}
870
870
],
871
871
"source": [
872
+ "#get raster data using item id\n",
872
873
"sample_inference_raster = gis.content.get('d6f035f5de504c86855e0ee70e83ad0e')\n",
873
874
"sample_inference_raster"
874
875
]
1032
1033
}
1033
1034
],
1034
1035
"source": [
1036
+ "#get feature layer using item id\n",
1035
1037
"fc = gis.content.get('477d756f79e4400fa91c5b220406d98c')\n",
1036
1038
"fc"
1037
1039
]
1072
1074
}
1073
1075
],
1074
1076
"source": [
1077
+ "#get webmap using item id\n",
1075
1078
"wm_item = gis.content.get('36714d14f80649e99aaf702f3cec6455')\n",
1076
1079
"wm_item"
1077
1080
]
1085
1088
},
1086
1089
"outputs": [],
1087
1090
"source": [
1088
- "mapp = gis.map(wm_item)\n",
1091
+ "#Create map object with webmap layer\n",
1092
+ "mapp = gis.map(wm_item) \n",
1093
+ "\n",
1094
+ "# Add feature layer over map\n",
1089
1095
"mapp.content.add(fc)\n",
1090
- "mapp.zoom_to_layer(fc)\n",
1091
- "mapp"
1096
+ "\n",
1097
+ "# Zoom to the feature layer extent\n",
1098
+ "mapp.zoom_to_layer(fc) \n",
1099
+ "\n",
1100
+ "# Display map\n",
1101
+ "mapp "
1092
1102
]
1093
1103
},
1094
1104
{
You can’t perform that action at this time.
0 commit comments