|
POST
|
You can construct an in-memory FeatureCollection object and that will work. The format of FeatureCollection is in the Feature Input page.
... View more
03-31-2017
03:21 PM
|
0
|
2
|
2546
|
|
POST
|
FeatureSets are not supported as input to the feature analysis tools. The following are supported: URL to feature layers Items of type Feature Layer Items of type Feature Collections FeatureCollection as a Python dictionary FeatureLayer objects FeatureLayerCollection objects - the first layer is used. The 'Feature Input' reference was to Feature input—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers but we should have it a better place in the Python API doc - thanks for alerting us to this.
... View more
03-31-2017
11:54 AM
|
0
|
4
|
2546
|
|
POST
|
The plan to update file geodatabase data is to update the spatial dataframe and write it back to the fgdb. Will that work for your needs? Thanks, Rohit
... View more
03-22-2017
08:30 AM
|
0
|
2
|
1949
|
|
POST
|
The ArcGIS Python API doesn't yet let you work with File Geodatabase directly. It lets you add and publish fgdb to your Web GIS as hosted feature layers and has APIs for working with feature layers and visualizing them. We're working on adding support for reading File Geodatabases as pandas (spatial) dataframes but that's not there in the API yet. Thanks, Rohit
... View more
03-21-2017
02:36 PM
|
1
|
2
|
1949
|
|
POST
|
Hi Dirk, Are you using SAML with ADFS as your identity provider? SAML is an interactive workflow that's not yet supported with the ArcGIS API for Python. We are adding support for SAML and OAuth2 in the upcoming release though and this feature is in QA currently. If you're using [LDAP or Active Directory configured with Portal tier authentication](Use your portal with LDAP or Active Directory and portal-tier authentication—Portal for ArcGIS (10.5) | ArcGIS Enterpr… ), you can use the Python API as this is supported with v1.0 and above using the GIS(url, username, password) API. [Integrated Windows Authentication](Use Integrated Windows Authentication with your portal—Portal for ArcGIS (10.5) | ArcGIS Enterprise) is also supported using GIS(url) API - the username and password arent passed when using IWA and the current user's credentials are picked up by the script/API. Thanks, Rohit
... View more
03-20-2017
04:37 PM
|
1
|
2
|
2480
|
|
POST
|
Thanks for posting the screenshots. I believe I know what's going on here. Usernames are unique across all organizations in ArcGIS Online. There was already a user in AGOL with username atestuser, which was created on 02 Jul 2014. So the user you think that's being created in your org is actually another user from another org. It's a bug that gis.users.create() is not erroring out and returning a user with that username that already existed. I've fixed it internally, so the next update would fix it. A workaround would be to use a username with a prefix of _<yourorgname> to prevent such username clashes. Thanks, Rohit
... View more
03-17-2017
12:12 PM
|
1
|
1
|
946
|
|
POST
|
@Rebecca I looked into the issue and it seems to me that your AGOL org is not configured to use a different identity provider such as SAML or IWA that this sample assumes. The gis.users.create() call is failing for probably this reason, and it would be returning you a None newuser that you can confirm by print(newuser) after this call. You could create a new user by replacing the code in there with the following: newuser = target.users.create(new_userid, "pwdN55otUsed", olduser.firstName, olduser.lastName, \
new_userid, description=olduser.description, role=olduser.role) then print(newuser) to confirm it is not None and proceed forward. The reassign_to call is failing because the user isnt getting created for some reason.
... View more
03-16-2017
03:02 PM
|
0
|
3
|
2249
|
|
POST
|
Are you on Windows or Linux? What version of Python are you using? Are you using a self signed certificate? The following code would turn off SSL certification entirely - can you check if it resolves this problem? However, please note that this isn't a safe thing to do as it turns off SSL certification verficiation for the python process and isn't recommended for production. import ssl
ssl._create_default_https_context = ssl._create_unverified_context
gis = ...
... View more
03-16-2017
02:22 PM
|
2
|
2
|
7746
|
|
POST
|
The default level is level 2. It's mentioned in the method signature in the api doc at arcgis.gis module — arcgis 1.0.1 documentation create (username, password, firstname, lastname, email, description=None, role='org_user', provider='arcgis', idp_username=None, level=2)
... View more
03-16-2017
10:16 AM
|
1
|
0
|
2249
|
|
POST
|
@Rebecca I'll look into the other issue you reported with Item.reasssign_to() and get back.
... View more
03-16-2017
10:00 AM
|
3
|
6
|
2249
|
|
POST
|
Please note that this bug was fixed in version 1.0.1 released in February. See release notes: https://developers.arcgis.com/python/guide/release-notes/ Fixed bug in creating new users on ArcGIS Online or Portal for ArcGIS 10.5 or newer The level parameter was added to gis.users.create() call - http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create group.add_users(list of users) was failing as a cascase effect of the user not being added. It should work with the fix. Can you please update and re-try. The issue should be resolved.
... View more
03-16-2017
09:49 AM
|
2
|
1
|
946
|
|
POST
|
Please note that this bug was fixed in version 1.0.1 released in February. See release notes: https://developers.arcgis.com/python/guide/release-notes/ Fixed bug in creating new users on ArcGIS Online or Portal for ArcGIS 10.5 or newer The level parameter was added to gis.users.create() call - http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create
... View more
03-16-2017
09:48 AM
|
0
|
1
|
2249
|
|
POST
|
Hi Zhanping, Are you looking to configure popup template for web layers or configure them in the MapView widget? The former should be possible while the latter isn't. Thanks, Rohit
... View more
02-09-2017
07:16 AM
|
0
|
0
|
539
|
|
POST
|
A Feature is not a layer and you wont be able to use map.add_layer() to draw the feature in the map widget. You can convert the feature to a featureset and use map.draw() to draw it: map.draw(FeatureSet([CTpoly])) import_data() results in a FeatureCollection which is a layer that can be added to a map widget.
... View more
02-06-2017
11:32 AM
|
1
|
1
|
1529
|
|
POST
|
You could use the Python API in a Python Web framework like Django to create a web application.
... View more
02-06-2017
11:21 AM
|
1
|
2
|
1423
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-25-2017 07:26 AM | |
| 1 | 10-11-2017 06:06 AM | |
| 1 | 07-25-2017 07:29 AM | |
| 2 | 08-29-2017 11:26 AM | |
| 2 | 08-29-2017 09:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-16-2024
03:28 AM
|