geoplot and geobasemap displays "missing" tile inexplicably

조회 수: 52 (최근 30일)
Chris Rhinehart
Chris Rhinehart 2022년 12월 13일
댓글: LucasBar 2024년 11월 7일 15:56
I had written a code that plots GPS points over satellite maps using geoplot and geobasemap. The code worked previously fantastically. However, I can no longer get my geoaxes to display ANY map tiles. I have made no changes to my machine, license, or internet connection.
Ex:
geoplot(35,-74,'Marker','*','MarkerSize',25); %Choose an arbitrary point to plot with an obnoxiously large marker for reference
will plot a point overlaying an plot full of "missing" tiles. My command window will repeat the following warning several times (shown once here to reduce spam). See the attached .png
Warning: A value of class "double" was indexed with no subscripts specified. Currently the result of this operation is the indexed value itself, but in a future release, it will
be an error.
> In matlab.internal.asynchttpsave/AsyncHTTPContentFileWriter/handleThreadIsFinishedEvent
In matlab.internal.asynchttpsave.AsyncHTTPContentFileWriter
In matlabshared.asyncio.internal/Channel/onPropertyChanged (line 491)
In matlabshared.asyncio.internal.Channel>@(source,data)obj.onPropertyChanged(data.Name,data.Value) (line 405)
Warning: Unable to access the Internet, showing "missing" tile where 'streets-light' is unavailable. See Access Basemaps in MATLAB.
I'm familiar with the "unable to access internet" warning, which I have verified is not the problem - the default basemap does not require internet connection. Is there an obvious fix to this problem, or is this a very in-depth troubleshooting situation?

답변 (3개)

Kelly Luetkemeyer
Kelly Luetkemeyer 2022년 12월 13일
Hi Chris,
Can you turn off either all warnings or this one 'MATLAB:subscripting:noSubscriptsSpecified' and see if the issue goes away?
>> warning off 'MATLAB:subscripting:noSubscriptsSpecified'
- or -
>> warning off all
  댓글 수: 1
Chris Rhinehart
Chris Rhinehart 2022년 12월 14일
Hey Kelly,
Thanks for your answer. I actually had already had the warnings supressed prior to this issue happening. I observed this happening and un-suppressed them in order to gather information for troubleshooting. So unfortunately, turning off the warnings is not the fix.

댓글을 달려면 로그인하십시오.


Kelly Luetkemeyer
Kelly Luetkemeyer 2022년 12월 14일
Hi Chris,
I was able to re-create the issue by setting
warning on all
and use the workaround by creating a new figure and setting
warning off all
I am on a mac running R2022b.
>> warning on all
>> geobasemap streets % pan/zoom until you can see tiles
Warning: A value of class "double" was indexed with no subscripts specified. Currently the result of this operation is the indexed value itself, but in a
future release, it will be an error.
(Type "warning off MATLAB:subscripting:noSubscriptsSpecified" to suppress this warning.)
>> warning off all
>> close all
>> geobasemap streets % pan/zoom to make sure you get new tiles - no warnings
The streets-light basemap (the default) does require Internet access and uses cached tiles if available. You can use darkwater if you do not have Internet access.
  댓글 수: 1
Chris Rhinehart
Chris Rhinehart 2022년 12월 15일
Kelly,
My mistake - the dark water basemap does work. I don't know why I forgot that that was not the default. However, the workaround you provided does not allow me to see the map. It does make the warnings go away as expected and I do have the darkwater option, but it's necessaryfor my project to get the satellite basemap to function.
If it helps, I've also attempted downloading basemaps and using those downloaded basemaps to see if that is a viable workaround and I receive the same errors.

댓글을 달려면 로그인하십시오.


LucasBar
LucasBar 2024년 11월 7일 15:37
The solution of silence the warming is not a real solution.

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by