Mapping SRTM data

12 vues (au cours des 30 derniers jours)
Joan
Joan le 7 Avr 2011
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!

Réponse acceptée

Joan
Joan le 22 Avr 2011
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.

Plus de réponses (1)

Sean de Wolski
Sean de Wolski le 7 Avr 2011
showdemo mapexgeo
doesn't work for you?
What do you mean by they aren't working anymore?
  2 commentaires
Joan
Joan le 19 Avr 2011
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 le 27 Déc 2011
is there any way to read Aster GDEM data in Matlab in GEOTIFF format?

Connectez-vous pour commenter.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by