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
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.
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 (
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
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
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
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
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
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
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
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
11 matches
Mail list logo