[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-user
Subject: Re: [Qgis-user] WFS and QGIS - no sign of the data
From: Jonathan Moules <jonathanmoules () warwickshire ! gov ! uk>
Date: 2012-12-28 11:16:15
Message-ID: CAA-xNcVru6zV7YJygHss-yhs-+AefeieDfHe5iWGnbX0QYZHLQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Upon further investigation it seems QGIS doesn't support WFS 1.1.0 but lets
you add it anyway (it just doesn't work). I've therefore reported this as a
bug.
No idea why only some layers loaded with WFS 1.0.0; works fine today.
Jonathan
On 27 December 2012 17:30, Jonathan Moules <
jonathanmoules@warwickshire.gov.uk> wrote:
> 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.
[Attachment #5 (unknown)]
Upon further investigation it seems QGIS doesn't support WFS 1.1.0 but lets you \
add it anyway (it just doesn't work). I've therefore reported this as a \
bug.<div><br></div><div>No idea why only some layers loaded with WFS 1.0.0; works \
fine today.<br> <div>Jonathan</div><br><br><div class="gmail_quote">On 27 December \
2012 17:30, Jonathan Moules <span dir="ltr"><<a \
href="mailto:jonathanmoules@warwickshire.gov.uk" \
target="_blank">jonathanmoules@warwickshire.gov.uk</a>></span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div>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.</div> \
<div>Except there's absolutely no data on the map.</div><div>The map itself is \
zoomed to 1:11. I'm at about 0,0.</div><div><br></div><div>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.</div><div>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.</div>
<div><br></div><div>I can't see any QGIS errors. The WFS GetCapabilities looks \
like this:</div><div><br></div><div><br></div><div><div><wfs:WFS _Capabilities \
version="1.1.0" xmlns:xsi="<a \
href="http://www.w3.org/2001/XMLSchema-instance" \
target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns="<a \
href="http://www.opengis.net/wfs" \
target="_blank">http://www.opengis.net/wfs</a>" xmlns:wfs="<a \
href="http://www.opengis.net/wfs" \
target="_blank">http://www.opengis.net/wfs</a>" xmlns:ows="<a \
href="http://www.opengis.net/ows" \
target="_blank">http://www.opengis.net/ows</a>" xmlns:gml="<a \
href="http://www.opengis.net/gml" \
target="_blank">http://www.opengis.net/gml</a>" xmlns:ogc="<a \
href="http://www.opengis.net/ogc" \
target="_blank">http://www.opengis.net/ogc</a>" xmlns:xlink="<a \
href="http://www.w3.org/1999/xlink" target=" \
_blank">http://www.w3.org/1999/xlink</a>" xsi:schemaLocation="<a \
href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> <a \
href="http://wppgeog3:8082/geoserver/schemas/wfs/1.1.0/wfs.xsd" \
target="_blank">http://wppgeog3:8082/geoserver/schemas/wfs/1.1.0/wfs.xsd</a>" \
xmlns:Test="<a href="http://www.warwickshire.gov.uk/test" \
target="_blank">www.warwickshire.gov.uk/test</a>" \
updateSequence="222"></div>
<div><ows:ServiceIdentification></div><div><ows:Title></div><div>GeoServer \
Web Feature Service</div><div></ows:Title></div><div><ows:Abstract></div><div>This \
is the reference implementation of WFS 1.0.0 and WFS 1.1.0, supports all WFS \
operations including Transaction.</div>
<div></ows:Abstract></div><div><ows:Keywords></div><div><ows:Keyword> \
;</div><div>WFS</div><div></ows:Keyword></div><div><ows:Keyword></div><div>WMS</div><div></ows:Keyword></div><div><ows:Keyword></div>
<div>GEOSERVER</div><div></ows:Keyword></div><div></ows:Keywords></div><di \
v><ows:ServiceType></div><div>WFS</div><div></ows:ServiceType></div><div><ows:ServiceTypeVersion></div><div>1.1.0</div>
<div></ows:ServiceTypeVersion></div><div><ows:Fees></div><div>NONE</div><d \
iv></ows:Fees></div><div><ows:AccessConstraints></div><div>NONE</div><div> \
</ows:AccessConstraints></div><div></ows:ServiceIdentification></div>
<div><ows:ServiceProvider></div><div><ows:ProviderName></div><div>God</div \
><div></ows:ProviderName></div><div><ows:ServiceContact></div><div><ows:IndividualName></div><div>GIS</div><div></ows:IndividualName></div>
>
<div><ows:PositionName></div><div>GIS</div><div></ows:PositionName></div>< \
div><ows:ContactInfo></div><div><ows:Phone></div><div><ows:Voice/></div><div><ows:Facsimile/></div><div></ows:Phone></div>
<div><ows:Address></div><div><ows:City></div><div>GIS</div><div></ows:C \
ity></div><div><ows:AdministrativeArea/></div><div><ows:PostalCode/></div><div><ows:Country></div><div>UK</div><div>
</ows:Country></div><div></ows:Address></div><div></ows:ContactInfo> \
</div><div></ows:ServiceContact></div><div></ows:ServiceProvider></div><div><ows:OperationsMetadata></div><div><ows:Operation \
name="GetCapabilities"></div>
<div><ows:DCP></div><div><ows:HTTP></div><div><ows:Get \
xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div><div><ows:Post \
xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div>
<div></ows:HTTP></div><div></ows:DCP></div><div><ows:Parameter \
name="AcceptVersions"></div><div><ows:Value></div><div>1.0.0</div><div></ows:Value></div><div><ows:Value></div>
<div>1.1.0</div><div></ows:Value></div><div></ows:Parameter></div><div><ows:Parameter \
name="AcceptFormats"></div><div><ows:Value></div><div>text/xml</div><div></ows:Value></div><div></ows:Parameter></div>
<div></ows:Operation></div><div><ows:Operation \
name="DescribeFeatureType"></div><div><ows:DCP></div><div><ows:HTTP></div><div><ows:Get \
xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div>
<div><ows:Post xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div><div></ows:HTTP></div><div></ows:DCP></div><div><ows:Parameter \
name="outputFormat"></div>
<div><ows:Value></div><div>text/xml; \
subtype=gml/3.1.1</div><div></ows:Value></div><div></ows:Parameter></div><div></ows:Operation></div><div><ows:Operation \
name="GetFeature"></div>
<div><ows:DCP></div><div><ows:HTTP></div><div><ows:Get \
xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div><div><ows:Post \
xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div>
<div></ows:HTTP></div><div></ows:DCP></div><div><ows:Parameter \
name="resultType"></div><div><ows:Value></div><div>results</div><div></ows:Value></div><div><ows:Value></div><div>
hits</div><div></ows:Value></div><div></ows:Parameter></div><div><ows:Parameter \
name="outputFormat"></div><div><ows:Value></div><div>text/xml; \
subtype=gml/3.1.1</div><div></ows:Value></div>
<div><ows:Value></div><div>GML2</div><div></ows:Value></div><div><ows:V \
alue></div><div>GML2-GZIP</div><div></ows:Value></div><div><ows:Value></div><div>SHAPE-ZIP</div><div></ows:Value></div>
<div><ows:Value></div><div>application/gml+xml; \
version=3.2</div><div></ows:Value></div><div><ows:Value></div><div>csv</di \
v><div></ows:Value></div><div><ows:Value></div><div>gml3</div><div></ows:Value></div>
<div><ows:Value></div><div>gml32</div><div></ows:Value></div><div><ows: \
Value></div><div>json</div><div></ows:Value></div><div><ows:Value></div><div>text/xml; \
subtype=gml/2.1.2</div><div></ows:Value></div>
<div><ows:Value></div><div>text/xml; \
subtype=gml/3.2</div><div></ows:Value></div><div></ows:Parameter></div><div><ows:Constraint \
name="LocalTraverseXLinkScope"></div><div><ows:Value></div>
<div>2</div><div></ows:Value></div><div></ows:Constraint></div><div></ows:Operation></div><div><ows:Operation \
name="GetGmlObject"></div><div><ows:DCP></div><div><ows:HTTP></div>
<div><ows:Get xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div><div><ows:Post \
xlink:href="<a href="http://wppgeog3:8082/geoserver/wfs" \
target="_blank">http://wppgeog3:8082/geoserver/wfs</a>"/></div>
<div></ows:HTTP></div><div></ows:DCP></div><div></ows:Operation></di \
v><div></ows:OperationsMetadata></div><div><FeatureTypeList></div><div><Operations></div><div><Operation></div>
<div>Query</div><div></Operation></div><div></Operations></div><div><FeatureType \
xmlns:Test="<a href="http://www.warwickshire.gov.uk/test" \
target="_blank">www.warwickshire.gov.uk/test</a>"></div> \
<div><Name></div><div>Test:OS_MM2_CONWY_TOPOGRAPHIC_AREA</div><div></Name> \
</div><div><Title></div><div>OS_MM2_CONWY_TOPOGRAPHIC_AREA</div><div></Title></div><div><Abstract/></div><div><ows:Keywords></div><div>
<ows:Keyword></div><div>OS_MM2_CONWY_TOPOGRAPHIC_AREA</div><div></ows:Keyword \
></div><div><ows:Keyword></div><div>features</div><div></ows:Keyword></div><div></ows:Keywords></div><div><DefaultSRS></div>
<div>urn:x-ogc:def:crs:EPSG:27700</div><div></DefaultSRS></div><div><ows:WGS84BoundingBox></div><div><ows:LowerCorner></div><div>-4.02931861385795 \
52.31146421508856</div><div></ows:LowerCorner></div>
<div><ows:UpperCorner></div><div>-3.6884903044783406 \
53.34934458176171</div><div></ows:UpperCorner></div><div></ows:WGS84BoundingBox></div><div></FeatureType></div><div></FeatureTypeList></div>
</div><div><br></div><div>...filter capabilties \
removed.</div><div><br></div><div></wfs:WFS_Capabilities></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>BUT: \
It only doesn't work if its WFS 1.1.0.</div>
<div><br></div><div>It kind of works in 1.0.0, but many features are missing (the \
attribute table claims 1438 features when there are ~50,000).</div><div>WFS 1.0.0 \
works fine in MapInfo.</div><div><br></div><div>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?</div>
<div>Cheers,</div><div>Jonathan</div></blockquote></div><br></div><BR>
<BR>
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.<BR>
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic