POST
|
Hi simo xu I'm not seeing what you're describing using that last couple releases of the Python API. I tried this on a couple different layers, one small one, one larger one (not a huge feature layer, but the features contain a large number of vertices). Do you see this on any other polygon layer with an arbitrary geometry filter? Do you have a public-facing layer as Joshua Bixby suggests? Can you try explicitly adding the where clause to see if that works? "where='1=1'"
... View more
02-28-2020
02:49 PM
|
1
|
4
|
2628
|
POST
|
I'll look through this today, simo xu. Do you see the same results with 1.7.1?
... View more
02-28-2020
09:30 AM
|
0
|
5
|
2242
|
BLOG
|
The `gis.users.create()` method creates users for your Web GIS in ArcGIS Enterprise or ArcGIS Online. The recent update to ArcGIS Online introduced new parameters when creating users not yet implemented for users when created in Enterprise. The API for Python release 1.5.2 `create()` method tried to populate these new parameters when creating users in Enterprise, leading to an error. We logged BUG-000119265 to track the problem. We've caught the problem. We have containment. We've updated the `gis.users.create()` method with the API for Python version 1.5.3, which will be coming soon. The method now properly unpacks the parameters whether the `create()` method is run for Enterprise or ArcGIS Online. We've corrected it and are moving onward. Stay tuned for future releases full of great new functionality!
... View more
02-07-2019
10:30 AM
|
0
|
0
|
852
|
POST
|
Hey Ryan Cooper - fyi...we pushed a fix up for this last night, it should be working in the next release. As you suggested, some internal functions were returning geojson as LineString. WE updated it to MultiLineStrings and it fixed it. Thanks for pointing it out.
... View more
01-25-2019
10:05 AM
|
0
|
1
|
1902
|
POST
|
I've logged this as a bug in the API, Ryan.Cooper@raleighnc.gov_ral . When I hear any info about when it's fixed, I'll let you know.
... View more
01-23-2019
03:39 PM
|
1
|
0
|
1902
|
POST
|
Thanks for the thorough report, Ryan.Cooper@raleighnc.gov_ral . Certainly looks like a bug - give me a day or two to run through and try to reproduce it here so I can get it into the system. I'll keep you posted.
... View more
01-15-2019
09:04 AM
|
1
|
0
|
1902
|
POST
|
Hi Anthony Von Moos Take a look at the Updating Feature Layer Properties Guide. Use a FeatureLayerCollection object to load the feature service, then use the manager property to access the FeatureLayerCollectionManager. Create a new dictionary with appropriate values for capabilities and syncEnabled, and use that with the update_definition method and you should be on your way.
... View more
01-11-2019
03:06 PM
|
2
|
1
|
1529
|
POST
|
Hi Fraser Hand - the UserManager is accessed through the `users` property. The code you've highlighted looks incoorect in that it should be `gis.users.me.username`. I'll confirm and we'll correct that.
... View more
12-19-2018
09:09 AM
|
0
|
1
|
709
|
POST
|
Hi André Schuck You could make a list of the boroughs and loop through it to get the first result for each geocode: from arcgis.geocoding import geocode
boroughs = ['Manhattan', 'Bronx', 'Staten Island', 'Queens', 'Brooklyn']
for borough in boroughs:
print(f"{borough.upper()}\n{'=' * 50}")
b_geocode = geocode(borough)
print(f"{':2}{b_geocode[0]['location']}")
QUEENS
==================================================
{'x': -73.82998999999995, 'y': 40.714000000000055}
MANHATTAN
==================================================
{'x': -74.00600999999995, 'y': 40.714500000000044}
STATEN ISLAND
==================================================
{'x': -74.07526999999999, 'y': 40.64242000000007}
BRONX
==================================================
{'x': -73.92308999999995, 'y': 40.82600000000008}
BROOKLYN
==================================================
{'x': -73.99035999999995, 'y': 40.692450000000065}
... View more
12-19-2018
08:47 AM
|
1
|
1
|
678
|
POST
|
Hi Steven Cotterill - Use the FeatureLayer class which has an edit_features() method to insert features. This Guide is a good place to get started.
... View more
12-19-2018
08:19 AM
|
0
|
0
|
447
|
POST
|
Sweet! Thanks for the follow-up, Matthew Skewes. Bonus on the performance boost - we're always investigating ways to improve on that...good to hear!
... View more
12-06-2018
02:07 PM
|
0
|
0
|
1758
|
POST
|
Yes - The Python Command Prompt uses the proenv.bat to activate the environment listed in the proenv.txt file. With my Pro 2.2.4 installation, I have a proenv.txt file in my user profile directory - C:\Users\username\AppData\Esri\conda\envs that seems to take precedence over the proenv.txt file in the Pro installation directory. It sounds like your system is reading the file in the Pro installation directory. What release of Pro are you using? Do you have a proenv.txt file in your user profile?
... View more
12-06-2018
10:21 AM
|
0
|
1
|
1256
|
POST
|
Hi Matthew Skewes We've fixed an issue with the Spatially Enabled Dataframe `from_layer()` method that will be available in tomorrow morning's release. Can you run the code after updating the api to 1.5.2 tomorrow and let me now if that addresses the issue?
... View more
12-05-2018
03:14 PM
|
2
|
3
|
1758
|
POST
|
I see that whichever environment I set as the active environment in the Python Package Manager in Pro is the environment that the Python Command Prompt opens with as active. Try going into Pro and click the Manage Environments button and then click the radio button next to the arcgis-pro-new environment - you should get a message in the dialog stating you need to Restart Pro for the change to take effect. So Close the Python Package Manager and then close Pro. Then try starting the Python Command Prompt - does it start with arcgis-pro-new as active?
... View more
12-05-2018
01:00 PM
|
0
|
4
|
1256
|
POST
|
Hi Jill In the command prompt with `arcgispro-py3` active...try typing this: activate arcgis-pro-new That should make the upgraded environment active, and from there you can type jupyter notebook
... View more
12-05-2018
10:52 AM
|
2
|
6
|
1256
|
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 |
4 weeks ago
|