Importing and Displaying GML 2.1 Files - 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

You can import GML 2.1 files into MapInfo Pro directly. To import successfully, the XML must contain a reference to a valid schema that MapInfo Pro can read. For example, the schema location could be a path relative to the XML file:

xsi:schemaLocation="http://www.mapinfo.com/wfs_XX .\mi_usa.xsd"

Or, it could be a URI:

xsi:schemaLocation="http://www.lm.se/xml/namespace/abc 
http://www2.xxx.se/xml/scheman/abc.xsd"

To import GML 2.1 files:

  1. From the Table tab, click Import. The Import File dialog box opens.
  2. From the Files of type drop-down list, select Geographic Markup Language 2.1.
  3. Navigate to the directory in which your GML2 file is saved and select the file.
  4. Click Open to display the GML Import dialog box.

    Here you can select either All Layers (if more than one exists), or a specific layer that you want to import from the GML file.

    Note: If projection information is not stored within the GML file(s), MapInfo Pro prompts you for a projection to use.
  5. Select the GML layer (or All layers) you want to display from the drop-down list and click OK. The Import into Table dialog box opens.
  6. Do one of the following:
    • Choose a name for the new .TAB file
    • Accept the default naming convention for this new .TAB file.
  7. Select the file type to save to: native MapInfo (*.tab) format, or nativeX MapInfo Extended (*.tab) format. Use the extended format for data that is larger than 2GB or when the table has more than 250 columns.
  8. Click Save to import the file.

You can use the file you saved in your map and layout. Metadata for this file is also available by opening a Browser window on this file.