|
218 | 218 | "print(webmap_item.title)"
|
219 | 219 | ]
|
220 | 220 | },
|
| 221 | + { |
| 222 | + "cell_type": "markdown", |
| 223 | + "metadata": {}, |
| 224 | + "source": [ |
| 225 | + "The ``get_data`` method retrieves the data associated with the Web Map item, and we can see it contains `operationalLayers` and `baseMap`." |
| 226 | + ] |
| 227 | + }, |
221 | 228 | {
|
222 | 229 | "cell_type": "code",
|
223 | 230 | "execution_count": 39,
|
|
436 | 443 | "cell_type": "markdown",
|
437 | 444 | "metadata": {},
|
438 | 445 | "source": [
|
439 |
| - "The ``get_data`` method retrieves the data associated with the WebMap item, and we can see it contains `operationalLayers` and `baseMap`." |
| 446 | + "We'll delete this web map since it's for illustration:" |
440 | 447 | ]
|
441 | 448 | },
|
442 | 449 | {
|
443 | 450 | "cell_type": "code",
|
444 |
| - "execution_count": 42, |
| 451 | + "execution_count": null, |
445 | 452 | "metadata": {},
|
446 |
| - "outputs": [ |
447 |
| - { |
448 |
| - "data": { |
449 |
| - "text/plain": [ |
450 |
| - "True" |
451 |
| - ] |
452 |
| - }, |
453 |
| - "execution_count": 42, |
454 |
| - "metadata": {}, |
455 |
| - "output_type": "execute_result" |
456 |
| - } |
457 |
| - ], |
| 453 | + "outputs": [], |
458 | 454 | "source": [
|
459 | 455 | "webmap_item.delete(permanent=True)"
|
460 | 456 | ]
|
|
647 | 643 | "Compared to the response of `get_data` retrieved from a WMTS Layer, we can see that that of a WMTS service serves as a subset to the former."
|
648 | 644 | ]
|
649 | 645 | },
|
| 646 | + { |
| 647 | + "cell_type": "markdown", |
| 648 | + "metadata": {}, |
| 649 | + "source": [ |
| 650 | + "We'll delete this:" |
| 651 | + ] |
| 652 | + }, |
650 | 653 | {
|
651 | 654 | "cell_type": "code",
|
652 |
| - "execution_count": 8, |
| 655 | + "execution_count": null, |
653 | 656 | "metadata": {},
|
654 |
| - "outputs": [ |
655 |
| - { |
656 |
| - "data": { |
657 |
| - "text/plain": [ |
658 |
| - "True" |
659 |
| - ] |
660 |
| - }, |
661 |
| - "execution_count": 8, |
662 |
| - "metadata": {}, |
663 |
| - "output_type": "execute_result" |
664 |
| - } |
665 |
| - ], |
| 657 | + "outputs": [], |
666 | 658 | "source": [
|
667 |
| - "item.delete(permanent=True)" |
| 659 | + "item.delete(permanente=True)" |
668 | 660 | ]
|
669 | 661 | },
|
670 | 662 | {
|
|
955 | 947 | "source": [
|
956 | 948 | "### WFS Service\n",
|
957 | 949 | "\n",
|
958 |
| - "For example, the `West Virginia Geological and Economic Survey (WVGES)`, which investigates and reports on West Virginia's geology and disseminates information, provides `WFS` endpoints at [WFS GetCapabilities](https://atlas2.wvgs.wvnet.edu/server/services/Hosted/Reference_Quadrangles/MapServer/WFSServer?request=GetCapabilities&service=WFS). With the WFS data support, we can see a simple example below that query the `Reference Boundaries for the State of West Virginia: 3.75' Quarter Quadrangles, 7.5' Quadrangles, 15' Quadrangles, 100k Quadrangles, 250k Quadrangles` layer to create WFS service, and add to a WebMap item:" |
| 950 | + "For example, the `West Virginia Geological and Economic Survey (WVGES)`, which investigates and reports on West Virginia's geology and disseminates information, provides `WFS` endpoints at [WFS GetCapabilities](https://atlas2.wvgs.wvnet.edu/server/services/Hosted/Reference_Quadrangles/MapServer/WFSServer?request=GetCapabilities&service=WFS). With the WFS data support, we can see a simple example below that queries the `Reference Boundaries for the State of West Virginia: 3.75' Quarter Quadrangles, 7.5' Quadrangles, 15' Quadrangles, 100k Quadrangles, 250k Quadrangles` layer to create a WFS service, and then add it to a Web Map item:" |
959 | 951 | ]
|
960 | 952 | },
|
961 | 953 | {
|
|
1094 | 1086 | "cell_type": "markdown",
|
1095 | 1087 | "metadata": {},
|
1096 | 1088 | "source": [
|
1097 |
| - "Then, use the `add(item_properties, data=None, thumbnail=None, metadata=None, owner=None, folder=None, item_id=None, **kwargs)` method defined in `arcgis.gis` module to add content to the GIS by creating an `WFS` service, with parameters set as:\n", |
1098 |
| - " - item_properties: Required dictionary. See [table](https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.ContentManager.add) for the keys and values." |
| 1089 | + "Then, use the [`add()`](/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis._impl._content_manager.Folder.add) method on a [_Folder_](/python/latest/api-reference/arcgis.gis.toc.html#folder) object to add content to the GIS by creating an `WFS` service. The _item_properties_ argument can be an [ItemProperties](/python/api-reference/arcgis.gis.toc.html#arcgis.gis._impl._dataclasses.ItemProperties) object or a dictionary you create. \n", |
| 1090 | + "See the [Items and item types](/rest/users-groups-and-items/items-and-item-types/) rest documentation for detailed description on various items, and the [addItem](/rest/users-groups-and-items/add-item/#request-parameters) documentation for detailed descriptions of the properties." |
1099 | 1091 | ]
|
1100 | 1092 | },
|
1101 | 1093 | {
|
|
1154 | 1146 | "wfs_item.get_data()['layerType']"
|
1155 | 1147 | ]
|
1156 | 1148 | },
|
1157 |
| - { |
1158 |
| - "cell_type": "code", |
1159 |
| - "execution_count": 16, |
1160 |
| - "metadata": {}, |
1161 |
| - "outputs": [ |
1162 |
| - { |
1163 |
| - "data": { |
1164 |
| - "text/plain": [ |
1165 |
| - "True" |
1166 |
| - ] |
1167 |
| - }, |
1168 |
| - "execution_count": 16, |
1169 |
| - "metadata": {}, |
1170 |
| - "output_type": "execute_result" |
1171 |
| - } |
1172 |
| - ], |
1173 |
| - "source": [ |
1174 |
| - "wfs_item.delete(permanent=True)" |
1175 |
| - ] |
1176 |
| - }, |
1177 | 1149 | {
|
1178 | 1150 | "cell_type": "markdown",
|
1179 | 1151 | "metadata": {},
|
|
1266 | 1238 | "Image(printed_file_url)"
|
1267 | 1239 | ]
|
1268 | 1240 | },
|
1269 |
| - { |
1270 |
| - "cell_type": "code", |
1271 |
| - "execution_count": 42, |
1272 |
| - "metadata": {}, |
1273 |
| - "outputs": [ |
1274 |
| - { |
1275 |
| - "data": { |
1276 |
| - "text/plain": [ |
1277 |
| - "True" |
1278 |
| - ] |
1279 |
| - }, |
1280 |
| - "execution_count": 42, |
1281 |
| - "metadata": {}, |
1282 |
| - "output_type": "execute_result" |
1283 |
| - } |
1284 |
| - ], |
1285 |
| - "source": [ |
1286 |
| - "wfs_item.delete(permanent=True)" |
1287 |
| - ] |
1288 |
| - }, |
1289 | 1241 | {
|
1290 | 1242 | "cell_type": "markdown",
|
1291 | 1243 | "metadata": {},
|
|
1314 | 1266 | "name": "python",
|
1315 | 1267 | "nbconvert_exporter": "python",
|
1316 | 1268 | "pygments_lexer": "ipython3",
|
1317 |
| - "version": "3.7.11" |
| 1269 | + "version": "3.11.10" |
1318 | 1270 | }
|
1319 | 1271 | },
|
1320 | 1272 | "nbformat": 4,
|
1321 |
| - "nbformat_minor": 2 |
| 1273 | + "nbformat_minor": 4 |
1322 | 1274 | }
|
0 commit comments