|
IDEA
|
Regarding the Arcade Polyline paths documentation: It would help if more details could be provided about the paths property. I believe paths get automatically densified, which is an important detail. Could info be added to the docs about the pre-densification? For example, a similar mechanism (the ArcPy WKT property) says the following: "Any true curves in the geometry will be densified into approximate curves in the WKT string." It would also help to know what densification method is used. Example: the angle method; 10 degrees. Thanks.
... View more
02-28-2022
07:07 PM
|
2
|
1
|
1357
|
|
IDEA
|
On closer inspection, it looks like Arcade automatically densifies polyline paths (converts true curves to straight segments). Related: https://community.esri.com/t5/arcgis-pro-ideas/get-the-true-vertex-count-arcade/idi-p/1148911/jump-to/first-unread-message If that's the case, then densifying by angle might not be necessary.
... View more
02-28-2022
06:49 PM
|
0
|
0
|
1101
|
|
IDEA
|
Using an Arcade expression: I can get a count of a polyline's vertices by looping through the paths property: var line_geo = Dictionary(Text(Geometry($feature)));
var paths = line_geo['paths'];
var vertex_count = 0
for (var path_idx in paths){
for (var vert_idx in paths[path_idx])
{
vertex_count++
}
}
return vertex_count That code works, but the vertex count is a densified vertex count, which isn't what I want...I was expecting the vertex count to be 3 vertices, not 35 vertices. Could ESRI give us a way to get the true vertex count? For example, a pointCount() geometry function.
... View more
02-28-2022
06:01 PM
|
4
|
0
|
1740
|
|
IDEA
|
ArcGIS Pro Version 2.9.32739 (including patch #1). Windows 10
... View more
02-28-2022
05:07 PM
|
0
|
0
|
1178
|
|
IDEA
|
Regarding the Attribute Rules —> New Rule window: When I'm creating a new rule, I scroll down to enable the triggers (Insert and Update): When I click the Insert checkbox or Update checkbox, the window quickly scrolls to the top — without checking the checkbox. So I need to go back down and try again. That happens for each checkbox I need to enable. It's aggravating when that happens. Would ESRI be able to improve that window so that it's less jumpy? Edit: This happens in other scenarios too. If I try to disable an attribute rule, the window jumps to the top and the checkbox doesn't get checked.
... View more
02-28-2022
05:03 PM
|
6
|
2
|
1189
|
|
POST
|
Thanks! I happen to be using a file geodatabase directly, not a feature service. Any idea if that blurb applies to FGDBs?
... View more
02-28-2022
04:31 PM
|
0
|
2
|
3389
|
|
POST
|
If for some reason that midpoint expression doesn't work, this might be an option: Buffer the line and get the centroid of the resulting polygon. It's kind of like a "poor man's midpoint". If I recall, that works ok. But I think I remember the point not being the exact midpoint of the line. I forget what the specific issue was. It's probably good enough for most use cases though...
... View more
02-28-2022
02:17 PM
|
0
|
0
|
7385
|
|
IDEA
|
It would be helpful if a polyline Midpoint() function could be added to the Arcade function library. Otherwise, getting the midpoint of multipart lines using math is quite complicated. Thanks.
... View more
02-28-2022
02:07 PM
|
3
|
0
|
915
|
|
POST
|
I'm not sure if this will be helpful or not, but I'll post it anyway: In similar situations where we don't have a Midpoint() function, such as in the St_Geometry spatial type in EGDBs, we've used the following hack: Buffer the line and get the centroid of the resulting polygon. It's kind of like a "poor man's midpoint". If I recall, that works ok. But I think I remember the point not being the exact midpoint of the line. I forget what the specific issue was. It's probably good enough for most use cases though...
... View more
02-28-2022
01:57 PM
|
4
|
0
|
4484
|
|
POST
|
Do developers use an IDE when writing lengthy Arcade expressions? (specifically Calculation Attribute Rules) Example: https://github.com/Esri/arcade-expressions/blob/master/Industry/Gas/Calculation/Assembly-Generate_ID.js What's your workflow? Do you write (and save) the script in an IDE, and then paste it into ArcGIS Pro to see if it runs? Or something else? Thanks.
... View more
02-28-2022
01:35 PM
|
4
|
7
|
6557
|
|
IDEA
|
ArcGIS Pro Attribute Rules: It would be nice if there were a way to copy the error message text to the clipboard: Copying the text would be convenient for googling and documentation purposes.
... View more
02-28-2022
12:53 PM
|
1
|
2
|
1172
|
|
POST
|
Arcade — ArcGIS Pro 2.9 — FGDB: I have a Arcade_Length field in a polyline FGDB FC that I populate using a Calculation Attribute Rule: Length($feature) Question: Why is the Length($feature) value different from the Shape_Length value? I would have expected the two lengths to be the same.
... View more
02-28-2022
12:40 PM
|
0
|
4
|
3439
|
|
POST
|
ArcGIS Pro 2.9 Attribute Rules: Is there a way to copy the error message text to the clipboard? Copying the text would be convenient for googling and documentation purposes.
... View more
02-28-2022
11:25 AM
|
0
|
1
|
853
|
|
POST
|
@JohannesLindner Good points. Regarding versioning: I suspect that versioning with the option to move edits to base could solve some of the issues you mentioned. Regarding error handling: I believe it's possible to put error handling in Oracle PL/SQL triggers...and then that error message gets returned to the ArcGIS application (such as ArcGIS Pro). IF v_upd_row = 0 THEN raise_application_error ( -20001, 'a custom message that pops up in ArcGIS Pro'); END IF; That error message would be displayed in a popup message in the application. It'd be the same kind of message that you'd get for any other database-related error. Source: Prevent deletes in a versioned table at the database level By the way, if you're a data owner, the data owner likely has CREATE TRIGGER privileges. So in a pinch, you could probably create triggers if you needed to. But it sounds like you don't. You could install an SQL client or you could execute SQL statements using the ArcSDESQLExecute ArcPy class. I just thought I'd mention that...for anyone else who might be reading this post.
... View more
02-28-2022
10:00 AM
|
0
|
1
|
8257
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-20-2026 02:12 PM | |
| 1 | 03-19-2026 11:42 AM | |
| 1 | 06-03-2026 04:02 AM | |
| 1 | 03-18-2026 07:08 PM | |
| 2 | 2 weeks ago |