Select to view content in your preferred language

How to judge whether the broken line crosses 3D obstacles, such as mountains, buildings, etc

481
2
01-12-2023 12:31 AM
longeLon
New Contributor

When using ArcGISScene, I drew a line through the mountain. I want to know whether my line passes through the mountain in the program. When I use GeoElementLineOfSight to judge, if my observer goes beyond the screen, there will be detection failure UNKNOWN, which is not what I want

0 Kudos
2 Replies
KoushikHajra
Esri Contributor

Hello @longeLon Thank you for reaching out to us with your question. LineofSight is what you need. It will tell you if your line crosses obstructions. You can use the LocationLineOfSight or GeoelementLineOfSight. When you perform the analysis the observer should be within the screen. Can you please share some code to demonstrate when you are getting UNKNOWN? 

 

Thanks,

Koushik

0 Kudos
longeLon
New Contributor

Thank you, Koushik. What I want to know is how I can judge the visibility of the observer or the observed if they are no longer on the screen. For example, I want to judge whether the line between my two points passes through the obstacle

0 Kudos