Skip to content
Request a quote

Cadastre · · Updated on

How to open a Cadastre GML file you have been sent

Sent a GML file and unsure how to open it? What it contains, how to view it with a text editor or free viewer and what to do if it appears shifted.

Technician reviewing plans on a table
Cadastre 2026-10-19

You have been sent a GML file, by email, from the notary’s office, on behalf of a technician or downloaded from the Cadastre (Catastro, Spain’s land and property register for tax purposes), and nothing happens when you double-click it. Don’t worry: it is not broken. It is a text file with the shape of a plot written in coordinates. Here is how to open a Cadastre GML file, what it contains and, above all, what to do with it. If what you need is to submit it to the Cadastre or the Land Registry, the usual route is to ask a surveyor for the IVGA or the ICUC, not to send the file.

What do you want to do with the file?

Before installing anything, think about what you need it for, because everything depends on that:

  • You just want to know what is inside. A text editor is enough.
  • You want to see the plot drawn. You need a free mapping viewer.
  • You need to submit it to the Cadastre, the Registry or the notary’s office. Here the file is not what counts: what is submitted is the report (IVGA or ICUC) obtained from a survey. We explain it in you are asked for a GML: what you really need.
  • It has come out in a strange place. It is almost always a coordinate system problem, not a survey problem. Below you will find how to check it.

One important point: the file is not corrected by hand. Changing a single digit changes the property and can break the file.

How to open it, step by step

With a text editor, with nothing to install. Right-click the file, choose “Open with” and pick Notepad (or Notepad++ or Visual Studio Code, which are free). You will see text full of tags between angle brackets and a list of numbers. Two things are worth looking at:

  • The srsName line, which gives the coordinate system. For a property in Spain in ETRS89 UTM the EPSG code starts with 258.
  • The list of coordinates: pairs of six- and seven-digit numbers (Easting and Northing). The first and last pair must be identical, because that is how the outline closes.

With a free viewer, to see it drawn. The most widely used is QGIS (free, at qgis.org):

  1. Create a new project.
  2. In the “Layer” menu, choose “Add Layer” and “Add Vector Layer”.
  3. Select the .gml file. If it asks for the coordinate system, enter the one that appeared in srsName.
  4. Right-click the layer and choose “Zoom to Layer”. The plot will appear.

You need nothing more. Google Earth does not open GML directly, and Excel opens it as text but does not draw the plot. If the file comes compressed in a .zip, unzip it first.

If the plot appears shifted or does not appear

  • Nothing appears. The view is far from the layer: zoom to the layer.
  • It appears in the sea or on another continent. Easting and Northing have been swapped, or the program has been assigned a different coordinate system.
  • It appears shifted by about a hundred metres. The file is in an old system and has been loaded as if it were the current one.
  • Several outlines appear. That is expected if the file corresponds to a subdivision or a merger.

In survey coordinates for your property we explain why a plan in another system appears shifted.

What to do with the file, depending on where it came from

Illustrative example, not a real case. A foreign buyer receives from the estate agent a .gml file “of the property”. She opens it in Notepad and sees numbers; she loads it into QGIS and sees a shape. When she compares it with the parcel map, the plot is displaced from what she sees on the Cadastre. The question is what to do with the file, and the answer depends on where it came from:

  • If you downloaded it from the Cadastre, it describes the plot as it stands today. It is good for consulting it, not for correcting it: correcting it requires a new survey.
  • If a technician sent it to you, ask also for the report that goes with it (IVGA or ICUC) and the georeferenced plan. That is what is submitted.
  • If you were asked for it or sent it as a formal request, what is expected is the graphic representation of the property. The person who prepares it is a surveyor, measuring in the field.
  • If the Cadastre does not match your property, the file only shows you the problem. The solution is in when the Cadastre does not match your property.

The file describes a geometry. It does not prove ownership or replace the procedure of the Cadastre, the Registry or the town council, and Clotoides does not give legal advice.

What you get and the next step

If your procedure needs the property with official coordinates, you get a georeferenced plan signed by Vicent Doménech (chartered surveyor no. 8948, member of the COIGT) and the IVGA or ICUC that applies.

Tell us what you have been asked for at the first 30-minute meeting at no cost. It helps if you bring the request and the file you were sent.

Frequently asked questions

Can I open a GML with Excel?

It opens as text, but Excel does not interpret it as a polygon, so you will not see the plot.

Can I correct the GML by hand if there is an error?

It is not advisable. If there is an error, the file is regenerated from the survey once it is known what is wrong.

What is the difference between a GML, a KML and a SHP?

They are geographic data formats. KML is Google Earth’s and SHP is the one used by many mapping programs; they can be converted from one to another with a viewer such as QGIS.

Tell us about your case on the contact page or call +34 654 562 474. You can also see the Cadastre, Registry, IVGA and ICUC service.

Tags gmlcatastrogeorreferenciacion

Written by Vicent Doménech, geodesy and cartography engineer, registered with the COIGT (Official College of Geomatic and Topographic Engineering), no. 8948.

Tell us about your case

Do you have a similar case?

Tell us about it with the cadastral reference. We will look at it, tell you what work is needed and prepare a quote.

Xàbia
C/ Ausiàs March, 2 · 03730 Xàbia
or write to
hola@clotoides.com