How topologically connect street with buildings?

02-14-2022 12:27 PM
New Contributor

How topologically connect street with buildings?????

I need that when clicking on a building the street is also selected, indicating that they are connected, to simulate a natural disaster project, in which, if something happens on a certain street, it will affect such buildings

Can someone help me?

0 Kudos
3 Replies
MVP Esteemed Contributor

What you're describing sounds more like a relationship class.

If your buildings had a "street ID" field that corresponded to an ID field in your streets layer, you could link them.

- Josh Carlson
Kendall County GIS
0 Kudos
Occasional Contributor III

Sounds to me like you'll want to set up a relationship class between the buildings and the streets.  For that to work you need a foreign key in your buildings layer that is the ID of the street it is related to.  

0 Kudos
Occasional Contributor III

CityEngine does not innately support this type of relationship, but there are ways to use the Jython API so that such relationships can be acted on.

David Wasserman, AICP
0 Kudos