<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Bart,<br>
    <br>
    Not lame at all; these servers are out there, and it's (much) better
    to handle them than not to.<br>
    <br>
    I think the proposed code is a good to handle the situation, and it
    seems to work.  I'll finish building out a set of tests, then submit
    a pull request.<br>
    <br>
    Thanks much for your help!<br>
    <br>
    Chris<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 05/26/2014 08:54 AM, Bart van den
      Eijnden wrote:<br>
    </div>
    <blockquote
      cite="mid:149D08C1-BC86-4734-854A-816552679AA9@boundlessgeo.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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
            moz-do-not-send="true" 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
            moz-do-not-send="true" 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
            moz-do-not-send="true" 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
                moz-do-not-send="true"
                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 moz-do-not-send="true"
                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
                moz-do-not-send="true"
                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
                moz-do-not-send="true" 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 moz-do-not-send="true"
                href="http://www.opengis.net/wcs/1.1">http://www.opengis.net/wcs/1.1</a>"
              xmlns:ows="<a moz-do-not-send="true"
                href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>"
              xmlns:owcs="<a moz-do-not-send="true"
                href="http://www.opengis.net/wcs/1.1/ows">http://www.opengis.net/wcs/1.1/ows</a>"
              xmlns:xsi="<a moz-do-not-send="true"
                href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"
              xmlns:gml="<a moz-do-not-send="true"
                href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"
              xsi:schemaLocation="<a moz-do-not-send="true"
                href="http://www.opengis.net/wcs/1.1">http://www.opengis.net/wcs/1.1</a>
              ../wcsDescribeCoverage.xsd <a moz-do-not-send="true"
                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 moz-do-not-send="true"
                href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br>
              <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>