<div dir="ltr"><div><div><div>>> Hello all,<br>>><br>>> I'm trying to read a WFS source. The GetFeature request to the WFS source<br>>> returns rows in the form of:<br>
>><br>>> <gml:featureMember><br>>>     <groups fid="group.44107041"><br>>>         <subgroupno>120</subgroupno><br>>>         <group>288</group><br>>>         <idno>40402578</idno><br>>>         <description>Descripton</<wbr>description><br>>>         <groundref>56945117</<wbr>groundref><br>>>         <hoodref>158699</hoodref><br>>>         <surfacearea>804.67</<wbr>surfacearea><br>>>         <type>2</type><br>>>         <status>2</status><br>>>         <geom><br>>>             <gml:MultiPolygon srsName="<br>>> <a href="http://www.opengis.net/gml/srs/epsg.xml#4326" rel="noreferrer" target="_blank">http://www.opengis.net/gml/<wbr>srs/epsg.xml#4326</a>"><br>>>                 <gml:polygonMember><br>>>                     <gml:Polygon><br>>>                         <gml:outerBoundaryIs><br>>>                             <gml:LinearRing><br>>>                                 <gml:coordinates decimal="." cs="," ts="<br>>> ">67.58201,80.5654<br>>>                                     67.58207,80.5652 67.58187,80.5653<br>>>                                     67.58159,80.5654 67.58118,80.5654<br>>>                                     67.58118,80.5655 67.58137,80.5655<br>>>                                     67.58143,80.5655 67.58159,80.5654<br>>>                                     67.58201,80.5654<br>>>                                 </gml:coordinates><br>>>                             </gml:LinearRing><br>>>                         </gml:outerBoundaryIs><br>>>                     </gml:Polygon><br>>>                 </gml:polygonMember><br>>>             </gml:MultiPolygon><br>>>         </geom><br>>>         <createdate>2012-04-08T07:13:<wbr>10</createdate><br>>>         <netsurfacearea>804.<wbr>440800604637</netsurfacearea><br>>>         <typeid>2000000000001</typeid><br>>>         <supergroupstatus>2</<wbr>supergroupstatus><br>>>         <parentstatus>3</parentstatus><br>>>     </groups><br>>> </gml:featureMember><br>>><br>>> But when I retrieve it with ogrinfo or ogr-fdw (which also uses OGR for<br>>> reading and parsing any ogr data source) for postgres, the only fields that<br>>> I can get are:<br>>><br>>> - fid<br>>> - geom<br>>> - status<br>>> - createdate<br>>><br>>> Is this some kind of a problem with the WFS driver of OGR or is there<br>>> something that I'm doing wrong or I have to do and I'm not doing?<br>>
<br>
>Can you show the result of the DescribeFeatureType request, or better just provide the<br>>endpoint to the WFS server and the layer used ?<br>
<br>>
Even<br><br></div>The WFS server has IP restrictions so even if I provide it, you won't be able to consume it.<br><br></div>Let me provide the DescribeFeatureType request to you.<br><br><xsd:complexType name="groupsType"><br>    <xsd:complexContent><br>        <xsd:extension base="gml:AbstractFeatureType"><br>            <xsd:sequence><br>                <xsd:element maxOccurs="1" minOccurs="0" name="subgroupno" nillable="true" type="xsd:string"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="group" nillable="true" type="xsd:string"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="idno" nillable="true" type="xsd:long"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="description" nillable="true" type="xsd:string"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="groundref" nillable="true" type="xsd:int"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="hoodref" nillable="true" type="xsd:int"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="surfacearea" nillable="true" type="xsd:double"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="type" nillable="true" type="xsd:short"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="status" nillable="true" type="xsd:short"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="geom" nillable="true" type="gml:GeometryPropertyType"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="createdate" nillable="true" type="xsd:dateTime"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="netsurfacearea" nillable="true" type="xsd:double"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="typeid" nillable="true" type="xsd:long"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="supergroupstatus" nillable="true" type="xsd:short"/><br>                <xsd:element maxOccurs="1" minOccurs="0" name="parentstatus" nillable="true" type="xsd:short"/><br>            </xsd:sequence><br>        </xsd:extension><br>    </xsd:complexContent><br></xsd:complexType><br><xsd:element name="groups" substitutionGroup="gml:_Feature" type="groupsType"/><br></div><div><br>Thank you for your response.<br></div></div>