|
POST
|
You have $feature.SignSymbols wrapped in quotes, which makes it a string and not a reference to the feature.
... View more
05-30-2025
09:57 AM
|
1
|
1
|
600
|
|
POST
|
You don't even need a code block for this, a Python 6.13. Conditional expressions in the expression block will do the trick: "Ramp type is blank" if !ramp_type! is None else !ramp_type!
... View more
05-29-2025
11:04 AM
|
1
|
0
|
701
|
|
POST
|
Great question, my organization is very interested in this issue as well.
... View more
05-27-2025
06:27 AM
|
2
|
0
|
428
|
|
POST
|
To be fair , adding SQL support in Calculate Field to file and mobile geodatabases is new in Pro 3.5. There is a big difference between an issue with new functionality versus functionality that is mature and been around for a while. I don't agree with how Esri is handling the update service issue, especially if it is only because of this issue.
... View more
05-26-2025
06:36 AM
|
0
|
0
|
1106
|
|
POST
|
Stripping the test down to the most basic steps and removing IPython, I see equality checking costing quite a bit more than identity checking. C:\>python -m timeit -n 1000000 -v "value = None; value != None"
raw times: 34.2 msec, 34.1 msec, 33.6 msec, 33.7 msec, 33.4 msec
1000000 loops, best of 5: 33.4 nsec per loop
C:\>python -m timeit -n 1000000 -v "value = None; value is not None"
raw times: 21.9 msec, 21.9 msec, 21.9 msec, 21.9 msec, 22.3 msec
1000000 loops, best of 5: 21.9 nsec per loop Granted, both equality checks and identity checks are extremely fast for Python built-in constants, so on a practical level the choice would not make a difference in the overall performance of a Python function or code block. I only mentioned performance to point out there is no performance benefit to go against best practice. I agree that PEP008 should not be followed dogmatically, but I cannot imagine a Python core developer advocating for an equality check over an identity check when it comes to a singleton. This might just be an-agree-to-disagree situation, but the discussion is good to have regardless.
... View more
05-25-2025
09:59 AM
|
2
|
1
|
2998
|
|
POST
|
Although SQL NULL gets mapped to Python None, they are not logically identical because Python by default does not implement three-value logic. Whereas SQL logical operators in most systems support TRUE/FALSE/NULL, Python logical operators only support True/False. From 6. Expressions - Python 3.y.z documentation: In the context of Boolean operations, and also when expressions are used by control flow statements, the following values are interpreted as false: False, None, numeric zero of all types, and empty strings and containers (including strings, tuples, lists, dictionaries, sets and frozensets). The issue isn't that your logic is incorrect, or that the code is incorrect (although it may be), it is that you are trying to interpret results for Python logical expressions as if they were SQL logical expressions.
... View more
05-24-2025
09:46 AM
|
0
|
0
|
3074
|
|
POST
|
From both a practice ( https://peps.python.org/pep-0008/ ) and performance perspective, checking for None should be done using "is" or "is not".
... View more
05-24-2025
09:23 AM
|
1
|
3
|
3081
|
|
POST
|
For someone who has designed, configured, and managed many ArcGIS Enterprise deployments supporting upwards of tens of thousands of GIS services, using multiprocessing in a geoprocessing service comes with enormous risks to the stability of the service and the application as a whole. Depending on how the multiprocessing jobs are setup, and how the GP service is configured, it would be very easy for a single GP service to overwhelm all of the resources on an ArcGIS Enterprise deployment. Maybe this has already been thought through and discussed with the OS admins, but I mention it here as a general warning to others who might come across this thread.
... View more
05-22-2025
07:38 AM
|
1
|
0
|
639
|
|
POST
|
What Message Level do you have the GP service set to? If it is set to Info, the client should get all of the messages and errors back from the job.
... View more
05-22-2025
07:33 AM
|
0
|
0
|
645
|
|
IDEA
|
Although I am not a fan of the Python Requests library, I will second @EricEagle 's comment that support for PKCS#12 in general is very important. It doesn't matter how good software is today in the enterprise if it doesn't have robust support for a range of authentication and access mechanisms.
... View more
05-20-2025
06:07 AM
|
0
|
0
|
665
|
|
POST
|
The CIMVectorLayers are undocumented, at least from the ArcPy perspective. One can consult the ArcGIS Pro SDK documentation to read about that part of the CIM model, so I don't consider CIMVectorLayers completed undocumented. And, I have definitely used completely undocumented portions of ArcPy and other Esri APIs, so I support people sharing such solutions as long as they note the undocumented aspect of the solution. I initially marked this response as a solution; however, I found using CIMVectorLayers quite buggy when testing the approach. The behaviors were inconsistent enough that I unmark it.
... View more
05-18-2025
12:28 PM
|
0
|
0
|
474
|
|
POST
|
Regarding the first question of this post, i.e., are spatial definition queries SQL based, I think comments in this post and Spatial Definition Query — Copy parameters as text to clipboard correctly infer the answer is "no, spatial definition queries are not implemented using SQL." Often times when diving into the weeds with questions like this, it is helpful to research the ArcGIS Pro SDK | Documentation. Looking at the DefinitionQuery Class - ArcGIS Pro, there is a GeometryUri Property (DefinitionQuery) - ArcGIS Pro: Gets the geometry uri to filter rows in the dataset. What one doesn't see when looking at the DefinitionQuery Class documentation is any property or method that would indicate the type of spatial operation to apply to the geometry obtained from the GeometryUri. Those missing properties or methods strongly indicate there is only one way the geometry is handled, and that is intersection at this point. What one also doesn't see in the documentation is what format is used for storing the information at the GeometryUri. Usually the property or methods for interacting with stored geometry will be include part of the format name, like "FromWKT." It turns out the geometry at the GeometryUri is binary, which was unexpected for me. Looking at the binary format, I am fairly certain it is Esri shape formatted binary byte buffer, essentially the same format used for shape files.
... View more
05-16-2025
02:35 PM
|
3
|
0
|
1246
|
|
POST
|
I would argue the final comment is misleading. Although the new layer is based on the data source of the original layer, and the new layer inherits symbology from the existing layer, there is no relationship between the two layers after that point. For example, if the symbology of the original layer is changed, the previously inherited symbology of the new layer does not. Also, if different records are selected from the original layer, it does not change the records that make up the new layer.
... View more
05-16-2025
12:49 PM
|
2
|
2
|
2698
|
|
POST
|
ArcObjects? I understand what is meant, but I do think it is important to point out for readers that ArcObjects has nothing to do with ArcGIS Pro. From ArcObjects Help for .NET developers (ArcObjects .NET 10.8 SDK): ArcObjects is a library of Component Object Model (COM) components that make up the foundation of ArcGIS.... ... ArcGIS Desktop is a suite of integrated applications including ArcMap, ArcGlobe, ArcScene, and ArcCatalog. The original ArcGIS Desktop applications, i.e. ArcMap, ArcCatalog, etc..., were built on top of Microsoft Component Object Model (COM) while ArcGIS Pro is built on top of Microsoft .NET platform. Although there is an ArcObjects .NET SDK, that SDK is a effectively just a wrapper to help .NET developers interact with COM objects. What term should be used instead of "ArcObjects?" Should we say ".NET", or go with something more generic like "native code" or "compiled code?" I don't know if there is a clear winner, but I think it best to avoid using "ArcObjects."
... View more
05-16-2025
09:02 AM
|
1
|
0
|
1265
|
|
IDEA
|
The spatial component of a definition query cannot be easily copied, or maybe copied at all, to the clipboard because it is stored as binary data. Also, depending on what kinds of geometries are used, the size of that binary data could be quite large.
... View more
05-16-2025
08:25 AM
|
0
|
0
|
711
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 3 weeks ago | |
| 1 | 12-02-2025 07:31 AM | |
| 1 | 11-03-2025 08:26 AM | |
| 1 | 10-22-2025 12:57 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|