Hi,

 The WMS GetCapabilities is now fixed at QGIS server and contains the 
 proper <Service/> element. OL 2.11 works now fine with QGIS server.

 I have spotted a few additional minor problems when validating the 
 answer with Xerces.

 Thanks again for the hint.

 Andreas

 On Tue, 12 Jul 2011 10:57:35 +0200, Andreas Hocevar wrote:
> Hi Andreas,
>
> the GetCapabilities response of your WMS is invalid. The WMS 1.3 spec
> demands a Service element right below the WMS_Capabilities element:
>
> <element name="WMS_Capabilities">
>   <annotation>
>     <documentation> A WMS_Capabilities document is returned in
> response to a GetCapabilities request made on a WMS.
>     </documentation>
>   </annotation>
>   <complexType>
>     <sequence>
>       <element ref="wms:Service"/>
>       <element ref="wms:Capability"/>
>     </sequence>
>     <attribute name="version" type="string" fixed="1.3.0"/>
>     <attribute name="updateSequence" type="string"/>
>   </complexType>
> </element>
>
> Your GetCapabilities response misses the Service level entirely and
> starts with the content of the Service element:
>
> <WMS_Capabilities
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.3.0"
> xmlns="http://www.opengis.net/wms";
> xsi:schemaLocation="http://www.opengis.net/wms
> http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd";>
>   <Name>WMS</Name>
>   <Title>Grundplan Amtliche Vermessung</Title>
>   ..
>
>
> Maybe you were just lucky that OpenLayers 2.10 had a more lenient
> Capabilities parser. Fixing the GetCapabilities response should make
> things work again.
>
> Regards,
> Andreas.
>
> On Mon, Jul 11, 2011 at 4:58 PM, Andreas Neumann 
> <[email protected]> wrote:
>>  Hi,
>>
>>  This related to a message I posted earlier. I am trying to debug 
>> the
>>  problem, but I am stuck. Here is the related message:
>>
>>  http://www.geoext.org/pipermail/dev/2011-June/001027.html
>>
>>  When working with OL 2.10, my code works fine, but after upgrading 
>> to
>>  OL 2.11 (recent trunk) I get an error message in the
>>  GeoExt.tree.WMSCapabilitiesLoader, in line 96 that layers.format is
>>  undefined - this is supposed to be an array containing image 
>> formats
>>  available from the WMS server. But after my OL upgrade, this array 
>> is
>>  not existing anymore.
>>
>>  Here is my application:
>> 
>>  http://gis.uster.ch/maps/grundplan_av?format=image/png&visibleLayers=Raumplanung,Nomenklatur,Fixpunkte,Geb%C3%A4ude,Grenzen,Einzelobjekte,Bodenbedeckung,Liegenschaften%20Fl%C3%A4che,Einzelobjekte%20Unterst%C3%A4nde,Einzelobjekte%20Unterirdische%20Geb%C3%A4ude
>>
>>  I don't know how I can get back the layer.formats array, so that
>>  GeoExt.tree.WMSCapabilitiesLoader works properly.
>>
>>  Any idea what I can do?
>>
>>  Thanks,
>>  Andreas
>>
>> --
>>  --
>>  Andreas Neumann
>>  Böschacherstrasse 10A
>>  8624 Grüt (Gossau ZH)
>>  Switzerland
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://www.geoext.org/cgi-bin/mailman/listinfo/dev
>>

-- 
 --
 Andreas Neumann
 Böschacherstrasse 10A
 8624 Grüt (Gossau ZH)
 Switzerland
_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to