|
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 | 453 | "outputs": [
|
447 |
| - { |
| 454 | + { |
448 | 455 | "data": {
|
449 | 456 | "text/plain": [
|
450 | 457 | "True"
|
|
647 | 654 | "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 | 655 | ]
|
649 | 656 | },
|
| 657 | + { |
| 658 | + "cell_type": "markdown", |
| 659 | + "metadata": {}, |
| 660 | + "source": [ |
| 661 | + "We'll delete this:" |
| 662 | + ] |
| 663 | + }, |
650 | 664 | {
|
651 | 665 | "cell_type": "code",
|
652 |
| - "execution_count": 8, |
| 666 | + "execution_count": null, |
653 | 667 | "metadata": {},
|
654 |
| - "outputs": [ |
655 |
| - { |
| 668 | + "outputs": [{ |
656 | 669 | "data": {
|
657 | 670 | "text/plain": [
|
658 | 671 | "True"
|
659 | 672 | ]
|
660 | 673 | },
|
661 |
| - "execution_count": 8, |
| 674 | + "execution_count": 43, |
662 | 675 | "metadata": {},
|
663 | 676 | "output_type": "execute_result"
|
664 |
| - } |
665 |
| - ], |
| 677 | + }], |
666 | 678 | "source": [
|
667 | 679 | "item.delete(permanent=True)"
|
668 | 680 | ]
|
|
955 | 967 | "source": [
|
956 | 968 | "### WFS Service\n",
|
957 | 969 | "\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:" |
| 970 | + "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 | 971 | ]
|
960 | 972 | },
|
961 | 973 | {
|
|
1094 | 1106 | "cell_type": "markdown",
|
1095 | 1107 | "metadata": {},
|
1096 | 1108 | "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." |
| 1109 | + "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", |
| 1110 | + "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 | 1111 | ]
|
1100 | 1112 | },
|
1101 | 1113 | {
|
|
1154 | 1166 | "wfs_item.get_data()['layerType']"
|
1155 | 1167 | ]
|
1156 | 1168 | },
|
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 | 1169 | {
|
1178 | 1170 | "cell_type": "markdown",
|
1179 | 1171 | "metadata": {},
|
|
1266 | 1258 | "Image(printed_file_url)"
|
1267 | 1259 | ]
|
1268 | 1260 | },
|
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 | 1261 | {
|
1290 | 1262 | "cell_type": "markdown",
|
1291 | 1263 | "metadata": {},
|
|
1314 | 1286 | "name": "python",
|
1315 | 1287 | "nbconvert_exporter": "python",
|
1316 | 1288 | "pygments_lexer": "ipython3",
|
1317 |
| - "version": "3.7.11" |
| 1289 | + "version": "3.11.10" |
1318 | 1290 | }
|
1319 | 1291 | },
|
1320 | 1292 | "nbformat": 4,
|
1321 |
| - "nbformat_minor": 2 |
| 1293 | + "nbformat_minor": 4 |
1322 | 1294 | }
|
0 commit comments