Saving a Raster Reprojection to MWS for MapXtreme - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
ft:locale
en-US
Product name
MapInfo Pro
ft:title
MapInfo Pro Help
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:39:16.995000

Raster reprojection occurs when you open a registered raster image inside of a vector Map window with a different projection, or when you change the projection of a Map window. During the raster reprojection process, MapInfo Pro recalculates the pixel values of the source image to make them display correctly in the destination image. You could save this reprojection to .WOR-type workspaces and to the XML-format based MapInfo Workspace (.MWS) files used in MapXtreme.

To support this interoperability, we have created the RasterConditions XML element for raster reprojection. This element has 6 attributes, which are described below. Since not all of these attributes correlate to MapInfo Pro attributes, the missing MapInfo Pro attributes are set to the default values used in MapXtreme:

  • dither - This attribute is set to halfTone (the other supported value for MapXtreme is errorDiffusion)
  • trueColor - This attribute is set to true (the other supported value is false)
  • optimizeRasterLayers - This attribute is set to screen (the other supported value is printer)
  • optimizeVectorLayers - This attribute is set to screen (the other supported value is printer)

There are two attributes that are relevant to raster reprojection in MWS files that are initialized from a Map window and are directly translated to MapXtreme:

  • rasterReprojectionResampling - This attribute can have values of cubicConvolution or nearestNeighbor.
  • rasterReprojection - This attribute can have values of none, always, or optimized.

MapInfo Pro writes the RasterConditions element to the MWS workspace and defines all six attributes. This enables MapXtreme to open and display MapInfo Pro MWS files.

To save a MapInfo Workspace (.MWS) to use in MapXtreme:

  1. On the HOME tab, in the File group, click Save Workspace, and select Save Workspace As from the drop-down list.
  2. In the Save Workspace dialog box, type a name for the workspace and select the directory location to save it to.
  3. From the Save as type drop-down list, select MapInfo Workspace Format (.mws).

    There are two MapInfo workspace formats, WOR and MWS. A .wor file is written using MapBasic and a .mws file is written using XML. The MWS format contains more information about the data sources than the WOR format does.

  4. Click Save.

When you start your next session, you can open this workspace right from the Quick Start dialog box and continue where you left off.

Note: You can change the directory path that MapInfo Pro uses for opening or saving workspaces as a directory preference: on the PRO tab, click Options, and Directories.