Select to view content in your preferred language

Wrong values when intersecting ArcGIS Indoors layers

749
2
10-24-2023 09:17 AM
KevinDohner
Occasional Contributor

Hello,

I am trying to make an asset collection field map and am running into some issues trying to auto-populate the Room Number the asset is located in.

I am using this one code line below to load the Units indoor layer and return the room number of the first row that intersects the newly placed feature.

return First(Intersects(FeatureSetByName($map, "Units", ["NAME"]), $feature)).NAME

 The issue I am running into is that this will return room numbers from rooms that have been filtered out in the Floor Filter. Basically, if I am filtered to level 2 of a specific building, and place a new point in a room, it will auto-populate the room number of a room on level 1 instead of level 2.

I am not sure if I am just missing something or if this is working as intended. How would I go about getting the correct room number?

0 Kudos
2 Replies
KadeSmith
Frequent Contributor

I make the user select the floor level and then use that to query out the intersecting room with the matching floor level. I have a domain setup with valid floor levels so that they can't input an incorrect floor level.

KevinDohner
Occasional Contributor

I hadn't thought about that. I was hoping that since the floor filtering was already filtering the layers that it would be a bit more straight forward and wouldn't require any input by the user.

I didn't do exactly what you proposed but I did take that logic and come up with a workaround. I know that field maps auto-populates the "Level_ID" so I used the Level_ID to filter the features and got it to work. Thank you for the suggestion and putting me on the right path.