[OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread maxho
Hi. I'm trying to parse WMS GetCapabilities response to get LegendURLs. I started with sample from http://trac.openlayers.org/ticket/1176 and was able to read version property. However I can't read Service and Capability nodes of response. They show up as undefined in firebug console. I tried

Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread bartvde
Hi, you don't need Format.XML in between but I doubt that's your problem. var CAPformat = new OpenLayers.Format.WMSCapabilities(); var cap = CAPformat.read(response.responseXML || response.responseText); Can you share the output of your WMS GetCapabilities response? Best regards, Bart Hi.

Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread maxho
This doesnt help. Firebug shows that response.responseXML is null and response.responseText is empty string. So the problem is not in the parser but in the GET request I guess, because in browser this URL (

Re: [OpenLayers-Users] WMSCapabilities error in IE

2009-09-20 Thread Andreas Hocevar
Hi, this is more or less a known issue. To avoid it, try the following: var data = req.responseXML.documentElement ? req.responseXML : req.responseText; var caps = new OpenLayers.Format.WMSCapabilities().read(data) Regards, Andreas. Gabriel Nolasco wrote: Hi, I am getting an error

[OpenLayers-Users] WMSCapabilities error in IE

2009-09-19 Thread Gabriel Nolasco
Hi, I am getting an error message when trying to parse some xml capabilities docs in IE8. The error message is - null is null or not an object – and happens in WMSCapabilities.js line 60 char 3. I have found that the data object exists but IE can't get the documentElement (data.documentElement

Re: [OpenLayers-Users] WMSCapabilities to retrieve the legend url

2009-04-20 Thread Linde Ackermans
Hi, I want to use this WMSCapabilities to retrieve the legend url of every layer to be able to build a legend ( our WMS server does not support GetLegendGraphic ... ) but I don't find how to use it. Is there a code example available ? Thanks. Linde Steve.Toutant wrote: Hi, I got this error

[OpenLayers-Users] WMSCapabilities

2009-04-15 Thread Steve . Toutant
Hi, I got this error OpenLayers.Format.WMSCapabilities is not a constructor when trying this var capabilitiesFormat = new OpenLayers.Format.WMSCapabilities(); I included this script in my code script src=http://openlayers.org/api/OpenLayers.js;/script Should I include something else? Thanks

Re: [OpenLayers-Users] WMSCapabilities

2009-04-15 Thread Bart van den Eijnden (OSGIS)
Hi Steve, this was not part of OpenLayers 2.7 which you are accessing there (API is last stable version so 2.7 currently). Instead you should use trunk which will become OpenLayers 2.8 soon. Best regards, Bart steve.tout...@inspq.qc.ca wrote: Hi, I got this error

Re: [OpenLayers-Users] WMSCapabilities

2009-04-15 Thread Christopher Schmidt
On Wed, Apr 15, 2009 at 07:41:49PM +0200, Bart van den Eijnden (OSGIS) wrote: Hi Steve, this was not part of OpenLayers 2.7 which you are accessing there (API is last stable version so 2.7 currently). Instead you should use trunk which will become OpenLayers 2.8 soon. And while you're in

Re: [OpenLayers-Users] WMSCapabilities

2009-03-19 Thread Bart van den Eijnden (OSGIS)
Hi, you need to override the OGC mimetype in the proxy.cgi script to text/xml for it to work in IE, see: http://openlayers.org/pipermail/dev/2007-December/002039.html Best regards, Bart James Leveille wrote: This time, with an appropriate title (sorry) ... Hi all, I've been struggling

[OpenLayers-Users] WMSCapabilities

2009-03-18 Thread James Leveille
This time, with an appropriate title (sorry) ... Hi all, I've been struggling with de WMSCapabilities (as defined here http://trac.openlayers.org/ticket/1176 https://webmail.consulting-fujitsu.com/exchweb/bin/redir.asp?URL=http://trac.openlayers.org/ticket/1176 ). Works fine with FF, but not