I regularly use land registry data from https://www.gov.uk/government/collections/download-inspire-index-polygons however at present the .gml, when adding a vector layer, renders points and not polygons (as it usually does). Could anyone advise how this could be rectified?
It seems that the Land Registry have broken the link back to their schemas so that OGR (and hence QGIS) can't parse the GML and have to guess.
You can over rule this initial guess by editing your
.gfs file (in the same folder as the
.gml file after you try opening it) to have these lines at the top.
<GMLFeatureClassList> <GMLFeatureClass> <Name>PREDEFINED</Name> <ElementPath>PREDEFINED</ElementPath> <GeomPropertyDefn> <Name>geometry</Name> <ElementPath>GEOMETRY</ElementPath> <Type>MultiPolygon</Type></GeomPropertyDefn> <GeomPropertyDefn> <Name>ReferencePoint</Name> <ElementPath>REFERENCEPOINT</ElementPath> <Type>Point</Type> </GeomPropertyDefn> <SRSName>urn:ogc:def:crs:EPSG::27700</SRSName>