|
POST
|
Beyond all the good feedback already provided, you never show how your "both" lists are initially created, which leaves the door open to them being different before you even started appending to them.
... View more
04-14-2021
02:45 PM
|
0
|
0
|
1801
|
|
POST
|
To follow-up or add on to @MehdiPira1 , you can make the precision a parameter of the function: # expression
wkt_precision(!SHAPE.wkt!, 3)
# code block
import re
def wkt_precision(wkt, precision)
return re.sub("(\d+\.\d+)", lambda m: f"{float(m.group()):.{precision}f}", wkt)
... View more
04-14-2021
09:33 AM
|
2
|
1
|
4517
|
|
POST
|
What have you tried so far? The code seems to have two logical parts: 1) listing/finding Excel spreadsheets, 2) converting XY coordinates in spreadsheets to point geometries on a map. For the first part, Python's walk() function is a standard approach: import os
wd = # path to starting/working directory
for root, dirs, files in os.walk(wd):
for f in files:
if f.endswith((".xls", ".xlsx")):
print(os.path.join(root, f)) Hopefully the names of the worksheets are standardizes; otherwise, you will have to do an extra step to list them out as well. Once you have the workbook path and worksheet name, you can use Make XY Event Layer (Data Management)—ArcGIS Pro | Documentation
... View more
04-14-2021
08:12 AM
|
1
|
1
|
4626
|
|
POST
|
Since there is a bit of confusion over what you are trying to do within your loop, I suggest you step back from tools and solutions and explain a bit what your requirement is, i.e., just describe what you are trying to achieve overall.
... View more
04-14-2021
07:52 AM
|
1
|
0
|
2473
|
|
POST
|
For a moment @DanPatterson , I thought you were proposing a regex solution right off the bat, and then I realized you were tweaking the OP's regex. 🙂
... View more
04-13-2021
03:25 PM
|
0
|
1
|
6262
|
|
POST
|
Are you generating these random points yourself as part of this workflow, or do the random points already exist as a data set?
... View more
04-11-2021
07:23 AM
|
0
|
0
|
1370
|
|
POST
|
What the OP is asking about is a replacement for ArcGIS Engine, which there isn't one based on Pro code base at the moment.
... View more
04-11-2021
07:20 AM
|
0
|
0
|
1483
|
|
POST
|
Can you elaborate on what isn't working? Are you getting error messages, unexpected results?
... View more
04-08-2021
10:45 AM
|
0
|
0
|
4938
|
|
POST
|
It is both, i.e., machine and user based in the registry. The user settings are inherited from the machine settings. Have you seen Localized and silent install options—ArcGIS Pro | Documentation
... View more
04-07-2021
10:33 AM
|
0
|
0
|
1774
|
|
POST
|
I basically just copied your code and updated the field names. I was running it in the interactive Python window in Pro, is that where you are running the code from? Regarding: in my case even sometimes same code do stop working. If your code sometimes works and sometimes doesn't, than the issue likely isn't your code and something else because valid code is valid code.
... View more
04-06-2021
10:29 AM
|
0
|
1
|
2510
|
|
POST
|
If you can't successfully publish and execute your single-line script, then something is definitely configured wrong with ArcGIS Server. Unfortunately, ERROR 999999 is a catch-all error code when something more specific isn't available. I suggest contacting Esri Support at this point because it is hard for Esri Community members to troubleshoot issues with users' ArcGIS Enterprise deployments.
... View more
04-06-2021
10:25 AM
|
0
|
0
|
4886
|
|
POST
|
UpdateIndexEntry is a custom function written by Esri and implemented within some DLL, I can't say which one because they don't say. When a geodatabase model is created in SQLite, certain triggers are created on tables to maintain integrity and make the geodatabase model function. In this case, there is a trigger that is being executed when you try to update the field, and when updating outside of ArcGIS applications, the UpdateIndexEntry function isn't available.
... View more
04-06-2021
10:05 AM
|
2
|
4
|
6182
|
|
POST
|
I am glad you got it working with an update cursor. I mocked up some similar code as yours and ran it in the interactive Python window with no issues using Pro 2.7, so maybe it is either something related the version you are using or how or where you are calling the code from.
... View more
04-04-2021
10:49 AM
|
1
|
3
|
2538
|
|
POST
|
I am a bit confused because all of your code uses "summed_total" but the error message references "sum_total". Do you have both "summed_total" and "sum_total" variables? If not, why is the error message referencing a different variable name than in your code snippet?
... View more
04-04-2021
09:11 AM
|
0
|
6
|
2547
|
|
POST
|
This part is NOT working It is helpful to elaborate when saying something isn't working because there are lots of ways something can be broken and not work. Are you getting an error message? If so, what, and include the traceback. Are you getting unexpected results? If so, what do you expect and what are you getting?
... View more
04-04-2021
08:24 AM
|
0
|
8
|
2550
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | 07-17-2026 06:54 AM | |
| 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 |
yesterday
|