Why won't geoshow texture-map the globe with my JPEG?

4 views (last 30 days)
Jim on 29 Aug 2012
I'm using the Mapping Toolbox and would like to texture-map a 3-D globe with a 2000 x 1000 pixel world image in JPEG format. The image came without an associated world file, so I created one using the online calculator at http://egb13.net/2009/03/worldfile-calculator/. The image spans the whole globe, from -90 to +90 deg lat and longitude cut at -174 deg. I assumed no skewness, so the world file looks like:
My code first calls axesm to create a map axes with MapProjection set to 'globe'. Next I call geoshow, passing it the path and name of my .jpg file. (The world file sits in the same directory, and has a .jwg extension.) The problem is that the image doesn't appear, even though the handle from the geoshow call indicates that its parent is the map axes, FaceColor is 'texturemap', and Visible is 'on'. Any ideas how to fix this?

Answers (1)

Darin McCoy
Darin McCoy on 29 Aug 2012
I'm not sure about your particular question - but there are some neat FEX submissions related to globe mapping....for example - check out this one

Community Treasure Hunt

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

Start Hunting!