POST
|
The Python API returns results from ArcPy geometry method called queryPointAndDistance. The ArcPy Polyline documentation outlines the details of the return values.
... View more
10-15-2024
09:53 AM
|
0
|
0
|
83
|
POST
|
Hi @jayldav - Can you please contact Support with a reproducible case, including data, so we can investigate further?
... View more
10-15-2024
09:01 AM
|
0
|
0
|
94
|
POST
|
Hi @Pukawai - Can you please contact Esri Support so we can try to reproduce this onsite and investigate further?
... View more
10-15-2024
08:51 AM
|
0
|
0
|
84
|
POST
|
Hi @padmalcom You can look into the arcpy installation in ArcGIS Enterprise for the Create mobile map package python tool Hope this helps.
... View more
06-18-2024
09:09 AM
|
0
|
0
|
241
|
POST
|
Hello @davedoesgis I'd be frustrated as well incurring these issues. I'm not able to reproduce the scenario you describe when testing with the API at 2.0.1 or the most recent release of 2.2. Using code similar to yours I was able to create views, update them with a definition query, then render them in both the Map Viewer and ArcGIS Pro with custom popups preserved. There appears nothing incorrect about the code to create the view. Are you able to create an environment with more recent releases of the api either 2.1 or 2.2 and test to see if you incur the same situation? Do you see this same behavior when creating a view based on any other Feature Layer item? If you want to investigate more in-depth as to what might be causing what you're observing, you could log an incident with Support who can look into the issue in detail.
... View more
10-05-2023
08:59 AM
|
0
|
0
|
1683
|
POST
|
It sounds you're encountering the Limitations of application credentials which do not allow updating. You can Application logins are limited in what they can do. You can use Pro authentication to accomplish your workflow: gis = GIS("pro")
... View more
07-18-2023
09:42 AM
|
1
|
0
|
621
|
POST
|
Hi Levon_H - I misstyped the code in my first code snippet. I'm sorry for my mistake - the correct snippet is below: from arcgis.gis import GIS
from arcgis.gis.nb._dataaccess import NotebookDataAccess
ago = GIS(profile="your_online_profile")
connected_user = gis.users.me
file_path="local/path/to/data/shpfile.zip"
nb_da_url = connected_user.generate_direct_access_url(store_type="notebook")
nb_daccess = NotebookDataAccess(url=nb_da_url["url"], gis=ago)
nb_daccess.upload(file_path) The generate_direct_access_url() method on a User object returns a Python dictionary with a key named url whose values is the organizational endpoint necessary to initialize a NotebookDataAccess object for uploading files to the ArcGIS Online files area. As you noted, the url is not to the notebook itself, but to a system administration endpoint for the uploading operation. Glad this worked - and sorry for the confusion. We'll work to adjust the documentation.
... View more
06-26-2023
09:44 AM
|
1
|
4
|
1697
|
POST
|
Hi Levon_H The Python API reference documentation currently does not provide an example of how to accomplish your workflow. Sorry for the confusion caused, and we'll update that documentation to provide an example. There is a method on the User class called generate_direct_access_url() that serves to provide the proper url argument to initialize a NotebookDataAccess object for loading files into the /arcgis/home directory. Here is a snippet to accomplish this. The following will create a subdirectory in home called notebookworkspace: from arcgis.gis import GIS
from arcgis.gis.nb._dataaccess import NotebookDataAccess
ago = GIS(profile="your_online_profile")
connected_user = gis.users.me
file_path="local/path/to/data/shpfile.zip"
nb_da_url = connected_user.generate_direct_access_url(store_type="notebook")
nb_daccess = NotebookDataAccess(url=nb_da_url, gis=ago)
nb_daccess.upload(file_path) Hope this helps.
... View more
06-14-2023
11:49 AM
|
1
|
0
|
1718
|
POST
|
Hi - Try entering the servergen parameter like this instead of as a dictionary in a list: servergen = sg
... View more
01-31-2023
10:52 AM
|
0
|
1
|
1062
|
BLOG
|
Thank you so much to the MVPs who spend so much time and effort sharing their knowledge through the API for Python questions!
... View more
01-30-2023
09:33 AM
|
4
|
0
|
5392
|
POST
|
Hi @RogerAsbury - See the document here. Hopefully that helps.
... View more
09-20-2022
09:39 AM
|
0
|
0
|
723
|
POST
|
Hi @GloverG - I suggest you log an issue with Support about implementing something like this. The issue at this stage is outside anything the API for Python can address.
... View more
09-20-2022
09:07 AM
|
0
|
0
|
380
|
POST
|
Hi simo xu What version of Server are you publishing this service to? Can you outline exactly how the service is "published to the Federated ArcGIS server directly?" I want to follow the exact steps to test on a service published in the exact same manner.
... View more
03-11-2020
10:06 AM
|
0
|
0
|
2749
|
POST
|
Thanks for all this information, simo xu. To get an official bug report logged I suggest contacting support who can document the specific workflow. I'll look into investigating on a service published directly to a federated server rather than a hosted one and see what I can reproduce.
... View more
03-11-2020
09:02 AM
|
1
|
1
|
2749
|
Title | Kudos | Posted |
---|---|---|
1 | 06-14-2023 11:49 AM | |
1 | 06-26-2023 09:44 AM | |
1 | 07-18-2023 09:42 AM | |
4 | 01-30-2023 09:33 AM | |
2 | 01-11-2019 03:06 PM |
Online Status |
Offline
|
Date Last Visited |
10-15-2024
05:55 PM
|