Site Viewer, when i use basemap , it shows "Unable to access terrain data"

15 次查看(过去 30 天)
" rfprop.AntennaSite/show (line 77)
Unable to access terrain data. See Access Basemaps and Terrain in Site Viewer."
when i use Site Viewer , it show this error, how can i deal with that?
  3 个评论
Abhi Sundararaman
Abhi Sundararaman 2019-5-13
The default terrain data is hosted online; This message is usually thrown when MATLAB has trouble accessing the internet to fetch the terrain data.
When do you receive this message? Do you receive this message consistently? Also, are you able to access the "satellite" basemap, or do you only see the "dark water" basemap when you open Site Viewer? You can check this using the following:
viewer = siteviewer;
viewer.Basemap = "satellite";
The reason I ask is: if MATLAB is unable to access the "satellite" basemap AND it can't access the terrain data, then it is almost certainly an internet connection issue.
Yuqi Meng
Yuqi Meng 2019-11-3
I encountered the same error message when I tried to run the following example code on the matlab documentation:
tx = txsite('Name','MathWorks', ...
'Latitude', 42.3001, ...
'Longitude', -71.3503);
rx = rxsite('Name','Boston', ...
'Latitude', 42.3601, ...
'Longitude', -71.0589, ...
'ReceiverSensitivity', -90);
ss = sigstrength(rx,tx)
it shows Unable to access terrain data 'gmted2010'. See Access Basemaps and Terrain in MATLAB.
even though I downloaded all the basemaps on this instruction.
when I execute the code, it still shows the message.
However I can execute the
viewer = siteviewer;
viewer.Basemap = "satellite";
code successfully.

请先登录,再进行评论。

回答(3 个)

Colin Shaw
Colin Shaw 2021-4-27
damn, nobody answer this question!!! I encountered this problem for many times.

Ehsan Jalilvand
Ehsan Jalilvand 2021-9-23
编辑:Ehsan Jalilvand 2021-9-23
I faced the same issue and found this alternative solution using addCustomBasemap function. See the following codes to add the Google satellite basemap:
ax = geoaxes;
name = 'googleSat'; url = 'https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}';
addCustomBasemap(name,url)
geobasemap(ax,name)
and for adding other basemaps:
name = 'BingAerial'; url = 'http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1';
name = 'GoogleHybrid'; url = 'https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}';
name = 'openStreetMap'; url = 'http://tile.openstreetmap.org/{z}/{x}/{y}.png';
- Ehsan

Tai
Tai 2024-1-17
Hello, I'm afraid I have faced a similar issue. When I run the command siteviewer("Basemap","openstreetmap","Buildings","hongkong.osm"). A warning message pops up: Unable to access the Internet, showing 'darkwater' instead of 'openstreetmap'.
Do you know how to fix this issue?

类别

Help CenterFile Exchange 中查找有关 RF Propagation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by