필터 지우기
필터 지우기

Questions about mapping toolbox

조회 수: 3 (최근 30일)
Shibing Liu
Shibing Liu 2017년 1월 9일
댓글: Walter Roberson 2017년 7월 7일
I tried to run following codes. But it gave a 0x1 empty 'layers' and following warning. Does anyone know what is happening please? I am trying to get the elevation information from a map server. Thank you for your help.
layers = wmsfind('nasa.network*elev', 'SearchField', 'serverurl');
layers = wmsupdate(layers);
Warning: An error occurred while attempting to update layers from the server, 'http://www.nasa.network.com/elev?'. These layers are being removed from
the layer array. The number of layers from this server that are being removed from the layer array is 11. The error message returned by the server is:
'Expected the capabilities document from the server, 'http://www.nasa.network.com/elev?', to contain valid XML.'.
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 1월 9일
I confirm the problem. Unfortunately, I do not have any ideas why it is happening.

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

채택된 답변

Ed Marquez
Ed Marquez 2017년 1월 12일
편집: Ed Marquez 2017년 1월 12일
I was able to run the code you shared with no warnings or errors. 'layers' was generated and has the 11 layers that are expected. I attached the variable 'layers' as a MAT file to this answer so you can check.
It seems like the issue could be computer or connection specific...
Also, I ran the code in all MATLAB versions between R2014a and R2016b and 'layers' was always generated, so the issue may not be related to a specific MATLAB version.
  댓글 수: 4
Sarachhandrika CH
Sarachhandrika CH 2017년 5월 8일
I'm not able to use the wmsupdate and wmsread functions. Everytime I use them the above error is returned.
Walter Roberson
Walter Roberson 2017년 5월 8일
I just tested now with the code posted in the original Question, and the code worked for me in R2017a but not in R2016b.

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

추가 답변 (2개)

Alessandro
Alessandro 2017년 5월 9일
편집: Alessandro 2017년 5월 9일
Hi. Have you found a solution for the issue? I'm experiencing the same problem.
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 5월 9일
Alessandro, which MATLAB version are you using?

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


Olga Galluppi
Olga Galluppi 2017년 7월 7일
I have the same problem, can someone help ?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 7월 7일
Olga, which MATLAB release are you using?

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by