|
POST
|
I would double check the code that constructs the geometry for each row to append. The append function for SDF is actually from standard Pandas DataFrame, which is pretty robust and unlikely to have a bug for this basic function. Anyway, hard to say without seeing the code.
... View more
01-23-2019
03:37 PM
|
0
|
3
|
5454
|
|
POST
|
I suspect the projection was done as expected. Could you try this: gis = GIS("url", "user", password)
content=gis.content.get("ID")
layers=content.layers
#points=pd.DataFrame.spatial.from_layer(layers[0])
#points['SHAPE']=points['SHAPE'].geom.project_as(29900)
feature_layer = layers[0]
fset = feature_layer.query(out_sr=29900)
sdf1 = fset.sdf
# then you can export the sdf1 as other formats if you like The difference is the projection will be done on the server rather than in the browser, at least this is what I am guessing
... View more
01-17-2019
06:05 PM
|
5
|
1
|
3436
|
|
POST
|
See if this resource helps: updating_features_in_a_feature_layer | ArcGIS for Developers
... View more
01-17-2019
05:04 PM
|
1
|
0
|
843
|
|
POST
|
Hi Mike, I don't have a shared accounts (named user) in two AGOL organisations, I don't feel it's possible since the username has to be unique in AGOL. As a person, I have membership in both orgs, but from the authorization point of view, I have two named users (registered using different email accounts to keep them completely separate) in AGOL, they should not be linked, and they should not authorize each other automatically... I know it does not explain what your are experiencing, hope ESRI technician can have a look at your problem, and get the mystery solved. Good luck
... View more
01-13-2019
08:20 PM
|
1
|
1
|
3212
|
|
POST
|
I just did a quick test, there was no issue. I happen to have access to two AGOL organisations, let's say gis1 and gis2. In gis1 I set up an account simoxu_user, and in gis2 I created a group called "Just a test" and invited simoxu_user to this group. now I am set up to do the test. In gis1: # the title of the shared group from gis2 org
test_g_n = 'Just a test'
simoxu_user = gis1.users.get('simoxu_user')
list1 = [g.title for g in simoxu_user.groups]
# list all the groups that in gis1 org
org_groups = gis1.groups.search()
list2 = [g.title for g in org_groups]
# you can print list1 and list2 to visually check and compare, or use the following code if there lots of groups in the AGOL org.
if test_g_n in list2:
print(f"\'{test_g_n}\' is an internal group in the AGOL Org")
else:
print(f"\'{test_g_n}\' is an external group in the AGOL org")
if test_g_n in list1:
print('It can be listed for the user that the group is being shared with')
else:
print("It cannot be listed for the user") The result should be: 'Just a test' is an external group in the AGOL org It can be listed for the user that the group is being shared with It works for me at least. So I would suggest to contact an ESRI support to have a closer from the backstage if possible.
... View more
01-13-2019
05:20 PM
|
1
|
3
|
3212
|
|
POST
|
I don't fully understand the situation without viewing your code. but I would guess that you shared a group (or several groups) with a member of another organisation, and you want to list all the groups that is relevant to that member. From the security point of view, it seems a security problem if the API allows you to do so. The reason is simple, because this user is a member of another organisation, s/he may be a member of some groups which that organisation does not intend to share with other organisation or the public. This user just happened to be given access to some of your shared groups, but he is not a member of your organization in AGOL, this is very important to stress here. For your organization members, to get the groups that you have access, it's very straight-forward: user = gis.users.get("username") theList = [g.title for g in user.groups] You can't view the groups related to a member of another AGOL organisation without being a member of that organisation yourself and being authorized to do so. I hope it make sense
... View more
01-10-2019
10:10 PM
|
0
|
5
|
3212
|
|
POST
|
The easiest way to do it will be using Join Features analysis in ArcGIS Online given all your data are already in AGOL. If it's a one-off task, I would use the GUI to to it; if it's a repetitive process for many data sets, Python API is the way to go as Jayanta pointed out.
... View more
01-10-2019
05:06 PM
|
0
|
0
|
6641
|
|
POST
|
Hi Harsha, ArcGIS Python API was built to work with Portal / AGOL, and also some capacity of spatial analysis. to publish a geoprocessing service, use ArcPy instead. here is an example: Example: Publish a geoprocessing service from a model result—ArcGIS Server Administration (Linux) | ArcGIS Enterprise
... View more
01-10-2019
03:38 PM
|
1
|
1
|
1327
|
|
POST
|
Hi Simon, Could you try to put a pair of single quotation mark around JAM in your layerQueries? This works for me in the rest endpoint, I guess it should work in the python code as well. { "0":{"where": "type= 'JAM'" }} To be safe, I would specify the queryOption which was added in 10.2 according to the REST API document: { "0":{"queryOption":"useFilter", "where": "type= 'JAM'" }}
... View more
01-08-2019
10:45 PM
|
0
|
1
|
1981
|
|
POST
|
It seems there are some invalid characters in your request path. but it's hard to do any further analysis without seeing your code and knowing the environment your code is running in.
... View more
12-19-2018
10:00 PM
|
0
|
0
|
884
|
|
POST
|
This post might help, I responded to the similar question there. https://community.esri.com/message/782527-re-map-is-not-showing-in-arcgis-api-for-python-demo-test?commentID=782527#comm…
... View more
12-09-2018
02:59 PM
|
1
|
1
|
715
|
|
POST
|
This specific issue has been address in the new release of 1.5.2. arcgis-python-api/release-notes.ipynb at master · Esri/arcgis-python-api · GitHub
... View more
12-06-2018
03:27 PM
|
0
|
0
|
4584
|
|
POST
|
Hi Cameron, I was led here by your post in GitHub, and I also commented there. item.usage() errors · Issue #321 · Esri/arcgis-python-api · GitHub Hope it makes sense. Simo
... View more
12-03-2018
12:17 AM
|
1
|
0
|
4584
|
|
POST
|
It seems the maximum days in one request is restricted to 60 days. I searched 1 year in AGOL, and the startTime and endTime in the requests sent by the browser to AGOL are: startTime: 1512283405000 endTime: 1517467405000 startTime: 1517467405000 endTime: 1522655005000 startTime: 1522655005000 endTime: 1527839005000 startTime: 1527839005000 endTime: 1533023005000 startTime: 1533023005000 endTime: 1538207005000 startTime: 1538207005000 endTime: 1543387405000 startTime: 1543387405000 endTime: 1543819405000 Convert these timestamp (in milliseconds) to datetime, you'll find the regularity: For example: time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1512283405)) '2017-12-03 17:13:25' This is a bug for the API if the document clearly states it can take 6m and 1y as the date range. David Vitale
... View more
12-02-2018
10:53 PM
|
0
|
0
|
4584
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-28-2019 05:13 PM | |
| 1 | 02-25-2019 04:54 PM | |
| 1 | 03-05-2019 02:08 PM | |
| 1 | 03-12-2019 10:20 PM | |
| 1 | 11-27-2024 04:36 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-17-2025
07:39 AM
|