<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to Request a WCSLayer - removeQueryParameters() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026314#M71755</link>
    <description>&lt;P&gt;Hey everyone!&lt;/P&gt;&lt;P&gt;I am having difficulty requesting a WCSLayer from a Geoserver (version 2.17) using Javascript API (version 4.17).&amp;nbsp; I have the following code to send the request:&lt;/P&gt;&lt;P&gt;var layer = new WCSLayer({&lt;BR /&gt;url: "http://localhost:8083/geoserver/ows?service=wcs&amp;amp;version=1.1.1&amp;amp;request=GetCoverage&amp;amp;IDENTIFIER=datastore:example",&lt;BR /&gt;version: "1.1.1",&lt;BR /&gt;opacity: 0.5&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;AND THEN the following ERROR message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;[esri.layers.mixins.ImageryTileMixin] removeQueryParameters() Url query parameters are not supported, the following parameters have been removed: service, version, request, IDENTIFIER&lt;/P&gt;&lt;P&gt;For whatever reason, I can send in a request for a WMSLayer and it works just fine with the parameters in place. For example, if run a script with a WMSLayer request using the following:&lt;/P&gt;&lt;P&gt;http://localhost:8083/geoserver/datastore/wms?service=WMS&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "service" parameter is not removed and the WMS is properly added to the application. Anyone have any idea what I am doing wrong?&lt;/P&gt;&lt;P&gt;Blair&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 15:47:14 GMT</pubDate>
    <dc:creator>BlairScriven</dc:creator>
    <dc:date>2021-02-12T15:47:14Z</dc:date>
    <item>
      <title>Unable to Request a WCSLayer - removeQueryParameters()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026314#M71755</link>
      <description>&lt;P&gt;Hey everyone!&lt;/P&gt;&lt;P&gt;I am having difficulty requesting a WCSLayer from a Geoserver (version 2.17) using Javascript API (version 4.17).&amp;nbsp; I have the following code to send the request:&lt;/P&gt;&lt;P&gt;var layer = new WCSLayer({&lt;BR /&gt;url: "http://localhost:8083/geoserver/ows?service=wcs&amp;amp;version=1.1.1&amp;amp;request=GetCoverage&amp;amp;IDENTIFIER=datastore:example",&lt;BR /&gt;version: "1.1.1",&lt;BR /&gt;opacity: 0.5&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;AND THEN the following ERROR message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;[esri.layers.mixins.ImageryTileMixin] removeQueryParameters() Url query parameters are not supported, the following parameters have been removed: service, version, request, IDENTIFIER&lt;/P&gt;&lt;P&gt;For whatever reason, I can send in a request for a WMSLayer and it works just fine with the parameters in place. For example, if run a script with a WMSLayer request using the following:&lt;/P&gt;&lt;P&gt;http://localhost:8083/geoserver/datastore/wms?service=WMS&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "service" parameter is not removed and the WMS is properly added to the application. Anyone have any idea what I am doing wrong?&lt;/P&gt;&lt;P&gt;Blair&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 15:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026314#M71755</guid>
      <dc:creator>BlairScriven</dc:creator>
      <dc:date>2021-02-12T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Request a WCSLayer - removeQueryParameters()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026482#M71758</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WCSLayer for that matter other layers do not support queryparameters in the url property.&amp;nbsp; The API takes the service end point only from the url and strips out all query parameters just like other layers. You do not need to set service=wcs (the api takes care of it for the WCSLayer). You can use the WCSLayer.coverageId property for the identifier.&lt;/P&gt;&lt;P&gt;Please try the following code and see if it works for you.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var layer = new WCSLayer({
  url: "http://localhost:8083/geoserver/ows",
  version: "1.1.1",
  opacity: 0.5,
  coverageId: "datastore:example"
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 21:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026482#M71758</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-02-12T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Request a WCSLayer - removeQueryParameters()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026640#M71765</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;I tried using the code you suggested, but I came up with the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;error: TypeError: Cannot read property 'title' of undefined&lt;BR /&gt;at d.&amp;lt;anonymous&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have tried to experiment a bit with the WCSLayer properties, including adding "title" and&amp;nbsp;"customParameters" properties, but I get the same error. I will keeping playing with the code and I will also try to see if there is something wrong with how I set up Geoserver (although my WCS settings are default). Thanks again though for helping!&lt;/P&gt;&lt;P&gt;-Blair&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 04:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-request-a-wcslayer-removequeryparameters/m-p/1026640#M71765</guid>
      <dc:creator>BlairScriven</dc:creator>
      <dc:date>2021-02-14T04:05:47Z</dc:date>
    </item>
  </channel>
</rss>

