POST
|
Thank you for your reply. Both of these examples involve creating an .MXD and thus a service definition. I was kind of hoping to avoid this. I already have the shapefile up there from the script that runs addItem(). I don't know if it is possible to do without creating an SD or if that is the route that I need to take.
... View more
12-08-2016
09:40 AM
|
0
|
0
|
3021
|
POST
|
We are trying to automate data updates on our AGOL site. I have a script that zips up 4 shapefiles and uploads this to a specific folder in our Content. There is also a Feature Layer sitting in the folder created from the Shapefile data. Manually, you can open the Feature Layer and hit the 'Overwrite' button to update it. How do you program Python to achieve this same thing? I also played around with having python publish a new Feature Layer after it uploads the shapefile, but haven't found any examples where the shapefile sitting in the directly has multiple shapefiles in it. Hopefully, this all makes sense. Any help would be appreciated.
... View more
12-07-2016
04:17 PM
|
0
|
9
|
6749
|
POST
|
Thank you! I will see if I can find a machine with 10.2.2 on it!
... View more
12-06-2016
09:48 AM
|
0
|
0
|
414
|
POST
|
I have been trying to publish both a Geoprocessing Service (a buffer tool) and a printing service to use in a Web AppBuilder Developer app hosted on our local server. After going through the process, although they show up in the Services Directory, neither has a task. I am creating both through the Results Window of ArcGIS 10.4 and our ArcGIS Server that they are sitting on is 10.2.2. This is the first time trying to host a web app on a local machine, so this is all new to me. Is the difference in versions the problem or am I missing something else. Any help would be appreciated!
... View more
12-02-2016
09:52 AM
|
0
|
1
|
875
|
POST
|
Thank you so much! I was thinking that I may have it in the wrong category.
... View more
12-02-2016
09:48 AM
|
0
|
0
|
414
|
POST
|
I have been trying to publish both a Geoprocessing Service (a buffer tool) and a printing service to use in a Web AppBuilder Developer app hosted on our local server. After going through the process, although they show up in the Services Directory, neither has a task. I am creating both through the Results Window of ArcGIS 10.4 and our ArcGIS Server that they are sitting on is 10.2.2. This is the first time trying to host a web app on a local machine, so this is all new to me. Is the difference in versions the problem or am I missing something else. Any help would be appreciated!
... View more
11-30-2016
12:30 PM
|
0
|
5
|
1493
|
POST
|
Did you ever figure this out? I am having the same exact problem.
... View more
11-08-2016
12:24 PM
|
0
|
1
|
432
|
POST
|
Hi Kelly, I have a python script that takes an MXD and creates a service definition from it. Then using arcpy.UploadServiceDefinition_server, it is supposed to overwrite the service definition on our ArcGIS Online site. The script runs on our server that has ArcGIS 10.4. I have looked and haven't had any success in finding a way to have my python script delete the current service definition and hosted feature service in our content. I had read that this was a more efficient way of updating rather than relying on the overwrite. I currently do not have anything in my script to do this --- so no errors. Is there a way to delete what is currently sitting in our AGOL before the script runs this.....??? arcpy.UploadServiceDefinition_server(UploadSD, My_Hosted_Services, "", "", "FROM_SERVICE_DEFINITION", "", "STARTED", "OVERRIDE_DEFINITION", "SHARE_ONLINE", "PUBLIC", "SHARE_ORGANIZATION","") -Cindy
... View more
09-26-2016
12:11 PM
|
0
|
1
|
648
|
POST
|
I am writing a python script that will update a service definition in ArcGIS Online - to synchronize changes made by Desktop users. One question/answer that I found suggested 'deleting a service before publishing a replacement service, rather than overwriting'. I can't seem to find the right syntax to delete the old service definition. I'm assuming it uses ArcRest, but I can't seem to figure out how to code this. Any help would be appreciated. I am new to using ArcRest.
... View more
09-16-2016
02:47 PM
|
0
|
3
|
2149
|
POST
|
Just to follow up on this, I did get the script working. It was a matter of adding this piece before the user.exportItem..... admin = arcrest.manageorg.Administration(securityHandler=shAGOL) content = admin.content portal = admin.portals.portalSelf commUsers = portal.users(start=1, num=100) commUsers = commUsers['users'] for commUser in commUsers: user = admin.content.users.user(commUser.username) for userItem in user.items: sItem = userItem.id sName = userItem.name sType = userItem.type sUser = commUser.username if sUser == "YakimaStormwater": if sType == "Feature Service":
... View more
09-09-2016
08:50 AM
|
1
|
0
|
478
|
POST
|
We got it figured out. It was later on in the coding. It was a matter of changing the line user = admin.content.users.user(username=item.owner) to user = admin.content.users.user(username=username). It does lead me to another question, though. The purpose of our python code is to back up the feature layers that others are creating and updating on AGOL. Right now, the python code looks for a specific ItemID....is there a way to have the code go into a Members content and list all of their feature layers and itemIDs? This would be ideal since we may not be notified every time someone creates a new layer. Does that make sense? I haven't found a script that does it that way.
... View more
09-02-2016
10:33 AM
|
0
|
2
|
478
|
POST
|
I am writing a python script to run nightly that exports Feature Layers from AGOL to our local drives. We have a couple of members that are updating their own feature layers, and I am trying to access these. I can get the script to work using....shAGOL = arcrest.AGOLTokenSecurityHandler(username, password).....if the username and password are the AGOL members. However, if I try to use the AGOL Administrator username and password, it can't access the members feature layers. Is there a way to get the script to work using just the Administrator credentials instead of having to ask each member for their passwords? Any help would be appreciated! I am very new to ArcREST, so I am sure that I am missing something.
... View more
09-01-2016
10:52 AM
|
0
|
4
|
1312
|
POST
|
I hadn't even noticed that! Thank you so much! That is exactly what I was looking for.
... View more
08-31-2016
01:50 PM
|
0
|
0
|
373
|
POST
|
Is there a way that when the ArcGIS Online Administrator is logged in that they can see the content of all it's members? Or do you have to log in as each member to see their 'My Content'?
... View more
08-31-2016
11:10 AM
|
0
|
3
|
1215
|
POST
|
Thank you, Joshua!! That does exactly what I need it to do!
... View more
08-21-2015
03:36 PM
|
0
|
0
|
522
|
Title | Kudos | Posted |
---|---|---|
1 | 05-23-2017 03:14 PM | |
2 | 01-08-2020 09:01 AM | |
1 | 09-09-2016 08:50 AM | |
1 | 10-10-2019 10:45 AM | |
2 | 11-02-2018 11:23 AM |
Online Status |
Offline
|
Date Last Visited |
05-13-2024
10:08 AM
|