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

14 views (last 30 days)
" 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 Comments
Abhi Sundararaman
Abhi Sundararaman on 13 May 2019
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 on 3 Nov 2019
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.

Sign in to comment.

Answers (3)

Colin Shaw
Colin Shaw on 27 Apr 2021
damn, nobody answer this question!!! I encountered this problem for many times.
  1 Comment
Anakin ZC
Anakin ZC on 3 Aug 2021
damn, nobody answer this question!!! I also encountered this problem for many times. do you solve this problem?

Sign in to comment.


Ehsan Jalilvand
Ehsan Jalilvand on 23 Sep 2021
Edited: Ehsan Jalilvand on 23 Sep 2021
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 on 17 Jan 2024
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?

Categories

Find more on RF Propagation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!