Skip to main content
Question

Building facade(front) direction find out

  • February 3, 2023
  • 12 replies
  • 81 views

abii
Contributor
Forum|alt.badge.img+4
  • Contributor
  • 11 replies

Hi pls help me with this. I just want to know which direction building is facing. I have thousands of building and i want that at once all buildings front direction should come out. The data i have are building foot print(.shp), 3d model (citygml) and road center line(.shp)

12 replies

JennaKAtSafe
Safer
Forum|alt.badge.img+8
  • Safer
  • 192 replies
  • February 3, 2023

Hi @Abinash Rout​, In your CityGML are you able to extract the <!--front surface--> tag? This isn't an area I'm an expert in but wondering if that would help. This documentation would be a good place to start as well.


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 6, 2023

Hi @Abinash Rout​, In your CityGML are you able to extract the <!--front surface--> tag? This isn't an area I'm an expert in but wondering if that would help. This documentation would be a good place to start as well.

Thanks for replying but i just want to know if there is any transformer which will help me find direction like weather its facing south, north or south east etc.

 


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 6, 2023

@david_r​ can you pls help me with this its really urgent


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • February 6, 2023

Use BoundingBoxReplacer set to 2D Oriented Bunding Box and give a name to the angle attribute.BoundingBoxReplacerThis will give you the direction of the longest side of the building, not the orientation of a specific facade.

Another method would be to use NeighborFinder with buildings as Base and roads as Candidates and use the _angle attribute to mao orientation.


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 6, 2023

Use BoundingBoxReplacer set to 2D Oriented Bunding Box and give a name to the angle attribute.BoundingBoxReplacerThis will give you the direction of the longest side of the building, not the orientation of a specific facade.

Another method would be to use NeighborFinder with buildings as Base and roads as Candidates and use the _angle attribute to mao orientation.

@caracadrian​ thank you so much.So from angle how will i identify the direction east, west or north-east etc.


david_r
Celebrity
  • 8392 replies
  • February 6, 2023

@david_r​ can you pls help me with this its really urgent

Sorry, this is outside my area of expertise.


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 6, 2023

Sorry, this is outside my area of expertise.

okay thanks for reply

 


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 6, 2023

Use BoundingBoxReplacer set to 2D Oriented Bunding Box and give a name to the angle attribute.BoundingBoxReplacerThis will give you the direction of the longest side of the building, not the orientation of a specific facade.

Another method would be to use NeighborFinder with buildings as Base and roads as Candidates and use the _angle attribute to mao orientation.

@caracadrian​ pls explain the second method you suggested

 


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • February 6, 2023

@caracadrian​ pls explain the second method you suggested

 

Just input building footprints and road lines into NeighborFinder and use AttributeRangeMapper or AttributeManager to set geographic direction from angle value. I believe the angle is measured counterclockwise starting from the X axis - 45-135 degrees should mean north. Reading the Help helps NeighborFinder (safe.com)

 


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 6, 2023

@caracadrian​ pls explain the second method you suggested

 

okay going to try it

thanks


abii
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 11 replies
  • February 14, 2023

@caracadrian​ pls explain the second method you suggested

 

@caracadrian​  Thank you so much forgot to thank you 😅 . achieved what i was looking for


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • February 14, 2023

@caracadrian​ pls explain the second method you suggested

 

Glad you found a solution. Happy to help!