Why am I getting an incorrect wmsread error?

1 回表示 (過去 30 日間)
Kim
Kim 2022 年 8 月 2 日
I'm trying to plot a map within the area latlim = [30 75] lonlim = [-25 45], and I get an error saying that WMSMapRequest epected a Latlim value within the range [-90 90]. My latlim value is within that range.
What went wrong?
My matlab entries are as follows:
>> worldmap(latlim,lonlim)
>> mstruct = gcm;
>> [elImg,R]=wmsread(etopo1_update,'Latlim',latlim,'Lonlim',lonlim);
Error using WMSMapRequest>validateLatlim (line 1281)
Expected the 'Latlim' value to be in the interval [-90, 90].
Error in WMSMapRequest>validateLayerProperties (line 1164)
validateLatlim(layer(k).Latlim, layer, WMSMapRequest.DefaultCRS);
Error in WMSMapRequest/setProperties (line 845)
self.pLayer = validateLayerProperties(layer, self.Server);
Error in WMSMapRequest (line 519)
self = setProperties(self, layer);
Error in wmsread (line 353)
mapRequest = WMSMapRequest(layerOrURL);
>>

回答 (0 件)

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by