File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
samples/05_content_publishers Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 329
329
],
330
330
"source" : [
331
331
" # add the csv as an item\n " ,
332
- " item_prop = {'title':'USA Capitals spreadsheet_' + str(now)}\n " ,
333
- " csv_item = gis.content.add(item_properties=item_prop, data=my_csv)\n " ,
332
+ " item_prop = {'title':'USA Capitals spreadsheet_' + str(now), \" type\" : \" CSV\" }\n " ,
333
+ " root_folder = gis.content.folders.get()\n " ,
334
+ " csv_item = root_folder.add(item_properties=item_prop, file=my_csv).result()\n " ,
334
335
" csv_item"
335
336
]
336
337
},
474
475
"metadata" : {},
475
476
"outputs" : [],
476
477
"source" : [
477
- " map1.add_layer (cities_item)"
478
+ " map1.content.add (cities_item)"
478
479
]
479
480
},
480
481
{
905
906
{
906
907
"cell_type" : " markdown" ,
907
908
"metadata" : {
908
- "collapsed" : true
909
+ "collapsed" : true ,
910
+ "jupyter" : {
911
+ "outputs_hidden" : true
912
+ }
909
913
},
910
914
"source" : [
911
915
" ### Access the overwritten feature layer\n " ,
978
982
"metadata" : {},
979
983
"outputs" : [],
980
984
"source" : [
981
- " map2.add_layer (cities_item)"
985
+ " map2.content.add (cities_item)"
982
986
]
983
987
},
984
988
{
1018
1022
"name" : " python" ,
1019
1023
"nbconvert_exporter" : " python" ,
1020
1024
"pygments_lexer" : " ipython3" ,
1021
- "version" : " 3.9.18 "
1025
+ "version" : " 3.11.0 "
1022
1026
},
1023
1027
"toc" : {
1024
1028
"base_numbering" : 1 ,
1035
1039
}
1036
1040
},
1037
1041
"nbformat" : 4 ,
1038
- "nbformat_minor" : 1
1042
+ "nbformat_minor" : 4
1039
1043
}
You can’t perform that action at this time.
0 commit comments