|
POST
|
What kind of database is it? If it's Oracle, then you could use the SQL from this post for coded value domains: Select domain codes/descriptions. --create or replace view d_all_coded_value_domains_vw as
select
cast(rownum as number(38,0)) as rownum_,
x.code,
x.description,
i.name as domain_name
from
sde.gdb_items_vw i
cross apply xmltable(
'/GPCodedValueDomain2/CodedValues/CodedValue'
passing xmltype(i.definition)
columns
code varchar2(255) path './Code',
description varchar2(255) path './Name'
) x
where
i.name is not null --https://gis.stackexchange.com/questions/434701/find-problem-domains-in-gdb-items-vw And this post for subtypes: https://gis.stackexchange.com/a/434583/62572 --create or replace view sub_lc_events_asset_class_activity_vw as (
select
x.subtype_code,
x.subtype_description,
x.subtype_field,
x.subtype_field_domain,
i.name as table_name
from
sde.gdb_items_vw i
cross apply xmltable(
'/DETableInfo/Subtypes/Subtype/FieldInfos/SubtypeFieldInfo[FieldName="ACTIVITY"]'
passing xmltype(i.definition)
columns
subtype_code number(38,0) path './../../SubtypeCode',
subtype_description varchar2(255) path './../../SubtypeName',
subtype_field varchar2(255) path './FieldName',
subtype_field_domain varchar2(255) path './DomainName'
) x
where
i.name is not null
and i.name = 'INFRASTR.LC_EVENTS' Or use the sample Oracle or SQL Server queries here: Example: Resolving domain codes to description values using SQL
... View more
10-26-2022
08:47 AM
|
0
|
0
|
2114
|
|
POST
|
This post might interest linear referencing folks — as a way to find possible duplicate LRS events: Select duplicates (including near-duplicate numbers) Summary: I want to select rows where the ROAD_ID, YEAR_, STATUS, FROM_MEASURES, and TO_MEASURES are duplicated. In the case of FROM_MEASURES and TO_MEASURES, I want to use a 5 metre tolerance. For example, these TO_MEASURES would be considered duplicates: 200.6, 199.3, and 201. PROJ_ID ROAD_ID YEAR_ STATUS FROM_MEASURE TO_MEASURE
---------- ---------- ---------- -------- ------------ ----------
100 1 2022 APPROVED null 100.1 --duplicates (other than PROJ_ID); null is to be treated as zero
101 1 2022 APPROVED 0 100.1
102 1 2022 APPROVED 0 200.6 --duplicates: TO_MEASURES are approximately the same (within a 5 metre tolerance)
103 1 2022 APPROVED 0 199.3
104 1 2022 APPROVED 0 201
105 2 2023 PROPOSED 0 50 --not duplicates: FROM_MEASURES are different and TO_MEASURES are different
106 2 2023 PROPOSED 75 100
107 3 2024 DEFERRED 0 100 --not duplicates: YEARS are different and TO_MEASURES are different
108 3 2025 DEFERRED 0 110
109 4 2026 PROPOSED 0 null --not duplicates: STATUSES are different
110 4 2026 DEFERRED 0 null Solution: select * from road_projects rp
where exists (
select null
from road_projects rp2
where rp2.proj_id != rp.proj_id
and rp2.road_id = rp.road_id
and rp2.year_ = rp.year_
and rp2.status = rp.status
and abs(coalesce(rp2.from_measure, 0) - coalesce(rp.from_measure, 0)) < 5
and abs(coalesce(rp2.to_measure, 0) - coalesce(rp.to_measure, 0)) < 5
)
order by proj_id fiddle
... View more
10-18-2022
04:33 PM
|
1
|
0
|
1255
|
|
IDEA
|
In Catalog: It would be helpful if we could filter/show/hide enterprise geodatabase connection items (FCs, tables, views, relationship classes) by owner. For example, if there are items from several owners (ROADS, WATER_RES, WATER), let me only see items from WATER. My connection is OS Authentication (items from lots of owners), not a DB/owner-based connection (only one owner). Oracle 10.7.1 EGDB
... View more
10-12-2022
09:38 AM
|
1
|
12
|
5882
|
|
POST
|
@TanuHoque https://community.oracle.com/tech/apps-infra/discussion/comment/16848629/#Comment_16848629 "Good news! Spatial geometry ADTs are supported with the result cache mechanism, but you need to use the special optimizer hint: /*+ result_cache(force_spatial) */ For example: SQL> SELECT /*+ result_cache(force_spatial) parallel(2) */ c.market.shape 2 FROM cola_markets_2 c 3 WHERE c.market.name = 'cola_a' 4 ORDER by c.mkt_id;"
... View more
10-03-2022
09:59 PM
|
0
|
0
|
6847
|
|
IDEA
|
For what it's worth, copy/pasting works well in ArcMap. I use that functionality often; it's very efficient. 1. Click the rectangle in the top-left corner of the Coded Values section: 2. CTRL+C 3. Paste in Excel: I don't know why that functionality doesn't work in my version of Pro: 2.6.8. It looks like it ought to work: But when I try to paste the data in Excel, nothing happens; no data is pasted.
... View more
08-31-2022
09:02 AM
|
0
|
0
|
8474
|
|
POST
|
We register as versioned because: We want undo functionality in an edit session. That's only possible with versioning -- undo functionality comes with all types of versioning. We don't actually use named versions. We always edit the default version. In other words, we don't actually care about versioning functionality (i.e. long edit transactions) -- other than the undo functionality. We register with the option to move edits to base because: We access our data via SQL. The easiest and most performant way to access up-to-date versioned data with SQL is to use the "move edits to base" option. The edits get automatically posted to the default version. So the default version always has up-to-date info.
... View more
08-29-2022
09:26 PM
|
2
|
0
|
10909
|
|
IDEA
|
@KoryKramer Thanks. I think it's worth keeping this idea separate. There are other cases where specifying the SQL would be useful. For example, using an SQL expression or function in the join clause.
... View more
08-25-2022
06:22 AM
|
0
|
0
|
2619
|
|
IDEA
|
It would be nice if this functionality would work for enterprise geodatabases too. For example, in Oracle EGDBs, objects are prefixed with the owner/schema/user. CORPORATE.PARCELS OPERERATIONS.CREEKS OPERERATIONS.ROADS OPERERATIONS.SIDEWALKS TRANSPORTATION.TRAFFIC_LIGHTS If I were to type "O", then the selection would move to the first object in the OPERATIONS owner/schema/user. That works, but it would be great if there were a way to navigate to an object within a given prefix. So, within the OPERATIONS prefix, search for an object with a specific name by searching for "OPERATIONS.R" for ROADS.
... View more
08-24-2022
09:33 PM
|
0
|
0
|
3199
|
|
IDEA
|
It would be helpful if we could view related records right in the attribute table underneath a parent record: I'm aware that there are similar mechanisms in the attribute window/identify window. And I'm aware that it's possible to show related records via a separate/stacked section in the attribute table. Those mechanisms work, but they have limitations. It would be better if we could explore parent/child records all within a single expanded tree right in the attribute table. Related: Subdatasheets in MS Access
... View more
08-24-2022
02:47 PM
|
6
|
0
|
776
|
|
IDEA
|
When creating a dynamic/in-map join, it would be helpful if we could specify the join clause using SQL. For example, join on multiple fields: Instead of joining only on EVENT_ID=EVENT_ID, join on multiple fields: EVENT_ID=EVENT_ID AND YEAR=YEAR.
... View more
08-24-2022
02:31 PM
|
8
|
5
|
2685
|
|
IDEA
|
It would be helpful if there were OOTB functionality in Pro that would track all edits in a separate table (including tracking deleted rows). For example, a rough idea might be: (would need further consideration / open to ideas) Not the same thing as editor tracking fields (only tracks creation date/editor and last editor/date; doesn't track deletes). We don't want to use archiving. We don't want to store all edits in the master table. That makes things messy when it comes to SQL queries...we don't want to deal with the clutter of having old edit info in the master table. We're aware that this kind of thing can be done using attribute rules or with custom database functionality. But we don't want to write custom code for this. It would be better if we could use OOTB functionality. This seems like a common requirement. Lots of people seem to write attribute rules for this kind of thing...to track transactions in a separate table. Ideally, we wouldn't all be writing the same custom functionality. Could it be offered OOTB instead?
... View more
08-08-2022
09:30 AM
|
0
|
0
|
747
|
|
POST
|
Related: Use Power Automate to send scheduled emailed GIS notifications? Send me an email telling me if my geoprocessing task failed or was successful
... View more
08-02-2022
06:24 AM
|
0
|
0
|
1495
|
|
POST
|
Nope. I haven't had a chance to try. I'll likely go a different direction: Create a table in SDE that is a list of database views. Create a python script that loops through he table and sends emails if certain conditions are met. I talk about the idea in point #1 here: Practical GIS automation for non-IT users Would be very interested in hearing about how things turn out for you.
... View more
08-02-2022
06:21 AM
|
0
|
0
|
2035
|
|
POST
|
For software that requires admin privileges, I sometimes resort to using my home computer, on fake data. It's not great, but sometimes it's better than not having the software at all on my work computer.
... View more
07-29-2022
11:02 AM
|
0
|
0
|
6271
|
|
POST
|
For what it's worth, I don't have admin privileges on my work computer either (Windows 10). Yet, I noticed that I could install VS Code without needing admin rights. The same applies to some SQL clients and even R. I just thought I'd mention that. At first, I assumed there'd be no way to get an IDE like VS Code without admin rights. But to my surprise, it worked.
... View more
07-29-2022
10:59 AM
|
0
|
1
|
6271
|
| 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 | 3 weeks ago |