WFS layer only shows 1 feature

250
0
02-05-2021 10:16 AM
KarelCeusters
New Contributor

Hi,

I'm using Qt 5.15.2 and Arcgis 100.10 and I'm seeing weird behaviour with WFS. It seems to work fine except it only ever shows a single feature. I can pan around the map and different features will be shown, but only ever one at a time.

I have inserted a proxy server to check the traffic and have confirmed that the GetFeature calls are correct, and the responses are returning multiple features. The Arcgis sdk seems to be not parsing them, it's probably just taking the first one in the list only. Here is an example of what the response xml looks like, cut down to include just 2 features:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:PUBLIC_RT="www.lenv.be/public_rt" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" numberMatched="593509" numberReturned="20" timeStamp="2021-02-05T16:49:49.098Z" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 https://geoservices.lenv.be/schemas/wfs/2.0/wfs.xsd www.lenv.be/public_rt https://geoservices.lenv.be/PUBLIC_RT/wfs?service=WFS&amp;version=2.0.0&amp;request=DescribeFeatureType&amp;typeName=PUBLIC_RT%3ALBGEBRPERC_MOST_RECENT http://www.opengis.net/gml/3.2 https://geoservices.lenv.be/schemas/gml/3.2.1/gml.xsd">
    <wfs:member>
        <PUBLIC_RT:LBGEBRPERC_MOST_RECENT gml:id="LBGEBRPERC_MOST_RECENT.0000280A678906F3">
            <PUBLIC_RT:GEOMETRY>
                <gml:Polygon srsName="http://www.opengis.net/gml/srs/epsg.xml#31370" srsDimension="2" gml:id="LBGEBRPERC_MOST_RECENT.0000280A678906F3.GEOMETRY">
                    <gml:exterior>
                        <gml:LinearRing>
                            <gml:posList>65042.32 211708.22 65086.34 211592.1 65094.82 211598.22 65118 211609.5 65081.87 211721.51 65042.32 211708.22</gml:posList>
                        </gml:LinearRing>
                    </gml:exterior>
                </gml:Polygon>
            </PUBLIC_RT:GEOMETRY>
            <PUBLIC_RT:OBJECTID>0000280A678906F3</PUBLIC_RT:OBJECTID>
            <PUBLIC_RT:CROPGROUPNAME>Maïs</PUBLIC_RT:CROPGROUPNAME>
        </PUBLIC_RT:LBGEBRPERC_MOST_RECENT>
    </wfs:member>
    <wfs:member>
        <PUBLIC_RT:LBGEBRPERC_MOST_RECENT gml:id="LBGEBRPERC_MOST_RECENT.0000280A675A3F8A">
            <PUBLIC_RT:GEOMETRY>
                <gml:Polygon srsName="http://www.opengis.net/gml/srs/epsg.xml#31370" srsDimension="2" gml:id="LBGEBRPERC_MOST_RECENT.0000280A675A3F8A.GEOMETRY">
                    <gml:exterior>
                        <gml:LinearRing>
                            <gml:posList>178855.75 193488.19 178864.75 193462.69 178860.75 193444.19 178882.25 193424.69 178903.25 193432.69 178912.07 193433.88 178912.75 193434.13 178913.21 193434.3 178922.2 193435.46 178923.89 193435.47 178929.25 193436.19 178956.75 193463.19 178956.75 193474.69 178938.75 193484.19 178924.25 193515.69 178855.75 193488.19</gml:posList>
                        </gml:LinearRing>
                    </gml:exterior>
                </gml:Polygon>
            </PUBLIC_RT:GEOMETRY>
            <PUBLIC_RT:OBJECTID>0000280A675A3F8A</PUBLIC_RT:OBJECTID>
            <PUBLIC_RT:CROPGROUPNAME>Grasland</PUBLIC_RT:CROPGROUPNAME>
        </PUBLIC_RT:LBGEBRPERC_MOST_RECENT>
    </wfs:member>
</wfs:FeatureCollection>

 

What can I do about this?

Thanks for any help

0 Kudos
0 Replies