|
IDEA
|
@KoryKramer, with standard SQL the following expression does not select NULL: FIRE_NAME <> 'ZWINGE' I just fired up Pro 3.0.2 and tested Select By Attributes on a feature class in a file geodatabase, and results were as expected, which is not to select NULL.
... View more
11-01-2022
01:25 PM
|
0
|
0
|
8133
|
|
IDEA
|
@Jon-PaulMcCool, @RandyCasey is absolutely correct. The use of NULL introduces 3-value logic into SQL comparison operators. Since NULL cannot be equal or unequal to any other value, including NULL itself, one cannot select NULL records based on equality comparisons.
... View more
11-01-2022
12:11 PM
|
0
|
0
|
8159
|
|
POST
|
Have you tested it outside of an enterprise geodatabase? Is the code your running and the changes to the data working on the same version of the data? If I have users modifying data in version X and they don't reconcile and post, I won't see them in version Y.
... View more
11-01-2022
07:10 AM
|
1
|
0
|
2658
|
|
POST
|
"They," the licenses, are not cancelled. What is cancelled is the license file. Once a license file is cancelled, it won't work to authorize any additional licenses, but that is because the license file itself has been cancelled and not because the licenses have been deauthorized or obsoleted. Personally, I liked it better when they were called Provisioning files because that is exactly what they are, and changing the name to Licensing files leads to confusion, especially for people newer to Esri licensing in My Esri. If you are interested in actual license information, I suggest looking at the Authorizations or Authorizations Activity reports because those contain information on licenses.
... View more
10-26-2022
11:17 AM
|
2
|
0
|
3197
|
|
POST
|
Can you elaborate on what you mean by "reinstating these license?" Cancelling a license file does not deauthorize already-deployed licenses, so the licenses are still active and valid if you look under Authorizations.
... View more
10-26-2022
10:26 AM
|
0
|
1
|
3203
|
|
POST
|
Posting pictures of code isn't much better than giving someone a picture of money, i.e., you aren't going to get much of anything for it. See Posting code with Syntax Highlighting on GeoNet and Code Formatting... the basics++ . Also, elaborate a bit more on what specifically isn't working. If you are getting errors, share the specific error and tracebacks.
... View more
10-20-2022
06:44 AM
|
0
|
1
|
1795
|
|
POST
|
To both improve your own troubleshooting and get better feedback from Community members, focus on creating and sharing a Minimal, Reproducible Example (MRE): How to create a Minimal, Reproducible Example - Help Center - Stack Overflow. Having an MRE is also most helpful when opening cases with Esri Support.
... View more
10-20-2022
06:35 AM
|
2
|
1
|
4061
|
|
POST
|
Here is another approach besides using elif blocks: update(!pci2016!, !pci2017!, !pci2018!, !pci2019!, !pci2020!)
# and code block
def update(pci2016, pci2017, pci2018, pci2019, pci2020):
for newValue in (pci2020, pci2019, pci2018, pci2017, pci2016):
if newValue != 0: break
return newValue
... View more
10-12-2022
03:25 PM
|
1
|
1
|
2184
|
|
POST
|
If you are using ArcGIS Pro, I suggest you use literal strings or f-strings: expression = f"{str(Num)[4:7]} not between {dateStart} and {dateEnd}"
... View more
10-07-2022
12:33 PM
|
1
|
1
|
2968
|
|
POST
|
When I try just building your expression I get an error before I even get to the arcpy tool: (The specific values I used don't matter for test building expression, just the data types matter, and I had to change !Num! to just Num for testing) >>> Num = 123456
>>> dateStart = 1
>>> dateEnd = 2
>>> expression = "str(Num)[4:7] not between '" + dateStart + "' and '" + dateEnd + "'"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can only concatenate str (not "int") to str
>>> Are you sure you are pasting your exact code?
... View more
10-07-2022
12:28 PM
|
0
|
1
|
2968
|
|
POST
|
Python slicing is start to stop, not start through stop, so [5:8] returns only 3 characters and not 4 characters.
... View more
10-07-2022
12:20 PM
|
1
|
0
|
2969
|
|
POST
|
What version of Pro are you using? I just tested in Pro 3.0.2, and when I enter '06/24/1896' it gets saved as '6/24/1896'.
... View more
10-06-2022
07:33 AM
|
0
|
1
|
2903
|
|
POST
|
Dan's code will work on all of the examples you provided.
... View more
10-04-2022
12:57 PM
|
1
|
0
|
1465
|
|
POST
|
With the information provided, it is difficult to comment on whether changing your workflow to pandas would be more efficient. Are the feature classes in an enterprise geodatabase, file geodatabase, or something else? If file or mobile geodatabase, are they stored locally or on network share? Could you copy the feature classes into memory before processing? Are the fields you are querying indexed appropriately? There are likely more questions I could come up with if I spent a bit more time thinking about it. Exporting a dataset into memory via pandas could definitely be faster, but not necessarily because there are lots of ways of processing data in pandas and some are faster than others. If the dataset is very large and it won't fit in memory, then having the Python process start paging will cause performance hit regardless of specific pandas workflow. Given there are so many factors involved, the best approach is to do some testing oneself. Is it worth taking the time to test? Probably if you are here asking the question(s).
... View more
10-03-2022
07:56 AM
|
1
|
1
|
2497
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 2 | 4 weeks ago | |
| 1 | 4 weeks ago | |
| 2 | 06-05-2026 10:30 AM | |
| 1 | 05-29-2026 08:22 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|