Mapping SRTM data

조회 수: 6 (최근 30일)
Joan
Joan 2011년 4월 7일
Is anyone using the mapping toolbox to successfully map SRTM data? Most examples provided with the mapping toolbox no longer work and I cannot seem to read in anything that geoshow is willing to take as input. A working example would be much appreciated!

채택된 답변

Joan
Joan 2011년 4월 22일
I've got this particular layer working. I now realize that sometimes wmsread returns data that are not the type that geoshow wants. Editing the last line to: geoshow(double(Z1),R1,'DisplayType','surface'); works. After that: demcmap(double(Z1)) is a better colormap than default.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 4월 7일
showdemo mapexgeo
doesn't work for you?
What do you mean by they aren't working anymore?
  댓글 수: 2
Joan
Joan 2011년 4월 19일
Sorry I didn't see your answer sooner: the system did not email me when you posted, even though it was supposed to.
Yes, showdemo mapexgeo works for me, but those are based on data included with the demo. The examples I'm referring to are in the help topic "Display a Merged Elevation and Bathymetry Layer (SRTM30)". This is exactly what I want to do, but with my own coastal region of course. earth.jpl.nasa.gov is no longer supporting WMS services. I have found what I think are SRTM data on other servers but I can't seem to get this code to work. I would like some help with the settings in wmsread so that it will return something that geoshow will take as input. For example:
usgs=wmsfind('usgs*ned')
LayerName='mergedSrtm';
MapLayer=usgs.refine(LayerName)
latlim = [31.89 32.04];
lonlim = [-81.02 -80.80];
CellSize=1/3600;
[Z1, R1] = wmsread(MapLayer, 'Latlim', latlim, 'Lonlim', lonlim, 'CellSize', CellSize);
geoshow(Z1,R1)
Thanks for any help you can give with troubleshooting.
Muhammad Hussain
Muhammad Hussain 2011년 12월 27일
is there any way to read Aster GDEM data in Matlab in GEOTIFF format?

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

Community Treasure Hunt

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

Start Hunting!

Translated by