[OpenLayers-Users] RE How to Get all SRS supported from getCapabilities response?

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Tue Feb 3 09:40:34 PST 2015


Actually, read(), doesn't get otherSRS node at all....




Steve.Toutant at inspq.qc.ca@lists.osgeo.org 
Envoyé par : openlayers-users-bounces at lists.osgeo.org
2015-02-03 11:56

A
openlayers-users at lists.osgeo.org
cc

Objet
[OpenLayers-Users] How to Get all SRS supported from    getCapabilities 
response?








I'm using OL 2.31.1 

A getCapabilities request (request.responseText) is returning this for 
supported srs 
<DefaultSRS>urn:ogc:def:crs:EPSG::3857</DefaultSRS> 
<OtherSRS>urn:ogc:def:crs:EPSG::900913</OtherSRS> 
<OtherSRS>urn:ogc:def:crs:EPSG::4269</OtherSRS> 
<OtherSRS>urn:ogc:def:crs:EPSG::3978</OtherSRS> 
<OtherSRS>urn:ogc:def:crs:EPSG::4326</OtherSRS> 
<OtherSRS>urn:ogc:def:crs:EPSG::32198</OtherSRS> 

This 
capabilitiesFormat = new OpenLayers.Format.WFSCapabilities() 
capabilitiesFormat.read(request.responseText), 
I get only one otherSRS, the last..32198 

How can I get all otherSRS from the getCapabilities response? 
thanks!_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150203/672d3863/attachment.html>


More information about the Users mailing list