<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I know this is lame as a workaround, but you could define another namespace with a different key and then just copy its readers. Untested patch:<div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>index 743ed82..b1f1e60 100644</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>--- a/lib/OpenLayers/Format/WCSDescribeCoverage/v1_1_0.js</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>+++ b/lib/OpenLayers/Format/WCSDescribeCoverage/v1_1_0.js</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #34bbc7">@@ -27,7 +27,8 @@</span> OpenLayers.Format.WCSDescribeCoverage.v1_1_0 = OpenLayers.Class(</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">         wcs: "<a href="http://www.opengis.net/wcs/1.1">http://www.opengis.net/wcs/1.1</a>",</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">         xlink: "<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>",</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">         xsi: "<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>",</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);">-        ows: "<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);">+        ows: "<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>",</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);">+        owsesri: "<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">     },</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo;">     /**</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #34bbc7">@@ -147,7 +148,8 @@</span> OpenLayers.Format.WCSDescribeCoverage.v1_1_0 = OpenLayers.Class(</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">                 description.supportedFormats.push(format);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">             }</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">         },</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);">-        "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);">+        "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"],</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);">+        "owsesri": OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers["ows"]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">     },</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo;">     CLASS_NAME: "OpenLayers.Format.WCSDescribeCoverage.v1_1_0" </div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">--</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Bart van den Eijnden<br>Front-end Developer | Boundless<br>@boundlessgeo</div>
</div>
<br><div><div>On 23 May 2014, at 17:19, Christopher Eykamp <<a href="mailto:christopher.eykamp@tudor.lu">christopher.eykamp@tudor.lu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>I am getting the attached response from an ArcGIS WCS server, with request DescribeCoverage and protocol version 1.1.0.  OpenLayers (latest 1.x from GitHub) cannot retrieve the Title or Abstract attributes because the namespaces referenced in the OpenLayers.Format.WCSDescribeCoverage.v1_1_0 object conflict with what is referenced in the document.<br><br>Specifically, the OpenLayers namespaces object includes this line:<br><br>    ows: "<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>"<br><br>This in turn is used to generate a namespaceAlias lookup, which will return "ows" when looking up "<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>". However, in this case, I need "ows" to be mapped to "<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>".  If I make that change in the namespaces definition, tests break.  Unfortunately, given the way the aliases are defined, I cannot add a second namespace that maps to "ows", which might fix my problem.<br><br>I am unsure how to proceed.  I can't tell if I am encountering a misbehaving server, or if this is just a limitation of the way OpenLayers is architected (hard-coded namespaces that can only have one namespace map to a given alias).  Or have I misunderstood something at a more fundamental level?<br><br>Thanks for your advice!<br><br>Chris<br><br><br><br><CoverageDescriptions xmlns="<a href="http://www.opengis.net/wcs/1.1">http://www.opengis.net/wcs/1.1</a>" xmlns:ows="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>" xmlns:owcs="<a href="http://www.opengis.net/wcs/1.1/ows">http://www.opengis.net/wcs/1.1/ows</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" xsi:schemaLocation="<a href="http://www.opengis.net/wcs/1.1">http://www.opengis.net/wcs/1.1</a> ../wcsDescribeCoverage.xsd <a href="http://www.opengis.net/wcs/1.1/ows">http://www.opengis.net/wcs/1.1/ows</a> ../owsDataIdentification.xsd"><CoverageDescription><ows:Title>OSDATA.OS_25K_RASTER_1</ows:Title><ows:Abstract/><Identifier>1</Identifier><Domain><SpatialDomain><ows:BoundingBox crs="urn:ogc:def:crs:OGC::imageCRS" dimension="2"><ows:LowerCorner>0 0</ows:LowerCorner><ows:UpperCorner>16273 8848</ows:UpperCorner></ows:BoundingBox><ows:BoundingBox crs="urn:ogc:def:crs:EPSG::4326"><ows:LowerCorner>-2.4975225300277217 57.00034657412791</ows:LowerCorner><ows:UpperCorner>-2.0000237693585987 57.270861907368726</ows:UpperCorner></ows:BoundingBox><GridCRS><GridBaseCRS>urn:ogc:def:crs:EPSG::4326</GridBaseCRS><GridOrigin>-2.4975072449484337 57.27084662228944</GridOrigin><GridOffsets>3.057015857620272e-005 -3.0570158576202496e-005</GridOffsets></GridCRS></SpatialDomain></Domain><Range><Field><Title>Field_1</Title><Abstract>Field_1</Abstract><Identifier>Field_1</Identifier><Definition><owcs:AnyValue/></Definition><NullValue>256</NullValue><NullValue>256</NullValue><NullValue>256</NullValue><owcs:InterpolationMethods><owcs:DefaultMethod>nearest</owcs:DefaultMethod><owcs:OtherMethod>bilinear</owcs:OtherMethod><owcs:OtherMethod>bicubic</owcs:OtherMethod></owcs:InterpolationMethods><Axis identifier="BAND"><AvailableKeys><Key>1</Key><Key>2</Key><Key>3</Key></AvailableKeys><owcs:DataType>Byte</owcs:DataType></Axis></Field></Range><SupportedCRS>urn:ogc:def:crs:EPSG::4326</SupportedCRS><SupportedCRS>urn:ogc:def:crs:EPSG::4326</SupportedCRS><SupportedFormat>image/GeoTIFF</SupportedFormat><SupportedFormat>image/NITF</SupportedFormat><SupportedFormat>image/HDF</SupportedFormat><SupportedFormat>image/PNG</SupportedFormat></CoverageDescription></CoverageDescriptions> <br>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-dev<br></blockquote></div><br></div></div></body></html>