Open a GML file with QGIS and Microstation

The GML file is one of the formats most appreciated by GIS developers and users, since apart from being a format supported and standardized by the OGC, it is extremely functional for the transfer and exchange of data in web applications.

GML is an XML language application for geospatial purposes, its acronym stands for Geography Markup Language. With this it is possible to send in a text file, a vectorial file and even images using the GMLJP2. Its logic is based on the definition of a node structure (what is represented there) and the data itself, so that a GIS program reading a GML file first interprets its characteristics profile and then displays the geographic data There contained.

image

The example of the previous image is equivalent to a cadastral maintenance transaction, which includes a property in its initial condition, and the same as two objects once it has been dismembered, with its owner alphanumeric information.

How to read a GML file using QGIS.

This is as simple as only free software can do:

  • Layer> add layer> add vector layer> browse

Here the GML option is selected, and that's it.

image

To save a layer in QGIS as a GLM file, just right click on the layer, save as and choose the GML option.

Here it is necessary to define some configurations, for example:

  • It is a reference system, which can be the one that already has the layer defined.
  • The character encoding, Latin 1 is ideal for not having problems with accents and letters ñ in our Hispanic context.
  • The format is important, using GML 3 will be much more stable if we want it to be read by other programs or to be spread via Geoserver.
  • Also, it must be established if we want the scheme to be included in the same file or separately. In case of reading it with Bentley Map, it is required that it be separate, as explained later.

image

How to read a GML file with Microstation V8i

This functionality can only be done with Microstation GIS applications, such as Bentley Map, PowerView, Bentley Cadastre, or similar.

In my case, if I use Bentley Map, it is done like this:

image

  • File> Import> GIS Data Types ...

As you can see, here too you can call spatial layers served as Web Feature Service WFS, Oracle Spatial, SQL Server.

SHP files do not matter as they are opened natively.

In the case of GML files, the Add GML File ...

In the panel that appears, it will be necessary to select if the outline file is separate. The Bentley schema file is known as XSD.

And once this is done, right-click on the Import1 routine, and select Preview only to display it or Import to bring it to the map.

image

When you query the object with the "Analyze" button, marked as a pair of glasses, and touching the object, the tabular data is raised both as a box and as an xml code, as shown in the following image.

To export to GML, the same procedure is followed:

  • File> Export> GIS Data Type ...

image

In both forms, with both QGIS and Bentley Map, it is possible to easily edit the GML as any vector file, as well as its alphanumeric data.

2 Replies to "Open a GML file with QGIS and Microstation"

Leave an answer

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.