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:
- From the Table tab, click Import. The Import File dialog box opens.
- From the Files of type drop-down list, select Geographic Markup Language 2.1.
- Navigate to the directory in which your GML2 file is saved and select the file.
- 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. - 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.
- Do one of the following:
- Choose a name for the new .TAB file
- Accept the default naming convention for this new .TAB file.
- 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.
- 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.