A KML With the Data Inside, Not a "Network" Pointer That QGIS Will Not Open

2026-11-245 min read
KMLNetworkLinkQGIS

This is a walk through one common pain that GIS people and anyone preparing maps for field work keep raising on forums. There are no names here, only what goes wrong, why, and how the site builds KML. If you have ever opened a "map" and been told by the program that it holds no data, this article is about you.

What hurts

Someone downloads a KML and opens it in the program they always use. Ordinary files open without trouble, but some do not: plain KML files read fine in Global Mapper, while the "network" ones do not. QGIS answers such a file with an error saying it "is not a valid or recognized data source".

Formally the file is correct. The catch is in what it contains. Inside there are no roads and buildings, only a <NetworkLink>: a link to an address where the data is supposed to be fetched from. The native client the file was made for follows the link and shows everything. Any other program sees an empty document with one address in it. At home, on a good connection, nothing gives this away. In the field without internet, such a file is empty even in the native client.

The bar that follows from this is simple: whatever is called a data file has to contain the data. A link in place of the content is a substitution, even if the format itself is perfectly valid.

How the site solves it

The site does not hand out pointer files. The map objects are written into the KML itself: each layer is its own <Folder>, and inside it sit <Placemark> elements with their geometry and coordinates. There is no <NetworkLink> and no link to external data in the file; the KML and KMZ export code does not contain such an element at all. KMZ is the same KML in a ZIP archive, with the data inside.

There are no separate KML settings in the wizard. At step 3 (Layers) you choose what goes into the map, and at step 11 (Format) you choose KML or KMZ. What you selected is what lies in the file: take it, carry it, and open it without a connection.

Diagram: on the left, how someone else's "network" KML is built, with only a NetworkLink and an address in the file; on the right, our measured numbers: 0 NetworkLink, 0 href, 2,295 placemarks, 2,315 coordinate blocks, 1,744,700 bytes; this is a diagram, not a screenshot

What we measured

We ordered a KML for a small area of 0.49 square kilometres and counted what was inside. There were zero <NetworkLink> elements and zero external href links. Instead there were 2,295 <Placemark> elements and 2,315 coordinate blocks, all in 1,744,700 bytes. There are more coordinate blocks than placemarks; that happens when an object's geometry has several parts, though we did not break the count down object by object.

The file size agrees with the contents: about 760 bytes per placemark. That is the simplest sign of real data. A map of an area that weighs about 1.7 MB with two thousand objects inside looks honest, while a "map" of a few hundred bytes will almost certainly turn out to be a pointer.

Diagram from our measured numbers: 1,744,700 bytes for 2,295 placemarks, about 760 bytes each; a pointer file weighs a few hundred bytes for the whole map; bars are not to scale

What we have NOT proven

We counted elements inside the file; we did not open it in every program. We checked that it has no pointers and does have placemarks. How QGIS, Global Mapper or the app on your phone will display it was not measured here. The area was a single small one. Layer icons in a plain KML are not fetched over the network either, because we do not write links to icon files, but we did not compare how the points look in different programs. If our file fails to open somewhere, write to us with the program name and version, and we will look into it.

How to check your own file

Open the KML in a text editor and search for NetworkLink and href. If they are there, you are looking at a pointer, and without a connection it is empty. If they are not there, while Placemark and coordinates appear by the thousand, the data is inside. The second sign is size: megabytes for an area are plausible, a few kilobytes are suspicious.

Do this check before you leave, not in the field. It takes a minute, and it is much easier to order the map again at home than to discover an empty file on a trail with no signal.

Questions people ask

Can a pointer KML be turned into a normal one? Only by fetching what the link points to while you still have a connection, and saving the result as a file of its own. That depends on the source, and sometimes the source does not allow it. It is simpler to get a file that holds the data from the start.

Is KMZ safer than KML here? Not by itself. A KMZ can contain a pointer just as well; it is only a ZIP archive. Ours contains a doc.kml with the placemarks inside, and you can check it the same way after unpacking.

Why does QGIS call the file invalid if the format is correct? Because QGIS looks for data to load as a layer, and a document with only a link offers none. The error message is about the content, not the syntax.

More about the format is in KML format in depth, working with KML in Google Earth is covered in KML for Google Earth, and the choice between two track formats is in GPX vs KML.

Make the same map Order a custom map

← All articles