|
POST
|
If you want to see the first tuple (it is common to have more than one tuple): print(next(walk))
... View more
08-20-2021
11:50 AM
|
0
|
0
|
2702
|
|
POST
|
Layer's have a definitionQuery property, just set or update it after creating the layer: Layer—ArcGIS Pro | Documentation >>> import arcpy
>>>
>>> fc = # path to feature class
>>> fl = arcpy.management.MakeFeatureLayer(fc)[0]
>>> fl
<arcpy._mp.Layer object at 0x000001E44F9BB388>
>>> fl.definitionQuery
''
>>> arcpy.management.GetCount(fl)
<Result '5'>
>>> fl.definitionQuery = "OBJECTID < 3"
>>> arcpy.management.GetCount(fl)
<Result '2'>
>>>
... View more
08-18-2021
03:56 PM
|
2
|
0
|
25122
|
|
POST
|
New user as of this past Saturday, and your first comment on EC is to call someone names? I encourage you to read Community Guidelines - Esri Community.
... View more
08-16-2021
07:22 AM
|
0
|
0
|
2515
|
|
POST
|
Ah, I get the situation now. Yes, it would be a very very good idea for the ArcGIS API fro Python team to update their code. Cross your fingers but don't hold your breadth.
... View more
08-13-2021
12:53 PM
|
0
|
0
|
2541
|
|
POST
|
Did you use the same Windows account to add new modules or was it a different account than what runs Server?
... View more
08-13-2021
06:30 AM
|
0
|
1
|
3373
|
|
POST
|
If you are writing new code or modifying existing code, you should take the deprecation warning to heart and stop using the deprecated syntax. Why would you want to write code today that may stop working in a future release when the vendor is telling you it will break eventually if you don't change your code.
... View more
08-12-2021
07:25 PM
|
1
|
4
|
2560
|
|
POST
|
ListFeatureClasses—ArcGIS Pro | Documentation does not accept a list as input. The first parameter is a string representing a wild card, which would work for you if there was a common naming element you could use with a wildcard. To the best of my knowledge, the wildcard does not support regular expressions. If you already have specific names of the feature classes, why use ListFeatureClasses at all? Even if ListFeatureClasses supported passing a list, if you are not using wildcards then the list returned would simply be the list you passed in the first place, i.e., your fclist would be the same as lst. (ListFeatureClasses doesn't actually return feature classes, it returns a list of strings of the names of feature classes)
... View more
08-12-2021
01:16 PM
|
2
|
2
|
2927
|
|
POST
|
Are you running ArcGIS Server with the same Windows account you specified during installation or have you changed it since install?
... View more
08-12-2021
07:56 AM
|
0
|
1
|
3384
|
|
POST
|
I used to be in the PyCharm camp, but lately I have been using VS Code. VS Code isn't quite as robust with debugging as PyCharm, but it is a solid IDE. Plus, I use VS Code for other development, so I prefer to use one IDE if I can instead of multiple ones.
... View more
08-12-2021
07:52 AM
|
1
|
0
|
1677
|
|
POST
|
Are you up for using an update cursor, or do you have to do it within Field Calculator?
... View more
08-12-2021
07:49 AM
|
0
|
0
|
902
|
|
POST
|
@broy06, how is this question different from one you posted yesterday? (https://community.esri.com/t5/python-questions/getting-error-in-arcpy-using-cursor/m-p/1087638#M62015) . In the other post, @BlakeTerhune gave you a suggestion on handling dates, did you ever try it?
... View more
08-11-2021
02:09 PM
|
1
|
1
|
3641
|
|
POST
|
Regarding: So, both the things are same. Outside of arcpy.SearchCursor and arcpy.da.SearchCursor both being search cursors, the two types of cursors are nothing alike in terms of implementation and performance. See the response/answer from Jason Scheirer on arcpy - How is the data access cursor performance so enhanced compared to previous versions? - Geographic Information Systems Stack Exchange.
... View more
08-10-2021
09:11 AM
|
0
|
0
|
2734
|
|
POST
|
Most ArcPy functions and GP tools understand the "memory" and "in_memory" aliases, but not all of them. The addDataFromPath method of the ArcPy Map object does not understand or honor it. I suggest changing your workflow to start with Make Feature Layer (Data Management)—ArcGIS Pro | Documentation and then use addLayer method of Map—ArcGIS Pro | Documentation.
... View more
08-03-2021
08:46 AM
|
1
|
1
|
10260
|
|
POST
|
Looking at https://anaconda.org/Esri/arcgis-server-py3/files, there is no package for Python 3.8. In fact, for ArcGIS 10.8.1, Esri packages and support Python 3.6. I am not sure how you are installing a Python 3.6-depedent package into a Python 3.8 environment without errors. I don't think what you are trying to do is supported, I am fairly sure your Conda environment outside of ArcGIS Enterprise/Server needs to be at the same version of Python that is bundled with ArcGIS Enterprise, which is Python 3.6.x for 10.8.1.
... View more
07-27-2021
06:53 AM
|
1
|
0
|
2157
|
|
BLOG
|
@JoshBeaton, ah, that make sense. Have a great weekend too.
... View more
07-23-2021
03:27 PM
|
0
|
0
|
1521
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | 4 weeks ago | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|