Opened 11 years ago

Closed 10 years ago

#1599 closed bug (fixed)

WMS and WFS problems with GeoServer

Reported by: pcav Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.0.3
Component: WMS Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

A test WMS server is at: http://www.lucamorandini.it/geoserver/wms , while the WFS one is at:http://www.lucamorandini.it/geoserver/wfs

As I see it. there are two issues when Quantum GIS and Geoserver interact: 1) QGIS does not retrieve all available styles when listing WMS layers to be added, only the first one ("burg", in this case) is shown; if that style is not applicable to the chosen WMS layer, the layer won't show.

2) QGIS does not prefix WFS requests with the proper namespace, for instance it asks for: GET /wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType?&TYPENAME=region

while TYPENAME should be psc:region instead.

Change History (3)

comment:1 Changed 11 years ago by mhugent

One problem with the WMS server is that it states the url for GetMap? requests to be

http://localhost/... (see below) where it should be http://www.lucamorandini.it/geoserver/wms

<GetMap?>

<Format>image/png</Format> <Format>application/atom xml</Format> <Format>application/atom+xml</Format> <Format>application/openlayers</Format> <Format>application/pdf</Format> <Format>application/rss xml</Format> <Format>application/rss+xml</Format> <Format>application/vnd.google-earth.kml</Format> <Format>application/vnd.google-earth.kml xml</Format> <Format>application/vnd.google-earth.kml+xml</Format> <Format>application/vnd.google-earth.kmz</Format> <Format>application/vnd.google-earth.kmz xml</Format> <Format>application/vnd.google-earth.kmz+xml</Format> <Format>atom</Format> <Format>image/geotiff</Format> <Format>image/geotiff8</Format> <Format>image/gif</Format> <Format>image/jpeg</Format> <Format>image/png8</Format> <Format>image/svg</Format> <Format>image/svg xml</Format> <Format>image/svg+xml</Format> <Format>image/tiff</Format> <Format>image/tiff8</Format> <Format>kml</Format> <Format>kmz</Format> <Format>openlayers</Format> <Format>rss</Format> <DCPType>

<HTTP>

<Get>

<OnlineResource? xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?SERVICE=WMS&amp;"/>

</Get>

</HTTP>

</DCPType>

</GetMap?>

comment:2 Changed 11 years ago by pcav

Luca has corrected the issue with host name and path returned from GetCapabilities? (now the OnlineResource? attribute points to: www.lucamorandini.it/geoserver), please check.

comment:3 Changed 10 years ago by mhugent

Resolution: fixed
Status: newclosed

And issue 3) is that the WFS server does not provide information about the layer extent. So r10697 contains a failback method to calculate the layer extent if wfs server does not provide one.

Note: See TracTickets for help on using tickets.