Why won't geoshow texture-map the globe with my JPEG?
조회 수: 5 (최근 30일)
이전 댓글 표시
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:
0
0
0
-0.18
-174.0
89.91
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?
-Jim
댓글 수: 0
답변 (1개)
Darin McCoy
2012년 8월 29일
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!