|
POST
|
In Portal, can you control how a slow event layer or a slow query layer gets cached? For example, only re-query the source every 5 minutes? And use cached data in between re-queries. And re-query ahead of time in the background, to avoid waiting for the slow layer to load (the data would be pre-loaded). It seems like that kind of thing would solve a lot of issues with slow layers. It'd basically precompute the data. Does that functionality exist in Portal? (I’m not a Portal manager, I’m just curious.) More info here: Event layers/query layers: Control caching settings for better performance
... View more
06-27-2022
02:17 AM
|
0
|
0
|
742
|
|
POST
|
Use this WHERE clause in a definition query or the Select By Attributes window: sde.st_numgeometries(shape) > 1 There is a known bug in versioned Oracle SDE.ST_GEOMETRY FCs. The above WHERE clause will throw an error: ORA-00904 Invalid Identifier "SHAPE". Defect #: BUG-000150273 "ST_GEOMETRY functions used in Select By Attributes tool on Shape field generate error "ORA-00904 Invalid Identifier "SHAPE"" Esri Canada case #: 03080875 Workaround: Use a subquery. objectid in (select objectid from my_owner.my_fc where sde.st_numgeometries(shape) > 1) That bug only happens for SDE.ST_GEOMETRY. Whereas if the FC was SDO_GEOMETRY, then spatial functions would work fine — even if the FC was versioned. sdo_util.getnumelem(shape) > 1
... View more
06-25-2022
08:41 PM
|
1
|
0
|
2232
|
|
POST
|
How can I query for multi-part features in an SDE.ST_GEOMETRY FC using SQL? (in the Select By Attributes window or in a definition query)
... View more
06-25-2022
08:41 PM
|
0
|
2
|
2233
|
|
IDEA
|
@DanLee The multiparts were created manually in an existing FC. Here's an explanation from a related post: Multipart features were created manually...by accident. The person who digitized the roads merged two lines together, but didn't realize that a multipart feature was created. We want to prevent our users from manually creating multipart features.
... View more
06-25-2022
05:55 PM
|
0
|
0
|
5721
|
|
POST
|
Thanks Dan. Regarding your question, "Why are the roads multipart to begin with?" Answer: Some of the roads are multi-part due to situations like this: The road's "Exclusive Right Turn Lane" was deemed to be too short to be it's own asset. So it was merged into it's parent asset as a multipart feature: (Here's an example photo, although not the same one from the screenshot above: https://i.stack.imgur.com/aiL7W.png) That decision was made years ago by people other than me and is beyond my control. (It's not possible to change things at this point...there are too many existing dependencies. Splitting the multipart into two single parts would compromise any records that are related. Including an already-integrated work order management system.) The other scenario is: Multipart features were created by accident. The person who digitized the roads merged two lines together, but didn't realize that a multipart feature was created. In that case, it might be possible to go back and convert the multiparts to single parts. But it would take a lot of work to review/fix any linear referencing events that are tied to the geometry/M-values of those roads. I've submitted an idea about multiparts here: Prevent multi-part features. Does that answer your first question? I'll answer your second question about "Why you need to know the closest Ward polygons to each midpoint of the longest part?" in a separate comment. Cheers.
... View more
06-25-2022
05:31 PM
|
0
|
0
|
3395
|
|
IDEA
|
Scenario: Multipart features get created by accident. The person who created the features merged two lines together, but didn't realize that a multipart feature was created. Or, in some cases, multi-part features get created on purpose. We don't want that either. There ought to be an optional setting in a feature class's properties for preventing multi-parts from being created. Currently, I don't think that functionality exists. I imagine it would be possible to disallow multiparts using an attribute rule. But at this point, we've got so many attribute rules in the works that we're terrified that we're creating a monster. We'd much rather there be OOTB functionality for this stuff. (Similarly, we want to prevent true curves via a FC property too.) Thanks.
... View more
06-25-2022
05:06 PM
|
5
|
10
|
5753
|
|
POST
|
The reason I ask: I'm trying to figure out why sorting is so slow in this workaround: Question: Sorting a field in the attribute table: Specify how nulls are handled (nulls first or last) Workaround: 1. Create a query layer with a NULL_FLAG field: select objectid, last_edited_date, case when last_edited_date is not null then 1 else 0 end as null_flag --Source: https://modern-sql.com/concept/null#order-by from events 2. In the Attribute Table, join from the table to the query layer via the OBJECTID. 3. Do an advanced sort using the fields from the query layer: - NULL_FLAG descending. - LAST_EDITED_DATE descending. Now, the latest dates are at the top and the nulls are at the bottom. Which is what I want. Unfortunately, it's far too slow to use. It takes roughly a minute to do the sorting, whereas sorting was instantaneous without the workaround (and sorting was instantaneous when I tested the query in SQL Developer too). So, something about sorting on the query layer in the attribute table is going awry.
... View more
06-25-2022
12:23 AM
|
0
|
0
|
1960
|
|
POST
|
Oracle 18c 10.7.1 EGDB; ArcGIS Pro 2.6.8: In the attribute table, if I join between one table to another, how is the join performed? (DB vs. application) Does a single query get sent to the DB that returns ALL columns in a single resulset? Select the rows from the first table, do an SQL JOIN to the second table, for each row - retrieve the first row from the second table that's matched, return the whole thing as a single resultset? Or maybe a subquery is used (for each row in the first table) to get a row from the second table? Or does the application do the joining? Select the rows from the first table. Select the rows from the second table. Use the application to match them up? Or something else? Likewise, if I sort the columns in the attribute table, does the DB do the sorting, or does the application do the sorting?
... View more
06-25-2022
12:12 AM
|
0
|
2
|
1975
|
|
POST
|
Test #4: I did a fourth test, this time on my work computer. I emailed the FGDB from my home computer to my work computer. And tested the script on the FGDB on my work computer. The script ran without errors. (Although it still doesn't catch the invalid value. But as mentioned, that's expected, since the script wasn't designed for subtypes.) So that test confirms that the subtype isn't causing the error on my work computer. It also confirms that the older version of ArcGIS Pro (2.6.8) isn't causing the problem either. So I think the issue must be something to do with my enterprise GDB environment (or the table). I googled the error message: "AttributeError: 'NoneType' object has no attribute 'keys'" I'll review those results and see if I can figure out what's happening.
... View more
06-24-2022
09:27 PM
|
0
|
0
|
4586
|
|
POST
|
Test #3: I did a third test (again, on my home computer) where I tested a subtype. The script ran without errors, but it didn't catch the invalid domain value. But that's totally reasonable, since I forgot to mention in my original post that the data uses a subtype...the script likely wasn't designed with subtypes in mind. So, to me, that suggests that the error I got in my first test (work computer) might not be caused by the subtype, since the script ran without errors on my home computer where a subtype was present.
... View more
06-24-2022
09:16 PM
|
0
|
1
|
4587
|
|
POST
|
Test #2: I did a test using ArcGIS Pro on my home computer: ArcGIS Pro 2.9.2 FGDB Created a non-spatial table from scratch No subtypes The script worked fine using the specs mentioned above. So I guess there's something in my work environment that is causing a problem. I'll do some more tests...
... View more
06-24-2022
08:42 PM
|
0
|
2
|
4588
|
|
POST
|
What does the lock symbol mean in a blog post? Does that icon get shown when comments have been disabled? Pro 3.x Database Guide Books for Roads and Highways
... View more
06-24-2022
08:29 PM
|
0
|
1
|
1589
|
|
POST
|
Thanks Johannes! That's great! I would have struggled with this for a week or more if I'd done it all on my own, lol. Here's where I'm at: Test #1: (using my work computer; enterprise GDB) I tried running the script, but got an error: Error: Traceback (most recent call last): File "<string>", line 41, in <module> File "<string>", line 15, in check_domain_values File "<string>", line 15, in <dictcomp> AttributeError: 'NoneType' object has no attribute 'keys' The table (non-spatial) has a subtype. Not sure if that's relevant or not.
... View more
06-24-2022
01:29 PM
|
0
|
0
|
4597
|
|
IDEA
|
The attributes pane has functionality that lets us select invalid rows: Find and correct invalid values To find and correct invalid attribute values, right-click the layer in the selection view and click Select Only Invalid Objects. This command is available with layers for which a data rule exists including attribute rules and other geodatabase behaviors such as attribute domains. https://community.esri.com/t5/arcgis-pro-ideas/prevent-non-domain-values-from-being-used-across/idc-p/1186044/highlight/true#M20037 That functionality is useful, especially for selecting rows where the values don't match their domains. Idea: Currently, that functionality is only available in the attributes pane, not the attributes window. Could that functionality also be added to the attributes window? That would help when it comes to workflows that are based on the attributes window, not the attributes pane.
... View more
06-24-2022
12:59 PM
|
3
|
1
|
1320
|
|
IDEA
|
@Scott_Harris Thanks. As you might have guessed, I was looking at the Attributes Table (incorrect), not the Attributes Pane (correct). For what it's worth, that technique worked fine on a feature class, but I couldn't get it to work for a non-spatial table. I'm not sure why. I deliberately entered an invalid domain value (via the field calculator), but the "Select Only Invalid Objects" functionality didn't select that record (or any other invalid domain records). Does it work for you when used on a non-spatial table in a newer version of Pro?
... View more
06-24-2022
08:40 AM
|
0
|
0
|
3164
|
| 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 |