POST
|
That should be ok. I'm no means on expert on that topic but you could start from this page. You need to determine the URL format used by your existing apps when connecting to ArcGIS Server. This will help you understand whether your apps need to be modified after the upgrade. Using ArcGIS Web Adaptor, you can engineer your site to match the URLs you used at earlier versions, thereby saving yourself the time and effort of updating all your app code.
... View more
01-17-2020
05:30 AM
|
1
|
0
|
4188
|
POST
|
Does it help if you save the webmap with using update directly. I just answered to similar case where layer level properties are added and saved to the webmap (with different property on the layer though) in https://community.esri.com/thread/246654-setting-the-refresh-interval-for-a-hosted-feature-layer#comment-902703 webmap.update()
... View more
01-17-2020
12:00 AM
|
4
|
1
|
4188
|
POST
|
You can do it like this. from arcgis.gis import GIS
import getpass
password = getpass.getpass("Enter password: ")
gis = GIS('org', 'username', password)
print("Connected to: {}\nConnected as: {}".format(
gis.properties.urlKey + "." + gis.properties.customBaseUrl,
gis.users.me.username))
webmap_item = gis.content.get('ce80541f342546319d99308cbeb9f675')
webmap_item
from arcgis.mapping import WebMap
webmap = WebMap(webmap_item)
webmap
json_key = 'refreshInterval'
for layer in webmap.layers:
print(layer.title)
if json_key in layer:
print('refreshInterval already exits with value {}'.format(layer[json_key]))
else:
print('Adding refreshInterval to the layer with value 2')
layer[json_key] = 2
webmap.update()
... View more
01-16-2020
11:54 PM
|
1
|
1
|
1633
|
POST
|
I got the feature visible that was in your example. Maybe there is something wrong on some of the features? Can you get them visible if you publish everything manually? Not to the map directly but add as content file and then publish it as a service? Does that service has all the features? I assume that you cannot share the data publicly for me to test.
... View more
01-16-2020
11:06 PM
|
0
|
3
|
4555
|
POST
|
I have seen similar issue with other datatypes at some point and if i remember correctly it was due using wrong item type or similar on the publish method. Some documentation that solved my issue: arcgis.gis module — arcgis 1.7.0 documentation Publish Item—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers If you can share the code, I could have a better look on it.
... View more
01-14-2020
02:09 AM
|
1
|
9
|
4555
|
POST
|
Hi guys, I tried to use interactive process as well with the python and I get the same error also in this workflow. from arcgis.gis import GIS
gis = GIS("https://{{portalurlhere}}/home", username='{{usernamehere}}', client_id='{{clientidhere}}')
print("Successfully logged in as: " + gis.properties.user.username) Error: UnboundLocalError: local variable 'oauth_info' referenced before assignment Do you think that there is something wrong with how the authentication is set up? Is there limitations on the environments where the python is run such as console / jupyter?
... View more
10-10-2019
05:53 AM
|
0
|
1
|
2086
|
POST
|
Just a bit more background information here. - Using ArcGIS Online with Enterprise login set up by the customer, we don't have access to the settings but can ask more details if required. - We don't know if the current setup supports non-interactive. How do we find out? We are assuming that even if the provider isn't compatible, it shouldn't be this kind of error. If the configured identity provider is compatible, you may also be able to provide your username and password, along with the client_id for a non interactive login experience using OAuth 2.0
... View more
09-24-2019
11:33 PM
|
0
|
0
|
2086
|
POST
|
This seems to be same issue as in https://community.esri.com/message/869205-how-to-get-arcgis-api-for-python-to-connect-to-an-arcgis-online-account-with-federated-credentials-and-no-password-prompt
... View more
09-24-2019
05:43 AM
|
0
|
0
|
2086
|
POST
|
Hi guys, We are trying to connect to a portal using Python API and we have got some issues with it. The use case here is that we want to authenticate non-interactive fashion to the portal using OAuth on times fashion. Basically we have followed this guide. When we run the code, we see following error: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\arcgis\_impl\connection.py
in oauth_authenticate(self, client_id, expiration)
462 'username': self._username,
463 'password': self._password,
--> 464 'oauth_state': oauth_info['oauth_state']
465 }
466 content = self.post('oauth2/signin', parameters, ssl=True, try_json=False, add_token=False)
UnboundLocalError: local variable 'oauth_info' referenced before assignment
Code used: from arcgis.gis import GIS
gis = GIS("https://{{portalurlhere}}/home",
username='{{usernamehere}}',
password='{{passwordhere}}',
client_id='{{clientidhere}}')
print("Successfully logged in as: " + gis.properties.user.username) Atma Mani Rohit Singh Any idea what we are doing wrong here? Do you think this is an issue in the API?
... View more
09-24-2019
03:38 AM
|
0
|
6
|
2349
|
POST
|
That's a good option as well assuming that you can handle the amount of data. It would keep allow you to work inside of the offline map ecosystem without any haxxing. But that makes a difference how to map will look (you will have all the features so you can see features outside of your offline map and all of that stuff) and ofc the time generating will be longer. Joe Hershman What is the case where you might not know the area before taking the map offline from the workflow point of view?
... View more
01-17-2019
11:29 AM
|
0
|
0
|
618
|
POST
|
Could you describe what you mean with the sync is not working? Do you get errors from the sync call on the Runtime side? Do you get errors returned as part of the sync objects? Or is it that the sync goes through but you cannot see the edits after that?
... View more
01-17-2019
10:08 AM
|
0
|
1
|
1166
|
POST
|
Hi Joe Hershman I think that if you are using OfflineMapTask to take the map offline, there isn't easy way to do that. When the area is taken offline, the registered geodatabases gets the extent that it contains data for and you cannot add data outside of that extent. This behaviour is derived from the feature services /createReplica endpoint. I assume that this hasn't changed. Luke Smallwood / Mary Harvey can confirm if there have been changes on how the local geodatabases restrict the area. I cannot remember if you can hax this if you change the extent defined in the local geodatabase or if that is actually part of the replica registration information. If it isn't saved to the server, then you potentially can modify the local geodatabase to think that it's from the larger area than it actually is. That wouldn't most likely be a supported workflow but could work. If that doesn't work, then I think you would have some other options that you most likely already have been looking into: - Generate offline map from the whole map / larger area without any data and add those edits to that. You would have 2 maps where the other would be the real map that is used and other used as a "safeguard" for these kinds of situations. - Generate geodatabase from the larger area that doesn't contain the data but is used in these cases - Store extra data as feature collections/other local data types and have a procedure to apply those to the target service outside of the provided sync framework If your app crashes on cases where you try to collect data outside of the replicas extent, you most likely have a bug on your side. If you add a point outside of the geodatabase area, make sure that you handle the thrown error correctly on your side. If you are already doing that, then there might be some issues on the feature table implementation in these cases that would require a closer look from Esri. Ps, I don't work for Esri at the moment or should I say that I'm not currently working at all. Maybe it's time to start looking for a job again
... View more
01-17-2019
09:53 AM
|
0
|
2
|
618
|
POST
|
You could look it this way: 1) Use webmap to define your map with layers, symbols, etc... Use Portal and take the whole map offline using the new functionality. This has many good things such as better maintainability and faster to implement. This is of course assuming that the functionality that you need is supported by this workflow. 2) Use Feature Services hosted in ArcGIS Server as Joe mentioned and generate offline data from them This is more work for in the client but you can control offline functionality in more detail. You can find more information from Create an offline layer—ArcGIS Runtime SDK for .NET | ArcGIS for Developer I would recommend prototyping with the option 1 and seeing if that works for you, if it doesn't then start looking to option 2.
... View more
11-21-2018
10:06 AM
|
1
|
1
|
1998
|
POST
|
As Nagma Yasmin mentioned, the most likely culprit is the service that you try to take offline and the change on it's offline (export tiles capability) settings. This setting is controlled through the service settings and I would guess that there has been updates / changes on the service and for some reason, they have changed this. If you control the service, just change this setting through the Portal/Online/Server settings. If you are using external service, contact the provider and request that being changed.
... View more
11-14-2018
05:12 AM
|
1
|
0
|
612
|
POST
|
At the moment ArcGIS Pro doesn't have support for Check-Out / Check-In workflow that would allow you to create editable geodatabases/mobile map packages so the only option that you have is to use Feature Service based approach with Portal (or Online in general but since you don't have access to the web that's not an option). To answer your questions directly: 1) Can we use MMPK at all or they just read only. MMPKs created using ArcGIS Pro or Python tools are read-only. 2) Can we create .geodatabase files using pro and edit them in RunTime - how do we sync them back. You cannot create editable geodatabases that you can use with ArcGIS Runtime using Pro but you could use GeoPackages instead. There isn't way to synchronise the changes to the central geodatabase though so the answer lies in the question 3. 3) Do we have to use the portal? Shortly, yes. Currently, you need to use Feature Services that with offline/sync capabilities enabled. Also you could have a look to the option taking the whole map offline instead of only taking the data offline. For this, you should make the set of FeatureServices from your data, then create a webmap to the portal that uses them. Then you can take the map directly offline. This workflow reduces quite a bit code on the client and allows better maintainability. There are quite a bit other things why using this approach is good so have a look into it. You can read more about it from Create an offline map—ArcGIS Runtime SDK for .NET | ArcGIS for Developers
... View more
11-14-2018
03:27 AM
|
0
|
0
|
1998
|
Title | Kudos | Posted |
---|---|---|
1 | 01-17-2020 05:30 AM | |
1 | 01-16-2020 11:54 PM | |
1 | 01-14-2020 02:09 AM | |
1 | 11-21-2018 10:06 AM | |
4 | 01-17-2020 12:00 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|