Importing GML Files - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Syntax

Import file_name 
	[ Type  "GML"  ]
	[ Layer layer_name ]
	[ Into  table_name  ]
	[ Style Auto [ On | Off ] ]

file_name is a string that specifies the name of the file to import.

layer_name is a string representing the name of a layer in the GML file.

table_name specifies the name of the new table to create.

Description

Type is "GML" for GML files.

MapInfo Pro supports importing OSGB (Ordnance Survey of Great Britain) GML files. Cartographic Symbol, Topographic Point, Topographic Line, Topographic Area, and Boundary Line are supported; Cartographic Text is not supported. Topographic Area can be distributed in two forms; MapInfo Pro supports the non-topological form. If the files contains XLINKS, MapInfo Pro only imports attribute data, and does not import spatial objects. These XLINKs are stored in the GML file as "xlink:href=". If topological objects are included in the file, a warning displays indicating that spatial objects cannot be imported. Access the Browser view to see the display of attribute data.

Example

Sample importing using GML style:

Import "D:\midata\GML\est.gml" Type "GML" layer "LandformArea" style auto 
on Into "D:\midata\GML\est_LandformArea.TAB" Overwrite