[Qgis-user] WFS and QGIS - no sign of the data

Jonathan Moules jonathanmoules at warwickshire.gov.uk
Thu Dec 27 09:30:13 PST 2012


I have a WFS layer being served by GeoServer. When I add it to QGIS 1.8.0,
after a long delay, QGIS adds it to the layer menu.
Except there's absolutely no data on the map.
The map itself is zoomed to 1:11. I'm at about 0,0.

The data is in British National Grid (27700) and comprises about 50,000
polygons. I specified the CRS at adding time and the data is stored in the
database in 27700.
QGIS has picked up the attribute table structure but that's it. I can't
"zoom to extent", and there's nothing in the attribute table. Searching the
attribute table finds nothing either.

I can't see any QGIS errors. The WFS GetCapabilities looks like this:


<wfs:WFS_Capabilities version="1.1.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wfs"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:ows="http://www.opengis.net/ows"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="
http://www.opengis.net/wfs
http://wppgeog3:8082/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:Test="
www.warwickshire.gov.uk/test" updateSequence="222">
<ows:ServiceIdentification>
<ows:Title>
GeoServer Web Feature Service
</ows:Title>
<ows:Abstract>
This is the reference implementation of WFS 1.0.0 and WFS 1.1.0, supports
all WFS operations including Transaction.
</ows:Abstract>
<ows:Keywords>
<ows:Keyword>
WFS
</ows:Keyword>
<ows:Keyword>
WMS
</ows:Keyword>
<ows:Keyword>
GEOSERVER
</ows:Keyword>
</ows:Keywords>
<ows:ServiceType>
WFS
</ows:ServiceType>
<ows:ServiceTypeVersion>
1.1.0
</ows:ServiceTypeVersion>
<ows:Fees>
NONE
</ows:Fees>
<ows:AccessConstraints>
NONE
</ows:AccessConstraints>
</ows:ServiceIdentification>
<ows:ServiceProvider>
<ows:ProviderName>
God
</ows:ProviderName>
<ows:ServiceContact>
<ows:IndividualName>
GIS
</ows:IndividualName>
<ows:PositionName>
GIS
</ows:PositionName>
<ows:ContactInfo>
<ows:Phone>
<ows:Voice/>
<ows:Facsimile/>
</ows:Phone>
<ows:Address>
<ows:City>
GIS
</ows:City>
<ows:AdministrativeArea/>
<ows:PostalCode/>
<ows:Country>
UK
</ows:Country>
</ows:Address>
</ows:ContactInfo>
</ows:ServiceContact>
</ows:ServiceProvider>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
<ows:Post xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="AcceptVersions">
<ows:Value>
1.0.0
</ows:Value>
<ows:Value>
1.1.0
</ows:Value>
</ows:Parameter>
<ows:Parameter name="AcceptFormats">
<ows:Value>
text/xml
</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Operation name="DescribeFeatureType">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
<ows:Post xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="outputFormat">
<ows:Value>
text/xml; subtype=gml/3.1.1
</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Operation name="GetFeature">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
<ows:Post xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="resultType">
<ows:Value>
results
</ows:Value>
<ows:Value>
hits
</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>
text/xml; subtype=gml/3.1.1
</ows:Value>
<ows:Value>
GML2
</ows:Value>
<ows:Value>
GML2-GZIP
</ows:Value>
<ows:Value>
SHAPE-ZIP
</ows:Value>
<ows:Value>
application/gml+xml; version=3.2
</ows:Value>
<ows:Value>
csv
</ows:Value>
<ows:Value>
gml3
</ows:Value>
<ows:Value>
gml32
</ows:Value>
<ows:Value>
json
</ows:Value>
<ows:Value>
text/xml; subtype=gml/2.1.2
</ows:Value>
<ows:Value>
text/xml; subtype=gml/3.2
</ows:Value>
</ows:Parameter>
<ows:Constraint name="LocalTraverseXLinkScope">
<ows:Value>
2
</ows:Value>
</ows:Constraint>
</ows:Operation>
<ows:Operation name="GetGmlObject">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
<ows:Post xlink:href="http://wppgeog3:8082/geoserver/wfs"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>
<FeatureTypeList>
<Operations>
<Operation>
Query
</Operation>
</Operations>
<FeatureType xmlns:Test="www.warwickshire.gov.uk/test">
<Name>
Test:OS_MM2_CONWY_TOPOGRAPHIC_AREA
</Name>
<Title>
OS_MM2_CONWY_TOPOGRAPHIC_AREA
</Title>
<Abstract/>
<ows:Keywords>
<ows:Keyword>
OS_MM2_CONWY_TOPOGRAPHIC_AREA
</ows:Keyword>
<ows:Keyword>
features
</ows:Keyword>
</ows:Keywords>
<DefaultSRS>
urn:x-ogc:def:crs:EPSG:27700
</DefaultSRS>
<ows:WGS84BoundingBox>
<ows:LowerCorner>
-4.02931861385795 52.31146421508856
</ows:LowerCorner>
<ows:UpperCorner>
-3.6884903044783406 53.34934458176171
</ows:UpperCorner>
</ows:WGS84BoundingBox>
</FeatureType>
</FeatureTypeList>

...filter capabilties removed.

</wfs:WFS_Capabilities>





BUT: It only doesn't work if its WFS 1.1.0.

It kind of works in 1.0.0, but many features are missing (the attribute
table claims 1438 features when there are ~50,000).
WFS 1.0.0 works fine in MapInfo.

Any thoughts? Is this a QGIS issue or a GeoServer issue? Have I set
something up wrong? Do I need to be reporting this to someone as a bug?
Cheers,
Jonathan


This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us,  including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20121227/93b1366e/attachment.html>


More information about the Qgis-user mailing list