1

After importing a couple of gml files (Dutch BRT-files) into QGIS I noticed that some of the layers didn't seem to contain any geometry, the database (attribute table) is there, but no geometry is showing on my screen.

When I import the gml separately, it shows up just fine.It looks like the gml files are interfering with each other?

Any thoughts?

single GML imported separately, roads are showing

multiple GML files imported at once, roads are gone

1

It isn't neccessary that your XML file contains a single layer, nor that that layer has any kind of geometry data. First, QGis will load all layers it can interpret from the XML file, and in case where it can't find geometry data for a specific feature class (layer), it will add it as a table not a QgsLayer. You can still open its attribute value, but since there is no geometry, you can't visualize it.

Check if your data perhaps contains columns like x/y, which you can use to produce geometry, or maybe a serialized geometry column (WKT format)

0

The source data is in GML format not XML

This is a sample of the data in QGIS 3.01

enter image description here

So load in the gml in QGIS and you should see it render point lines and polygons, then change the colour, line and fill to you prefered standard.

  • The files are indeed gml-files, but still, sometimes it shows geometry and the other time it doesn't. – Koen Schrauwen Apr 16 '18 at 8:43
  • My answer still applies, GML is just an XML document using the predefined GML schema rules. – U2ros Apr 16 '18 at 19:25
  • The gml doesn't show any items when I load a bunch of gml at once. It does show geometry when I load the gml separately. – Koen Schrauwen Apr 18 '18 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.