Why am I unable to import files into the Map Viewer in the

Illustration
devid_smith - 2022-02-11T11:15:53+00:00
Question: Why am I unable to import files into the Map Viewer in the

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? 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.  

Expert Answer

Profile picture of John Michell John Michell answered . 2025-11-20

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.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!