|
POST
|
Well, the subject sums it up. I changed my e-mail in My Esri and AGOL for the same user profile I log into Esri Community with, but EC keeps sending e-mails to my old address. I have poked around EC, but I can't find where to change the e-mail.
... View more
02-02-2023
12:17 PM
|
1
|
3
|
2429
|
|
POST
|
If you are using Windows Server 2012 R2, then you won't be able to use the USGS National Map. This really isn't an Esri issue at all, it is a cipher suite mismatch between the Windows OS and the USGS web tier. I mostly point the finger at USGS because it would be rather simple and straightforward to securely allow continued access to USGS National Map from Windows Server 2012 R2 and Windows 8.1.
... View more
01-31-2023
08:11 AM
|
1
|
0
|
9193
|
|
POST
|
Yep, I logged that defect. My organization had approached USGS about adding a couple additional strong ciphers to their web tier, but we eventually got ghosted by them.
... View more
01-31-2023
07:49 AM
|
1
|
2
|
7476
|
|
POST
|
After taking a longer look at your data and code, it seems you are trying to reinvent the product - itertools — Functions creating iterators for efficient looping wheel. I can confidently state that any native Python code someone writes will not outperform the compiled functions in the itertools module. from itertools import product
Fields, Grps = ['FieldA','FieldB','FieldC'], ['GroupA','GroupB','GroupC']
Main = [['DOG','CAT','HORSE'], ['HOUSE','BARN'], ['FIELDS', 'YARD'],['MOUSE','SNAKE','LIZARD','OTHER'],['AQUARIUM','GLASS TANK','SMALL CAGE'],
['HOUSE','APARTMENT','PET STORE'],['COW','PIG', 'SHEEP'], ['FIELDS','PASTURES'], ['BARN','FARM HOUSE','OTHER']]
Main = {g:list(product(*Main[i*3:i*3+3])) for i,g in enumerate(Grps)}
print(Main)
... View more
01-31-2023
07:47 AM
|
0
|
1
|
2624
|
|
POST
|
Code golf might be a fun exercise, but it usually leads to challenging code to read and even poorer performing code at times.
... View more
01-31-2023
07:18 AM
|
0
|
3
|
2627
|
|
POST
|
Dan mentioned several potential issues, please elaborate on what specifically "it" is that worked.
... View more
01-31-2023
07:14 AM
|
0
|
1
|
2737
|
|
POST
|
What operating system are you running? The USGS National Map has a very narrow TLS cipher suite that doesn't work with older MS operating systems.
... View more
01-31-2023
07:10 AM
|
0
|
4
|
7515
|
|
POST
|
As pointed out by @BarryNorthey the specific syntax error you are getting is due to a lack of a colon after your function definition line. Since you are new to Python, I will also point out that best practice according to https://peps.python.org/pep-0008/ : Comparisons to singletons like None should always be done with is or is not, never the equality operators. So, in this case your syntax should not be if ( LC01 == None ) : # which by the way you forgot another colon. but should be if ( LC01 is None ) : As @DanPatterson has already pointed out, for a simple conditional check like this you can rely on Python's conditional expression, aka ternary operator, to handle it rather than defining a function in the code block. "04" if !LC01! is None else !LC01!
... View more
01-29-2023
08:14 AM
|
1
|
0
|
2362
|
|
POST
|
I don't understand these steps: fcs = arcpy.ListFeatureClasses('*Wells*')
if fcs is not None:
for fc in arcpy.ListFeatureClasses("*_WaterWells"): Anything that Line 3 lists, Line 1 will also list, but the opposite isn't true. Since the posted code does nothing to a feature class if it is listed in Line 1 but not Line 3, why bother checking?
... View more
01-26-2023
12:05 PM
|
0
|
0
|
1785
|
|
POST
|
It may be related to your indentations. Try having your blank lines within the common table expression indented the same amount as the other lines.
... View more
01-24-2023
07:02 AM
|
0
|
1
|
1956
|
|
POST
|
It isn't just a comma or semicolon issue, the SearchCursor takes a list of strings, not a string of delimited fields.
... View more
01-23-2023
03:44 PM
|
1
|
0
|
1225
|
|
BLOG
|
@TeresaDolan, thanks for the update. I will definitely try them out soon because it was a feature I relied on extensively.
... View more
01-23-2023
09:33 AM
|
2
|
0
|
3822
|
|
POST
|
Is the polygon supposed to represent the areal coverage of the crown of a tree when they are mature? Tree crowns can be reasonably approximated by ellipses of different dimensions. Even if one wanted better representation of a tree crown than an ellipse, no tree crown in reality is going to have an "exact area."
... View more
01-19-2023
12:02 PM
|
0
|
1
|
6338
|
|
POST
|
You can't find an easy way to do it because there is no easy way to do it. It is regularity that allows for consistent shape and size polygons to be created. Once regularity goes out the window, there are countless shapes that can meet the same size. In your case since talking about parcels, which generally are more regular (even the irregular ones) than not, I am guessing you are not looking for some amorphous blob that is 2400 sq m exactly. For anyone to offer suggestions, you will have to elaborate more on the constraints around "irregular."
... View more
01-19-2023
06:31 AM
|
1
|
3
|
6371
|
|
POST
|
This is another good use case for my Idea for Esri to Add Python Regular Expression (re) Helpers to Calculate Field Dialog . Even without the "Helper" functions, you can still use re - Regular expression operations - Python 3 documentation by just importing the module in the code block: # Codeblock
import re
# Expression
re.match(r"^\s*\d*", !FULLNAME!).group()
... View more
01-16-2023
02:16 PM
|
0
|
0
|
2953
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Friday | |
| 2 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 2 | 06-05-2026 10:30 AM | |
| 1 | 05-29-2026 08:22 AM |
| Online Status |
Online
|
| Date Last Visited |
13 hours ago
|