How can I obtain the actual height of the site on the map when using txsite?

2 次查看(过去 30 天)
Hello:
In the example CDL Channel Model Customization with Ray Tracing, a map of buildings in Hong Kong is imported. When creating a base station, the antenna height is set to 4 meters, but this base station is on top of a building. How can I obtain the actual height of this base station?
I believe a possible method could be:
  1. Use readgeotable to read the building information.
  2. Use isinterior to check if the site's latitude and longitude are within a building's geopolyshape.
  3. If the site is within a building's geopolyshape, then the site's height would be 'buildingHeight + AntennaHeight'.
However, this method is very inefficient in the case of a large map with multiple sites. Since the site can be visualized in 3D using show, it should actually contain height information. Is there a simpler way to obtain the height of the site?
Thank you!

回答(1 个)

Rangesh
Rangesh 2023-12-29
Hi Xinhua Zheng,
I understand that you are interested in determining the height of the building where the transmitter is located.
When you run the example, you can examine the cell array "rays" in the workspace. The ray object "rays{1,1}(1,1)" provides one of the paths between the transmitter (Tx) and the receiver (Rx). This contains the location of Tx and Rx which contains the height, as shown in the image below.
Please note that the height is referenced to the ellipsoid defined by the World Geodetic System of 1984 (WGS84). Depending on the standards, the height is calculated accordingly.
You can refer the following links to understand better:
I hope this resolves your query.

类别

Help CenterFile Exchange 中查找有关 Propagation and Channel Models 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by