Skip to content

Commit eb09685

Browse files
authored
Merge pull request #2156 from Esri/jy-rvw-ogc
Update text description for adding an item with Folder.add
2 parents 6e33fcb + 631208f commit eb09685

File tree

1 file changed

+26
-54
lines changed

1 file changed

+26
-54
lines changed

samples/05_content_publishers/publish_ogc_services.ipynb

Lines changed: 26 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,13 @@
218218
"print(webmap_item.title)"
219219
]
220220
},
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+
},
221228
{
222229
"cell_type": "code",
223230
"execution_count": 39,
@@ -436,15 +443,15 @@
436443
"cell_type": "markdown",
437444
"metadata": {},
438445
"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:"
440447
]
441448
},
442449
{
443450
"cell_type": "code",
444-
"execution_count": 42,
451+
"execution_count": null,
445452
"metadata": {},
446453
"outputs": [
447-
{
454+
{
448455
"data": {
449456
"text/plain": [
450457
"True"
@@ -647,22 +654,27 @@
647654
"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."
648655
]
649656
},
657+
{
658+
"cell_type": "markdown",
659+
"metadata": {},
660+
"source": [
661+
"We'll delete this:"
662+
]
663+
},
650664
{
651665
"cell_type": "code",
652-
"execution_count": 8,
666+
"execution_count": null,
653667
"metadata": {},
654-
"outputs": [
655-
{
668+
"outputs": [{
656669
"data": {
657670
"text/plain": [
658671
"True"
659672
]
660673
},
661-
"execution_count": 8,
674+
"execution_count": 43,
662675
"metadata": {},
663676
"output_type": "execute_result"
664-
}
665-
],
677+
}],
666678
"source": [
667679
"item.delete(permanent=True)"
668680
]
@@ -955,7 +967,7 @@
955967
"source": [
956968
"### WFS Service\n",
957969
"\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:"
959971
]
960972
},
961973
{
@@ -1094,8 +1106,8 @@
10941106
"cell_type": "markdown",
10951107
"metadata": {},
10961108
"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."
10991111
]
11001112
},
11011113
{
@@ -1154,26 +1166,6 @@
11541166
"wfs_item.get_data()['layerType']"
11551167
]
11561168
},
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-
},
11771169
{
11781170
"cell_type": "markdown",
11791171
"metadata": {},
@@ -1266,26 +1258,6 @@
12661258
"Image(printed_file_url)"
12671259
]
12681260
},
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-
},
12891261
{
12901262
"cell_type": "markdown",
12911263
"metadata": {},
@@ -1314,9 +1286,9 @@
13141286
"name": "python",
13151287
"nbconvert_exporter": "python",
13161288
"pygments_lexer": "ipython3",
1317-
"version": "3.7.11"
1289+
"version": "3.11.10"
13181290
}
13191291
},
13201292
"nbformat": 4,
1321-
"nbformat_minor": 2
1293+
"nbformat_minor": 4
13221294
}

0 commit comments

Comments
 (0)