Select to view content in your preferred language

How to spatial join on the fly?

246
5
2 weeks ago
Labels (2)
MatthewTsui5
Occasional Contributor

Has anybody figured how to spatially join on the fly?

I'm struggling to build an ArcGIS Dashboard where users can see three layers (territories, districts, regions).

The data must be live since it changes daily, so it's sourced enterprise geodatabase polygon feature class (Entgdb.DBO.Territories). A district is neighboring territories, while a region is neighboring districts. [See screenshot].

I tried using symbology (fill, but no outline), but accessibilty suffers with so many 80 + districts.

 

0 Kudos
5 Replies
RickeyFight
MVP Regular Contributor
0 Kudos
MatthewTsui5
Occasional Contributor

Hi RickeyFight,

I have tried it. Unfortunately, the doc helps to spatially join attribute on the fly between two layers. It doesn't help to visualize seperate polygons with the same attribute as one polygon.

0 Kudos
DavidPike
MVP Notable Contributor

You can create a view in the database with geometry joins (or query layer in desktop) and publish that.

0 Kudos
MatthewTsui5
Occasional Contributor

Hi David,

That sounds promising.

By geometry join, are you referring to SQL functions like ST_UNION?

https://developers.arcgis.com/geoanalytics/sql-functions/st_union/#:~:text=ST_Union%20takes%20two%20....

0 Kudos
DavidPike
MVP Notable Contributor

I think you'd use option such as .STIntersects(), .STContains(), .STWithin()

Whichever operations are available within your database engine (may not be ST geom type etc.)  We're talking outside of Esri here so go to your DB documentation.  A query layer in ArcPro might achieve the same thing also (with extra steps).

0 Kudos