[GIS] Rendering GML in QGIS 1.9.0

gmlqgis

I have a set of GML geometries (see here), which I try to load in QGIS. The set contains both points and polygons, but when loaded into QGIS, only points are shown. I tried to follow this thread, but the piece of code suggested for overriding is not present in .gfs file. Any chance to make it work?

I tried using OGR2OGR for converting to .shp, but only the points are converted.

Best Answer

Quantum GIS Lisboa creates the following .gfs file:

<GMLFeatureClassList>
  <GMLFeatureClass>
    <Name>CadastralParcel</Name>
    <ElementPath>CadastralParcel</ElementPath>
    <GeometryType>1</GeometryType>
    <SRSName>urn:ogc:def:crs:EPSG::5514</SRSName>
    <DatasetSpecificInfo>
      <FeatureCount>67</FeatureCount>
      <ExtentXMin>-551828.69000</ExtentXMin>
      <ExtentXMax>-549922.10000</ExtentXMax>
      <ExtentYMin>-1124381.29000</ExtentYMin>
      <ExtentYMax>-1123937.92000</ExtentYMax>
    </DatasetSpecificInfo>
    <PropertyDefn>
      <Name>areaValue</Name>
      <ElementPath>areaValue</ElementPath>
      <Type>Integer</Type>
    </PropertyDefn>
    <PropertyDefn>
      <Name>areaValue_uom</Name>
      <ElementPath>areaValue_uom</ElementPath>
      <Type>String</Type>
      <Width>2</Width>
    </PropertyDefn>
    <PropertyDefn>
      <Name>beginLifespanVersion</Name>
      <ElementPath>beginLifespanVersion</ElementPath>
      <Type>String</Type>
      <Width>20</Width>
    </PropertyDefn>
    <PropertyDefn>
      <Name>localId</Name>
      <ElementPath>inspireId|Identifier|localId</ElementPath>
      <Type>String</Type>
      <Width>14</Width>
    </PropertyDefn>
    <PropertyDefn>
      <Name>namespace</Name>
      <ElementPath>inspireId|Identifier|namespace</ElementPath>
      <Type>String</Type>
      <Width>10</Width>
    </PropertyDefn>
    <PropertyDefn>
      <Name>label</Name>
      <ElementPath>label</ElementPath>
      <Type>String</Type>
      <Width>7</Width>
    </PropertyDefn>
    <PropertyDefn>
      <Name>nationalCadastralReference</Name>
      <ElementPath>nationalCadastralReference</ElementPath>
      <Type>String</Type>
      <Width>14</Width>
    </PropertyDefn>
  </GMLFeatureClass>
</GMLFeatureClassList>

Lines 3 to 5 have to be changed.

Related Question