Why am I unable to import files into the Map Viewer in the Mapping Toolbox 2.1 (R14SP2) on Mac OS X 10.3.x?
6 ビュー (過去 30 日間)
古いコメントを表示
I am using the Map Viewer in the Mapping Toolbox 2.1 (R14SP2) on Mac OS X 10.3.8. I attempt to import an image into the Map Viewer using the following steps:
1. Enter the following command at MATLAB command line to start the Map Viewer:
mapview
2. From the menu bar of the Map Viewer, select "File -> Import From File..."
However, instead of seeing the Import Data dialog box, I receive the following error at the command line:
??? No method 'returnExtensionString' with matching signature found for class 'com.mathworks.hg.util.dFilter'.
??? Error while evaluating uimenu Callback.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in the Mapping Toolbox 2.1 (R14SP2) in the way that the Map Viewer handles importing files on Mac OS X 10.3.x.
To work around this issue, load the file into the workspace using functions such as IMREAD or GEOTIFFREAD, and then import from the workspace into the Map Viewer by selecting "File-> Import From Workspace -> Raster Data -> Image..." from the menu bar of the Map Viewer. For example, to import the "boston.tif" file in the "mapdemos" folder, use the following:
[boston_X, boston_cmap, boston_R, bbox] = geotiffread('boston.tif');
boston_rgb = ind2rgb8(boston_X, boston_cmap);
Open the "Import Image Data" dialog by selecting "File-> Import From Workspace -> Raster Data -> Image..." from the menu bar of the Map Viewer. In the dialog, import "boston_rgb" as the image and "boston_R" as the referencing matrix.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!